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.41
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.42
Choose a head ref
  • 7 commits
  • 8 files changed
  • 1 contributor

Commits on Dec 17, 2023

  1. Ignore uninhabited_references clippy lint

        warning: dereferencing a reference to an uninhabited type is undefined behavior
            --> src/gen/visit.rs:2057:11
             |
        2057 |     match *node {}
             |           ^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninhabited_references
             = note: `-W clippy::uninhabited-references` implied by `-W clippy::all`
             = help: to override `-W clippy::all` add `#[allow(clippy::uninhabited_references)]`
    
        warning: dereferencing a reference to an uninhabited type is undefined behavior
            --> src/gen/visit_mut.rs:2060:11
             |
        2060 |     match *node {}
             |           ^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninhabited_references
    
        warning: dereferencing a reference to an uninhabited type is undefined behavior
            --> src/gen/clone.rs:1038:15
             |
        1038 |         match *self {}
             |               ^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninhabited_references
    
        warning: dereferencing a reference to an uninhabited type is undefined behavior
            --> src/gen/debug.rs:1507:15
             |
        1507 |         match *self {}
             |               ^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninhabited_references
    
        warning: dereferencing a reference to an uninhabited type is undefined behavior
            --> src/gen/eq.rs:1021:15
             |
        1021 |         match *self {}
             |               ^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninhabited_references
    
        warning: dereferencing a reference to an uninhabited type is undefined behavior
            --> src/gen/hash.rs:1357:15
             |
        1357 |         match *self {}
             |               ^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninhabited_references
    dtolnay committed Dec 17, 2023
    Configuration menu
    Copy the full SHA
    e11575e View commit details
    Browse the repository at this point in the history
  2. Ignore blocks_in_conditions clippy lint

        warning: in a `match` scrutinee, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`
          --> tests/common/parse.rs:16:34
           |
        16 |       match panic::catch_unwind(|| {
           |  __________________________________^
        17 | |         let locale_resources = rustc_driver::DEFAULT_LOCALE_RESOURCES.to_vec();
        18 | |         let file_path_mapping = FilePathMapping::empty();
        19 | |         let sess = ParseSess::new(locale_resources, file_path_mapping);
        ...  |
        32 | |         }
        33 | |     }) {
           | |_____^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_conditions
           = note: `-W clippy::blocks-in-conditions` implied by `-W clippy::all`
           = help: to override `-W clippy::all` add `#[allow(clippy::blocks_in_conditions)]`
    
        warning: in a `match` scrutinee, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`
           --> tests/test_round_trip.rs:90:50
            |
        90  |           let equal = match panic::catch_unwind(|| {
            |  __________________________________________________^
        91  | |             let locale_resources = rustc_driver::DEFAULT_LOCALE_RESOURCES.to_vec();
        92  | |             let file_path_mapping = FilePathMapping::empty();
        93  | |             let sess = ParseSess::new(locale_resources, file_path_mapping);
        ...   |
        114 | |             Ok((before, after))
        115 | |         }) {
            | |_________^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_conditions
    dtolnay committed Dec 17, 2023
    Configuration menu
    Copy the full SHA
    66ee902 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2023

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

Commits on Dec 20, 2023

  1. Configuration menu
    Copy the full SHA
    bdd0645 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    12ff3d1 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #1551 from dtolnay/cursorexample

    Add a real-world example for ParseBuffer::cursor
    dtolnay authored Dec 20, 2023
    Configuration menu
    Copy the full SHA
    4349d0b View commit details
    Browse the repository at this point in the history
  4. Release 2.0.42

    dtolnay committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    6dcf8ab View commit details
    Browse the repository at this point in the history
Loading