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

Does not compile on the latest Nightly #2682

Closed
lovesegfault opened this issue Apr 19, 2018 · 2 comments · Fixed by #2681
Closed

Does not compile on the latest Nightly #2682

lovesegfault opened this issue Apr 19, 2018 · 2 comments · Fixed by #2681

Comments

@lovesegfault
Copy link

On rustc 1.27.0-nightly (ac3c2288f 2018-04-18) compiling clippy yields:

   Compiling clippy_lints v0.0.194
error[E0308]: mismatched types
    --> /home/bemeurer/.cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/loops.rs:1801:48
     |
1801 |         ty::TyArray(_, n) => (0..=32).contains(n.val.to_raw_bits().expect("array length")),
     |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |                                                |
     |                                                expected reference, found u128
     |                                                help: consider borrowing here: `&n.val.to_raw_bits().expect("array length")`
     |
     = note: expected type `&_`
                found type `u128`

error[E0308]: mismatched types
   --> /home/bemeurer/.cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/regex.rs:213:56
    |
213 |                         str_span(expr.span, *e.span(), offset),
    |                                                        ^^^^^^ expected usize, found u16

error[E0308]: mismatched types
   --> /home/bemeurer/.cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/regex.rs:221:56
    |
221 |                         str_span(expr.span, *e.span(), offset),
    |                                                        ^^^^^^ expected usize, found u16

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0308`.

@lovesegfault
Copy link
Author

#2681 Fixes the first error, but not the last two @oli-obk. The Travis build is still failing with those mismatched types.

@oli-obk
Copy link
Contributor

oli-obk commented Apr 19, 2018

I'm on it ;) hasn't been published yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants