-
-
Notifications
You must be signed in to change notification settings - Fork 124
Comparing changes
Open a pull request
base repository: dtolnay/proc-macro2
base: 1.0.52
head repository: dtolnay/proc-macro2
compare: master
Commits on Mar 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 67c6cba - Browse repository at this point
Copy the full SHA 67c6cbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for efeb5ec - Browse repository at this point
Copy the full SHA efeb5ecView commit details -
Merge pull request #350 from dtolnay/sourcetext
Expose proc_macro's source_text() on Span
Configuration menu - View commit details
-
Copy full SHA for b88dc25 - Browse repository at this point
Copy the full SHA b88dc25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98645fd - Browse repository at this point
Copy the full SHA 98645fdView commit details
Commits on Mar 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 990ddbb - Browse repository at this point
Copy the full SHA 990ddbbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6eda714 - Browse repository at this point
Copy the full SHA 6eda714View commit details -
Merge pull request #373 from dtolnay/filepath
Lazily construct PathBuf for sourcemap entries
Configuration menu - View commit details
-
Copy full SHA for 5c05f4b - Browse repository at this point
Copy the full SHA 5c05f4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 16c2eda - Browse repository at this point
Copy the full SHA 16c2edaView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb49335 - Browse repository at this point
Copy the full SHA eb49335View commit details -
Configuration menu - View commit details
-
Copy full SHA for da3949d - Browse repository at this point
Copy the full SHA da3949dView commit details -
Merge pull request #374 from dtolnay/cfgfuzzing
Disable sourcemap thread_local during fuzzing
Configuration menu - View commit details
-
Copy full SHA for 35cda6d - Browse repository at this point
Copy the full SHA 35cda6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f9328b - Browse repository at this point
Copy the full SHA 9f9328bView commit details
Commits on Mar 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f7c0435 - Browse repository at this point
Copy the full SHA f7c0435View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8310b84 - Browse repository at this point
Copy the full SHA 8310b84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 055a793 - Browse repository at this point
Copy the full SHA 055a793View commit details -
Work around cargo-afl checking LLVM runtime
In GitHub Actions it was failing with: AFL LLVM runtime is not built with Rust rustc-1.70.0-nightly-0c61c7a, run `cargo install --force afl` to build it.
Configuration menu - View commit details
-
Copy full SHA for 93f8ee7 - Browse repository at this point
Copy the full SHA 93f8ee7View commit details -
Merge pull request #375 from dtolnay/afl
Add AFL++ support to fuzz target
Configuration menu - View commit details
-
Copy full SHA for e9e5eb8 - Browse repository at this point
Copy the full SHA e9e5eb8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba7ad43 - Browse repository at this point
Copy the full SHA ba7ad43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75d9042 - Browse repository at this point
Copy the full SHA 75d9042View commit details -
Merge pull request #376 from dtolnay/honggfuzz
Add honggfuzz support to fuzz target
Configuration menu - View commit details
-
Copy full SHA for 455ca39 - Browse repository at this point
Copy the full SHA 455ca39View commit details -
Configuration menu - View commit details
-
Copy full SHA for b539d5a - Browse repository at this point
Copy the full SHA b539d5aView commit details
Commits on Apr 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 287979f - Browse repository at this point
Copy the full SHA 287979fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 606ea5e - Browse repository at this point
Copy the full SHA 606ea5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for da4c83d - Browse repository at this point
Copy the full SHA da4c83dView commit details -
Merge pull request #378 from dtolnay/literalspan
Create meaningful span for Literal in FromStr
Configuration menu - View commit details
-
Copy full SHA for e163e79 - Browse repository at this point
Copy the full SHA e163e79View commit details -
Configuration menu - View commit details
-
Copy full SHA for c1cf0f8 - Browse repository at this point
Copy the full SHA c1cf0f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for daccddb - Browse repository at this point
Copy the full SHA daccddbView commit details -
Merge pull request #379 from dtolnay/subspan
Implement Literal::subspan
Configuration menu - View commit details
-
Copy full SHA for 3310787 - Browse repository at this point
Copy the full SHA 3310787View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4a3e19 - Browse repository at this point
Copy the full SHA c4a3e19View commit details
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
Commits on May 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2b25bd9 - Browse repository at this point
Copy the full SHA 2b25bd9View commit details -
Find out whether rust-src rustup component fixes ui test
`cargo test --manifest-path tests/ui/Cargo.toml` is passing locally but fails in GitHub Actions.
Configuration menu - View commit details
-
Copy full SHA for 37706ca - Browse repository at this point
Copy the full SHA 37706caView commit details -
Configuration menu - View commit details
-
Copy full SHA for c282649 - Browse repository at this point
Copy the full SHA c282649View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d3959c - Browse repository at this point
Copy the full SHA 2d3959cView commit details
Commits on May 7, 2023
-
Ignore new_without_default clippy lint
error: you should consider adding a `Default` implementation for `TokenStream` --> src/fallback.rs:55:5 | 55 | / pub fn new() -> Self { 56 | | TokenStream { 57 | | inner: RcVecBuilder::new().build(), 58 | | } 59 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default = note: `-D clippy::new-without-default` implied by `-D clippy::all` help: try adding this | 54 + impl Default for TokenStream { 55 + fn default() -> Self { 56 + Self::new() 57 + } 58 + } | error: you should consider adding a `Default` implementation for `TokenStream` --> src/wrapper.rs:74:5 | 74 | / pub fn new() -> Self { 75 | | if inside_proc_macro() { 76 | | TokenStream::Compiler(DeferredTokenStream::new(proc_macro::TokenStream::new())) 77 | | } else { 78 | | TokenStream::Fallback(fallback::TokenStream::new()) 79 | | } 80 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default help: try adding this | 73 + impl Default for TokenStream { 74 + fn default() -> Self { 75 + Self::new() 76 + } 77 + } |
Configuration menu - View commit details
-
Copy full SHA for 7c637e7 - Browse repository at this point
Copy the full SHA 7c637e7View commit details -
Revert "Temporarily disable miri CI"
This reverts commit 2d3959c. Fixed in nightly-2023-05-06.
Configuration menu - View commit details
-
Copy full SHA for 2130305 - Browse repository at this point
Copy the full SHA 2130305View commit details
Commits on May 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a597b3c - Browse repository at this point
Copy the full SHA a597b3cView commit details
Commits on May 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5f9d3fe - Browse repository at this point
Copy the full SHA 5f9d3feView commit details -
Merge pull request #383 from dtolnay/procmacrospan
Disable start()/end() on Span::Compiler
Configuration menu - View commit details
-
Copy full SHA for 8bbbd60 - Browse repository at this point
Copy the full SHA 8bbbd60View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c1b102 - Browse repository at this point
Copy the full SHA 2c1b102View commit details
Commits on May 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a8db10f - Browse repository at this point
Copy the full SHA a8db10fView commit details
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.