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.100
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.101
Choose a head ref
  • 13 commits
  • 7 files changed
  • 2 contributors

Commits on Mar 12, 2025

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

Commits on Mar 22, 2025

  1. Configuration menu
    Copy the full SHA
    992f623 View commit details
    Browse the repository at this point in the history
  2. Resolve ptr_eq clippy lint

        warning: use `std::ptr::eq` when comparing raw pointers
           --> src/buffer.rs:136:16
            |
        136 |             if ptr == scope {
            |                ^^^^^^^^^^^^ help: try: `std::ptr::eq(ptr, scope)`
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
            = note: `-W clippy::ptr-eq` implied by `-W clippy::all`
            = help: to override `-W clippy::all` add `#[allow(clippy::ptr_eq)]`
    
        warning: use `std::ptr::eq` when comparing raw pointers
           --> src/buffer.rs:183:9
            |
        183 |         self.ptr == self.scope
            |         ^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::eq(self.ptr, self.scope)`
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
    
        warning: use `std::ptr::eq` when comparing raw pointers
           --> src/buffer.rs:393:9
            |
        393 |         self.ptr == other.ptr
            |         ^^^^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::eq(self.ptr, other.ptr)`
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
    
        warning: use `std::ptr::eq` when comparing raw pointers
           --> src/buffer.rs:408:5
            |
        408 |     a.scope == b.scope
            |     ^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::eq(a.scope, b.scope)`
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
    
        warning: use `std::ptr::eq` when comparing raw pointers
           --> src/buffer.rs:412:5
            |
        412 |     start_of_buffer(a) == start_of_buffer(b)
            |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::eq(start_of_buffer(a), start_of_buffer(b))`
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
    dtolnay committed Mar 22, 2025
    Configuration menu
    Copy the full SHA
    3ec5366 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2025

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

Commits on Apr 2, 2025

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

Commits on Apr 3, 2025

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

Commits on Apr 5, 2025

  1. Configuration menu
    Copy the full SHA
    8328b52 View commit details
    Browse the repository at this point in the history
  2. Improve wording of comment in advance_to implementation

    The thing that this comment is talking about is called propagate in the
    preceding comment.
    dtolnay committed Apr 5, 2025
    Configuration menu
    Copy the full SHA
    3980ff2 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2025

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

Commits on Apr 24, 2025

  1. Resolve renamed_and_removed_lints warning about match_on_vec_items

        warning: lint `clippy::match_on_vec_items` has been removed: `clippy::indexing_slicing` covers indexing and slicing on `Vec<_>`
           --> src/lib.rs:282:5
            |
        282 |     clippy::match_on_vec_items,
            |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
            |
            = note: `#[warn(renamed_and_removed_lints)]` on by default
    dtolnay committed Apr 24, 2025
    Configuration menu
    Copy the full SHA
    432b303 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2025

  1. Fix lifetime on as_turbofish

    I'd like to write something like this:
    
    ```rust
    struct W(syn::Generics);
    
    impl W {
        pub fn as_turbofish(&self) -> syn::Turbofish<'_> {
            self.0.split_for_impl().1.as_turbofish()
        }
    }
    ```
    
    Unfortunately, that doesn't compile today and as far as I can tell it's completely unimplementable -
    the lifetime of the `syn::Turbofish` ends up tied to the temporary returned by `split_for_impl`.
    
    That seems silly and unintentional, fix it.
    JakobDegen committed Apr 26, 2025
    Configuration menu
    Copy the full SHA
    d04eea1 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1861 from JakobDegen/turbofish

    Fix lifetime on `as_turbofish`
    dtolnay authored Apr 26, 2025
    Configuration menu
    Copy the full SHA
    f1612cc View commit details
    Browse the repository at this point in the history
  3. Release 2.0.101

    dtolnay committed Apr 26, 2025
    Configuration menu
    Copy the full SHA
    58336a3 View commit details
    Browse the repository at this point in the history
Loading