We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05cd48b commit 4c46296Copy full SHA for 4c46296
compiler/rustc_target/src/abi/mod.rs
@@ -811,8 +811,10 @@ pub struct Scalar {
811
impl Scalar {
812
#[inline]
813
pub fn is_bool(&self) -> bool {
814
- matches!(self.value, Int(I8, false))
815
- && matches!(self.valid_range, WrappingRange { start: 0, end: 1 })
+ matches!(
+ self,
816
+ Scalar { value: Int(I8, false), valid_range: WrappingRange { start: 0, end: 1 } }
817
+ )
818
}
819
820
/// Returns `true` if all possible numbers are valid, i.e `valid_range` covers the whole layout
0 commit comments