You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
phansch
added
the
I-ICE
Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️
label
May 13, 2018
The text was updated successfully, but these errors were encountered: