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: 1.0.102
Choose a base ref
...
head repository: dtolnay/syn
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.0.103
Choose a head ref
  • 11 commits
  • 8 files changed
  • 2 contributors

Commits on Oct 11, 2022

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

Commits on Oct 13, 2022

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

Commits on Oct 20, 2022

  1. Add test for Item::Verbatim splitting a None group

    (see issue #1235)
    CAD97 committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    26a605e View commit details
    Browse the repository at this point in the history
  2. Implement PartialOrd for Cursor

    CAD97 committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    e9fb6a9 View commit details
    Browse the repository at this point in the history
  3. Handle the case where verbatim enters a None group

    Fixes #1235. As seen in that issue, a syntax node can actually cross the
    border of a None-delimited group, due to such groups being transparent
    to the parser in most cases. In the cases that this can occur, the
    presence of the group is known to be semantically irrelevant, so we just
    explicitly ignore the presence of the group.
    
    It's important that we only ignore None-delimited groups when the
    verbatim end requires entering the group, as such groups can have semantic
    impact (such as grouping binary operator chains) in other positions.
    CAD97 committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    f6a43aa View commit details
    Browse the repository at this point in the history
  4. Merge pull request #1236 from CAD97/cursor-cmp

    Implement `PartialOrd` for `Cursor`
    dtolnay authored Oct 20, 2022
    Configuration menu
    Copy the full SHA
    2b3f742 View commit details
    Browse the repository at this point in the history
  5. Touch up PR 1236

    dtolnay committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    8dd9b01 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f6f7d8a View commit details
    Browse the repository at this point in the history
  7. Ignore cast_possible_wrap pedantic clippy lint

        error: casting `usize` to `isize` may wrap around the value
          --> src/buffer.rs:56:46
           |
        56 |                     entries.push(Entry::End(-(group_end_index as isize)));
           |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_wrap
           = note: `-D clippy::cast-possible-wrap` implied by `-D clippy::pedantic`
    
        error: casting `usize` to `isize` may wrap around the value
          --> src/buffer.rs:82:34
           |
        82 |         entries.push(Entry::End(-(entries.len() as isize)));
           |                                  ^^^^^^^^^^^^^^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_wrap
    dtolnay committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    8db5adb View commit details
    Browse the repository at this point in the history
  8. Merge pull request #1237 from dtolnay/partialord

    Restrict PartialOrd comparison to only tokens in the same buffer
    dtolnay authored Oct 20, 2022
    Configuration menu
    Copy the full SHA
    8e81cad View commit details
    Browse the repository at this point in the history
  9. Release 1.0.103

    dtolnay committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    c29c2ab View commit details
    Browse the repository at this point in the history
Loading