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

nightly build failure #2752

Closed
jaxx opened this issue May 13, 2018 · 2 comments
Closed

nightly build failure #2752

jaxx opened this issue May 13, 2018 · 2 comments
Labels
I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@jaxx
Copy link

jaxx commented May 13, 2018

 Compiling clippy_lints v0.0.198
error[E0599]: no method named `to_raw_bits` found for type `rustc::middle::const_val::ConstVal<'_>` in the current scope
   --> C:\Users\jaxx\.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.198\src\consts.rs:212:48
    |
212 |                     ty::TyArray(_, n) => n.val.to_raw_bits().expect("array length"),
    |                                                ^^^^^^^^^^^

error[E0308]: mismatched types
   --> C:\Users\jaxx\.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.198\src\consts.rs:420:25
    |
420 |         ConstVal::Value(Value::ByVal(PrimVal::Bytes(b))) => match result.ty.sty {
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `rustc::mir::interpret::ConstValue`, found enum `rustc::mir::interpret::Value`
    |
    = note: expected type `rustc::mir::interpret::ConstValue<'_>`
               found type `rustc::mir::interpret::Value`

error[E0308]: mismatched types
   --> C:\Users\jaxx\.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.198\src\consts.rs:428:25
    |
428 |         ConstVal::Value(Value::ByValPair(PrimVal::Ptr(ptr), PrimVal::Bytes(n))) => match result.ty.sty {
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `rustc::mir::interpret::ConstValue`, found enum `rustc::mir::interpret::Value`
    |
    = note: expected type `rustc::mir::interpret::ConstValue<'_>`
               found type `rustc::mir::interpret::Value`

error[E0599]: no method named `to_raw_bits` found for type `rustc::middle::const_val::ConstVal<'_>` in the current scope
  --> C:\Users\jaxx\.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.198\src\array_indexing.rs:64:37
   |
64 |                 let size = size.val.to_raw_bits().unwrap();
   |                                     ^^^^^^^^^^^

error[E0599]: no method named `to_raw_bits` found for type `rustc::middle::const_val::ConstVal<'_>` in the current scope
    --> C:\Users\jaxx\.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.198\src\loops.rs:1226:72
     |
1226 |                         ty::TypeVariants::TyArray(_, size) if size.val.to_raw_bits().expect("array size") > 32 => (),
     |                                                                        ^^^^^^^^^^^

error[E0599]: no method named `to_raw_bits` found for type `rustc::middle::const_val::ConstVal<'_>` in the current scope
    --> C:\Users\jaxx\.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.198\src\loops.rs:1801:55
     |
1801 |         ty::TyArray(_, n) => (0..=32).contains(&n.val.to_raw_bits().expect("array length")),
     |                                                       ^^^^^^^^^^^

error[E0599]: no method named `to_raw_bits` found for type `rustc::middle::const_val::ConstVal<'_>` in the current scope
    --> C:\Users\jaxx\.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.198\src\methods.rs:1302:46
     |
1302 |             ty::TyArray(_, size) => size.val.to_raw_bits().expect("array length") < 32,
     |                                              ^^^^^^^^^^^

error: aborting due to 7 previous errors

Some errors occurred: E0308, E0599.
@phansch phansch added the I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️ label May 13, 2018
@phansch
Copy link
Member

phansch commented May 13, 2018

On it. Due to rust-lang/rust#50249

@phansch
Copy link
Member

phansch commented May 13, 2018

Fixed in 0.0.199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants