datrs / flat-tree

Map a binary tree to a vector.
Apache License 2.0
53 stars 10 forks source link

cargo test fails #24

Closed ralphtheninja closed 6 years ago

ralphtheninja commented 6 years ago

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 commented 6 years ago

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

yoshuawuyts commented 6 years ago

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 commented 6 years ago

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

yoshuawuyts commented 6 years ago

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