-
-
Notifications
You must be signed in to change notification settings - Fork 123
Comparing changes
Open a pull request
base repository: dtolnay/proc-macro2
base: 1.0.55
head repository: dtolnay/proc-macro2
compare: 1.0.56
- 10 commits
- 5 files changed
- 1 contributor
Commits on Apr 3, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d827973 - Browse repository at this point
Copy the full SHA d827973View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57b4db1 - Browse repository at this point
Copy the full SHA 57b4db1View commit details -
Ignore octal_escapes clippy lint in test
error: octal-looking escape in string literal --> tests/test.rs:118:25 | 118 | Literal::string("a\00b\07c\08d\0e\0").to_string(), | ^^^^^^^^^^^^^^^^^^^^ | = help: octal escapes are not supported, `\0` is always a null character = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#octal_escapes = note: `-D clippy::octal-escapes` implied by `-D clippy::all` help: if an octal escape was intended, use the hexadecimal representation instead | 118 | Literal::string("a\x00b\x07c\08d\0e\0").to_string(), | ~~~~~~~~~~~~~~~~~~~~~~ help: if the null character is intended, disambiguate using | 118 | Literal::string("a\x000b\x007c\08d\0e\0").to_string(), | ~~~~~~~~~~~~~~~~~~~~~~~~ error: octal-looking escape in byte string literal --> tests/test.rs:155:30 | 155 | Literal::byte_string(b"a\00b\07c\08d\0e\0").to_string(), | ^^^^^^^^^^^^^^^^^^^^^ | = help: octal escapes are not supported, `\0` is always a null byte = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#octal_escapes help: if an octal escape was intended, use the hexadecimal representation instead | 155 | Literal::byte_string(b"a\x00b\x07c\08d\0e\0").to_string(), | ~~~~~~~~~~~~~~~~~~~~~~~ help: if the null byte is intended, disambiguate using | 155 | Literal::byte_string(b"a\x000b\x007c\08d\0e\0").to_string(), | ~~~~~~~~~~~~~~~~~~~~~~~~~
Configuration menu - View commit details
-
Copy full SHA for 5d3e58b - Browse repository at this point
Copy the full SHA 5d3e58bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c21627 - Browse repository at this point
Copy the full SHA 6c21627View commit details -
Merge pull request #380 from dtolnay/octalescape
Circumvent clippy::octal_escapes lint in generated literals
Configuration menu - View commit details
-
Copy full SHA for 9c092a3 - Browse repository at this point
Copy the full SHA 9c092a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7efc1c4 - Browse repository at this point
Copy the full SHA 7efc1c4View commit details -
Merge pull request #381 from dtolnay/escape0
Implement consistent behavior for Literal::string on all versions of Rust
Configuration menu - View commit details
-
Copy full SHA for e82b074 - Browse repository at this point
Copy the full SHA e82b074View commit details -
Ensure data structures are RefUnwindSafe on all versions of Rust
Previously it was not the case on versions from 1.32 through 1.57. error[E0277]: the type `UnsafeCell<usize>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary --> tests/marker.rs:13:13 | 13 | assert_implemented::<$ty>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<usize>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary ... 82 | / assert_unwind_safe! { 83 | | Delimiter 84 | | Group 85 | | Ident ... | 92 | | TokenTree 93 | | } | |_____- in this macro invocation | = help: within `proc_macro2::Group`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<usize>` = note: required because it appears within the type `Cell<usize>` = note: required because it appears within the type `rc::RcBox<Vec<TokenTree>>` = note: required because it appears within the type `PhantomData<rc::RcBox<Vec<TokenTree>>>` = note: required because it appears within the type `Rc<Vec<TokenTree>>` = note: required because it appears within the type `proc_macro2::rcvec::RcVec<TokenTree>` = note: required because it appears within the type `fallback::TokenStream` = note: required because it appears within the type `fallback::Group` = note: required because it appears within the type `proc_macro2::imp::Group` = note: required because it appears within the type `proc_macro2::Group` note: required by a bound in `unwind_safe::Group::assert_implemented` --> tests/marker.rs:12:40 | 12 | fn assert_implemented<T: $($marker +)+>() {} | ^^^^^^^ required by this bound in `unwind_safe::Group::assert_implemented` ... 82 | / assert_unwind_safe! { 83 | | Delimiter 84 | | Group 85 | | Ident ... | 92 | | TokenTree 93 | | } | |_____- in this macro invocation = note: this error originates in the macro `assert_impl` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the type `UnsafeCell<usize>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary --> tests/marker.rs:13:13 | 13 | assert_implemented::<$ty>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<usize>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary ... 82 | / assert_unwind_safe! { 83 | | Delimiter 84 | | Group 85 | | Ident ... | 92 | | TokenTree 93 | | } | |_____- in this macro invocation | = help: within `TokenStream`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<usize>` = note: required because it appears within the type `Cell<usize>` = note: required because it appears within the type `rc::RcBox<Vec<TokenTree>>` = note: required because it appears within the type `PhantomData<rc::RcBox<Vec<TokenTree>>>` = note: required because it appears within the type `Rc<Vec<TokenTree>>` = note: required because it appears within the type `proc_macro2::rcvec::RcVec<TokenTree>` = note: required because it appears within the type `fallback::TokenStream` = note: required because it appears within the type `proc_macro2::imp::TokenStream` = note: required because it appears within the type `TokenStream` note: required by a bound in `unwind_safe::TokenStream::assert_implemented` --> tests/marker.rs:12:40 | 12 | fn assert_implemented<T: $($marker +)+>() {} | ^^^^^^^ required by this bound in `unwind_safe::TokenStream::assert_implemented` ... 82 | / assert_unwind_safe! { 83 | | Delimiter 84 | | Group 85 | | Ident ... | 92 | | TokenTree 93 | | } | |_____- in this macro invocation = note: this error originates in the macro `assert_impl` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the type `UnsafeCell<usize>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary --> tests/marker.rs:13:13 | 13 | assert_implemented::<$ty>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<usize>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary ... 82 | / assert_unwind_safe! { 83 | | Delimiter 84 | | Group 85 | | Ident ... | 92 | | TokenTree 93 | | } | |_____- in this macro invocation | = help: within `TokenTree`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<usize>` = note: required because it appears within the type `Cell<usize>` = note: required because it appears within the type `rc::RcBox<Vec<TokenTree>>` = note: required because it appears within the type `PhantomData<rc::RcBox<Vec<TokenTree>>>` = note: required because it appears within the type `Rc<Vec<TokenTree>>` = note: required because it appears within the type `proc_macro2::rcvec::RcVec<TokenTree>` = note: required because it appears within the type `fallback::TokenStream` = note: required because it appears within the type `fallback::Group` = note: required because it appears within the type `proc_macro2::imp::Group` = note: required because it appears within the type `proc_macro2::Group` = note: required because it appears within the type `TokenTree` note: required by a bound in `unwind_safe::TokenTree::assert_implemented` --> tests/marker.rs:12:40 | 12 | fn assert_implemented<T: $($marker +)+>() {} | ^^^^^^^ required by this bound in `unwind_safe::TokenTree::assert_implemented` ... 82 | / assert_unwind_safe! { 83 | | Delimiter 84 | | Group 85 | | Ident ... | 92 | | TokenTree 93 | | } | |_____- in this macro invocation = note: this error originates in the macro `assert_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
Configuration menu - View commit details
-
Copy full SHA for cda93c5 - Browse repository at this point
Copy the full SHA cda93c5View commit details -
Merge pull request #382 from dtolnay/refunwindsafe
Ensure data structures are RefUnwindSafe on all versions of Rust
Configuration menu - View commit details
-
Copy full SHA for ddf7692 - Browse repository at this point
Copy the full SHA ddf7692View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72ee0b3 - Browse repository at this point
Copy the full SHA 72ee0b3View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 1.0.55...1.0.56