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.86
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.87
Choose a head ref
  • 6 commits
  • 3 files changed
  • 1 contributor

Commits on Aug 25, 2024

  1. Configuration menu
    Copy the full SHA
    9c1d3eb View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2024

  1. Ignore needless_lifetimes clippy lint

        warning: the following explicit lifetimes could be elided: 'a
          --> src/rcvec.rs:96:6
           |
        96 | impl<'a, T> RcVecMut<'a, T> {
           |      ^^              ^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
           = note: `-W clippy::needless-lifetimes` implied by `-W clippy::all`
           = help: to override `-W clippy::all` add `#[allow(clippy::needless_lifetimes)]`
        help: elide the lifetimes
           |
        96 - impl<'a, T> RcVecMut<'a, T> {
        96 + impl<T> RcVecMut<'_, T> {
           |
    dtolnay committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    27061af View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2024

  1. Ignore missing_panics_doc pedantic clippy lint

        warning: docs for function which may panic missing `# Panics` section
           --> src/lib.rs:836:5
            |
        836 |     pub fn new(ch: char, spacing: Spacing) -> Self {
            |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            |
        note: first possible panic found here
           --> src/lib.rs:846:13
            |
        846 |             panic!("unsupported proc macro punctuation character {:?}", ch);
            |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
            = note: `-W clippy::missing-panics-doc` implied by `-W clippy::pedantic`
            = help: to override `-W clippy::pedantic` add `#[allow(clippy::missing_panics_doc)]`
    dtolnay committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    d60aaad View commit details
    Browse the repository at this point in the history
  2. Check valid punctuation character in Punct::new

    Valid punctuation characters generated by:
    
        use proc_macro::{Punct, Spacing, TokenStream};
        use std::panic;
    
        #[proc_macro]
        pub fn punct_chars(_input: TokenStream) -> TokenStream {
            for ch in '\0'..=char::MAX {
                if let Ok(_) = panic::catch_unwind(|| {
                    let _ = Punct::new(ch, Spacing::Alone);
                }) {
                    eprintln!("{:?}", ch);
                }
            }
            TokenStream::new()
        }
    dtolnay committed Oct 7, 2024
    1 Configuration menu
    Copy the full SHA
    98ea261 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #471 from dtolnay/punctnew

    Check valid punctuation character in Punct::new
    dtolnay authored Oct 7, 2024
    Configuration menu
    Copy the full SHA
    f0b6802 View commit details
    Browse the repository at this point in the history
  4. Release 1.0.87

    dtolnay committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    50b477d View commit details
    Browse the repository at this point in the history
Loading