We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On rustc 1.27.0-nightly (ac3c2288f 2018-04-18) compiling clippy yields:
rustc 1.27.0-nightly (ac3c2288f 2018-04-18)
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`.
The text was updated successfully, but these errors were encountered:
#2681 Fixes the first error, but not the last two @oli-obk. The Travis build is still failing with those mismatched types.
Sorry, something went wrong.
I'm on it ;) hasn't been published yet.
Successfully merging a pull request may close this issue.
On
rustc 1.27.0-nightly (ac3c2288f 2018-04-18)
compiling clippy yields:The text was updated successfully, but these errors were encountered: