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

cargo test fails #24

Closed
ralphtheninja opened this issue Apr 23, 2018 · 4 comments
Closed

cargo test fails #24

ralphtheninja opened this issue Apr 23, 2018 · 4 comments

Comments

@ralphtheninja
Copy link
Contributor

I get the following output

error[E0308]: mismatched types
    --> /home/lms/.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/lms/.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/lms/.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`.
error: Could not compile `clippy_lints`.

I made rustup update earlier today, not sure if it has anything to do with that

@ralphtheninja
Copy link
Contributor Author

Am I missing something? Some clean up step I should take before?

@yoshuawuyts
Copy link
Collaborator

Oh, this is clippy itself failing. It works on nightly only, because it hooks into the compiler. Compiler internals are unstable, so sometimes it just breaks.

Unfortunate, but best we can do for now. Clippy is too valuable to disable, so this just is what it is until it stabilizes. Sorry :(

@ralphtheninja
Copy link
Contributor Author

Aaah ok so I'll just have to wait until it's fixed. Np.

@yoshuawuyts
Copy link
Collaborator

Yeah, it's usually within a few days (:

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

No branches or pull requests

2 participants