We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2ee142 commit bc95994Copy full SHA for bc95994
compiler/rustc_target/src/abi/mod.rs
@@ -792,7 +792,7 @@ impl WrappingRange {
792
pub fn is_full_for(&self, size: Size) -> bool {
793
let max_value = size.unsigned_int_max();
794
debug_assert!(self.start <= max_value && self.end <= max_value);
795
- (self.start == 0 && self.end == max_value) || (self.end.wrapping_add(1) == self.start)
+ self.start == (self.end.wrapping_add(1) & max_value)
796
}
797
798
0 commit comments