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 32d7e5b commit d928106Copy full SHA for d928106
compiler/rustc_target/src/abi/mod.rs
@@ -710,7 +710,7 @@ impl WrappingRange {
710
/// Equal to `range.contains(0)` but should be faster.
711
#[inline]
712
pub fn contains_zero(&self) -> bool {
713
- !(self.start <= self.end && self.start != 0)
+ self.start > self.end || self.start == 0
714
}
715
716
/// Returns new `WrappingRange` with replaced `start`
0 commit comments