Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dtolnay/proc-macro2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.55
Choose a base ref
...
head repository: dtolnay/proc-macro2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.0.56
Choose a head ref
  • 10 commits
  • 5 files changed
  • 1 contributor

Commits on Apr 3, 2023

  1. Configuration menu
    Copy the full SHA
    d827973 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    57b4db1 View commit details
    Browse the repository at this point in the history
  3. 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(),
            |                              ~~~~~~~~~~~~~~~~~~~~~~~~~
    dtolnay committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    5d3e58b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6c21627 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #380 from dtolnay/octalescape

    Circumvent clippy::octal_escapes lint in generated literals
    dtolnay authored Apr 3, 2023
    Configuration menu
    Copy the full SHA
    9c092a3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7efc1c4 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #381 from dtolnay/escape0

    Implement consistent behavior for Literal::string on all versions of Rust
    dtolnay authored Apr 3, 2023
    Configuration menu
    Copy the full SHA
    e82b074 View commit details
    Browse the repository at this point in the history
  8. 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)
    dtolnay committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    cda93c5 View commit details
    Browse the repository at this point in the history
  9. Merge pull request #382 from dtolnay/refunwindsafe

    Ensure data structures are RefUnwindSafe on all versions of Rust
    dtolnay authored Apr 3, 2023
    Configuration menu
    Copy the full SHA
    ddf7692 View commit details
    Browse the repository at this point in the history
  10. Release 1.0.56

    dtolnay committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    72ee0b3 View commit details
    Browse the repository at this point in the history
Loading