Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle parsing unseparated right angle brackets in generics #199

Merged
merged 3 commits into from Nov 27, 2021
Merged

Commits on Nov 27, 2021

  1. Add test of unsplit right angle brackets

    Currently these aren't being parsed successfully so this fails with:
    
        ---- test_path stdout ----
        thread 'test_path' panicked at 'assertion failed: `(left == right)`
          left: `"Condition failed: `E::U::<> > E::U::<u8>`"`,
         right: `"Condition failed: `E::U::<> > E::U::<u8>` (U vs U)"`', tests/test_ensure.rs:332:5
    
        thread 'test_path' panicked at 'assertion failed: `(left == right)`
          left: `"Condition failed: `E::U::<u8> > E::U`"`,
         right: `"Condition failed: `E::U::<u8> > E::U` (U vs U)"`', tests/test_ensure.rs:336:5
    
        thread 'test_path' panicked at 'assertion failed: `(left == right)`
          left: `"Condition failed: `E::U::<u8> > E::U`"`,
         right: `"Condition failed: `E::U::<u8> > E::U` (U vs U)"`', tests/test_ensure.rs:340:5
    dtolnay committed Nov 27, 2021
    Copy the full SHA
    34761f5 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    483ef06 View commit details
    Browse the repository at this point in the history
  3. Ignore items_after_statements Clippy pedantic lint in test

        error: adding items after statements is confusing, since items exist from the start of the scope
           --> tests/test_ensure.rs:324:5
            |
        324 | /     enum E<'a, T> {
        325 | |         #[allow(dead_code)]
        326 | |         T(&'a T),
        327 | |         U,
        328 | |     }
            | |_____^
            |
            = note: `-D clippy::items-after-statements` implied by `-D clippy::pedantic`
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
    dtolnay committed Nov 27, 2021
    Copy the full SHA
    fa70762 View commit details
    Browse the repository at this point in the history