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.91
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.92
Choose a head ref
  • 16 commits
  • 11 files changed
  • 3 contributors

Commits on Apr 6, 2022

  1. Remove codepath in test_round_trip that is no longer reached

    I haven't been able to get the most recent rustc to produce that
    message anymore.
    dtolnay committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    31e969c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4ba41ef View commit details
    Browse the repository at this point in the history
  3. Avoid loading XID_Start table on ASCII-only input

        #![feature(test)]
    
        extern crate test;
    
        use unicode_xid::UnicodeXID;
    
        #[bench]
        fn bench(b: &mut test::Bencher) {
            b.iter(|| {
                for _ in 0..1000 {
                    let ident = test::black_box("is_xid_start");
                    test::black_box(xid_ok(ident));
                }
            });
        }
    
        fn xid_ok(symbol: &str) -> bool {
            let mut chars = symbol.chars();
            let first = chars.next().unwrap();
            if !(first == '_' || UnicodeXID::is_xid_start(first)) {
                return false;
            }
            for ch in chars {
                if !UnicodeXID::is_xid_continue(ch) {
                    return false;
                }
            }
            true
        }
    dtolnay committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    d453663 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    13bf252 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2022

  1. Un-export test suite macros

    Eliminates a clippy lint:
    
        error: `crate` references the macro call's crate
          --> tests/macros/mod.rs:40:21
           |
        40 |         let $expr = crate::macros::Tokens::parse::<$t>($expr).unwrap();
           |                     ^^^^^ help: to reference the macro definition's crate, use: `$crate`
           |
           = note: `-D clippy::crate-in-macro-def` implied by `-D clippy::all`
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def
    dtolnay committed Apr 9, 2022
    Configuration menu
    Copy the full SHA
    9fd668c View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2022

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

Commits on Apr 17, 2022

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

Commits on Apr 23, 2022

  1. Added dyn to Type::TraitObject docs

    The old syntax is now a compile error, and it makes it difficult for users to search when they are looking for the keyword "dyn" on the documentation.
    SOF3 authored Apr 23, 2022
    Configuration menu
    Copy the full SHA
    8c3684e View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1162 from SOF3/patch-1

    Added `dyn` to Type::TraitObject docs
    dtolnay authored Apr 23, 2022
    Configuration menu
    Copy the full SHA
    15c9e94 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2022

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

Commits on Apr 25, 2022

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

Commits on Apr 29, 2022

  1. Avoid Box invalidation, for tag-raw-pointers

    It looks like the only outstanding issue aliasing issue in this repo
    (with raw pointer tagging) was this one move of a Box after saving a
    pointer to the allocation that the Box guards. This is UB according to
    the Stacked Borrows with raw pointer tagging in combination with the way
    rustc applies noalias to Box. As is often the case, the resolution here
    is to convert the Box down to a raw pointer before a pointer into the
    allocation is created.
    saethlin committed Apr 29, 2022
    Configuration menu
    Copy the full SHA
    95f242c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b9b0685 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #1166 from saethlin/raw-pointer-tagging

    Avoid Box invalidation to be compatible with tag-raw-pointers
    dtolnay authored Apr 29, 2022
    Configuration menu
    Copy the full SHA
    5d7d112 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    000c0a6 View commit details
    Browse the repository at this point in the history
  5. Release 1.0.92

    dtolnay committed Apr 29, 2022
    Configuration menu
    Copy the full SHA
    069bdf5 View commit details
    Browse the repository at this point in the history
Loading