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/syn
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.38
Choose a base ref
...
head repository: dtolnay/syn
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.0.39
Choose a head ref
  • 17 commits
  • 12 files changed
  • 1 contributor

Commits on Oct 7, 2023

  1. Ignore into_iter_without_iter pedantic clippy lint

        warning: `IntoIterator` implemented for a reference type without an `iter` method
           --> src/error.rs:435:1
            |
        435 | / impl<'a> IntoIterator for &'a Error {
        436 | |     type Item = Error;
        437 | |     type IntoIter = Iter<'a>;
        438 | |
        ...   |
        443 | |     }
        444 | | }
            | |_^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_without_iter
            = note: `-W clippy::into-iter-without-iter` implied by `-W clippy::pedantic`
            = help: to override `-W clippy::pedantic` add `#[allow(clippy::into_iter_without_iter)]`
        help: consider implementing `iter`
            |
        435 +
        436 + impl Error {
        437 +     fn iter(&self) -> Iter<'a> {
        438 +         <&Self as IntoIterator>::into_iter(self)
        439 +     }
        440 + }
            |
    dtolnay committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    e203794 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2023

  1. Fix unused imports

        warning: unused import: `crate::gen::*`
           --> src/lib.rs:815:9
            |
        815 | pub use crate::gen::*;
            |         ^^^^^^^^^^^^^
            |
            = note: `#[warn(unused_imports)]` on by default
    dtolnay committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    7719f54 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

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

Commits on Nov 3, 2023

  1. Expose internal CustomToken trait only through __private module

    This trait is marked not public API and can only be implemented through
    the public macros (custom_keyword and custom_punctuation).
    dtolnay committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    eb1737d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    93bfc8e View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2023

  1. Configuration menu
    Copy the full SHA
    aadbe5a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ee3cc8f View commit details
    Browse the repository at this point in the history
  3. Merge pull request #1529 from dtolnay/up

    Update test suite to nightly-2023-11-03
    dtolnay authored Nov 5, 2023
    Configuration menu
    Copy the full SHA
    3e67cb0 View commit details
    Browse the repository at this point in the history
  4. Indicate that peek argument refers to syn::Ident

    As opposed to proc_macro2::Ident.
    dtolnay committed Nov 5, 2023
    Configuration menu
    Copy the full SHA
    c274590 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2023

  1. Configuration menu
    Copy the full SHA
    c6a651a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    20497e1 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #1530 from dtolnay/canbeginexpr

    More precise decision to parse expression after `return`, `break`, `yield`
    dtolnay authored Nov 6, 2023
    Configuration menu
    Copy the full SHA
    6f658f8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    32ab979 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a876185 View commit details
    Browse the repository at this point in the history
  6. Ignore single_element_loop clippy lint in test

        warning: for loop over a single element
           --> tests/test_expr.rs:333:5
            |
        333 | /     for stmt in [
        334 | |         // Parentheses required. See rust-lang/rust#87026.
        335 | |         quote! {
        336 | |             break 'label: loop { break 'label 42; };
        ...   |
        339 | |         syn::parse2::<Stmt>(stmt).unwrap_err();
        340 | |     }
            | |_____^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_element_loop
            = note: `-W clippy::single-element-loop` implied by `-W clippy::all`
            = help: to override `-W clippy::all` add `#[allow(clippy::single_element_loop)]`
        help: try
            |
        333 ~     {
        334 +         let stmt = {
        335 +         let mut _s = $crate::__private::TokenStream::new();
        336 +         $crate::quote_each_token!{_s $($tt)*}
        337 +         _s
        338 +     };
        339 +         syn::parse2::<Stmt>(stmt).unwrap_err();
        340 +     }
            |
    dtolnay committed Nov 6, 2023
    Configuration menu
    Copy the full SHA
    b88f86f View commit details
    Browse the repository at this point in the history
  7. Merge pull request #1531 from dtolnay/breaklabel

    Improve parsing of labeled loop as value expression for break
    dtolnay authored Nov 6, 2023
    Configuration menu
    Copy the full SHA
    95aeeb5 View commit details
    Browse the repository at this point in the history
  8. Release 2.0.39

    dtolnay committed Nov 6, 2023
    Configuration menu
    Copy the full SHA
    924217c View commit details
    Browse the repository at this point in the history
Loading