File tree 1 file changed +4
-2
lines changed
compiler/rustc_target/src/abi
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -697,7 +697,7 @@ pub struct WrappingRange {
697
697
698
698
impl WrappingRange {
699
699
/// Returns `true` if `v` is contained in the range.
700
- #[ inline]
700
+ #[ inline( always ) ]
701
701
pub fn contains ( & self , v : u128 ) -> bool {
702
702
if self . start <= self . end {
703
703
self . start <= v && v <= self . end
@@ -708,17 +708,19 @@ impl WrappingRange {
708
708
709
709
/// Returns `true` if zero is contained in the range.
710
710
/// Equal to `range.contains(0)` but should be faster.
711
- #[ inline]
711
+ #[ inline( always ) ]
712
712
pub fn contains_zero ( & self ) -> bool {
713
713
self . start > self . end || self . start == 0
714
714
}
715
715
716
716
/// Returns new `WrappingRange` with replaced `start`
717
+ #[ inline( always) ]
717
718
pub fn with_start ( & self , start : u128 ) -> Self {
718
719
Self { start, end : self . end }
719
720
}
720
721
721
722
/// Returns new `WrappingRange` with replaced `end`
723
+ #[ inline( always) ]
722
724
pub fn with_end ( & self , end : u128 ) -> Self {
723
725
Self { start : self . start , end }
724
726
}
You can’t perform that action at this time.
0 commit comments