Skip to content

Commit 3b49ab6

Browse files
committed
Inline {min,max}_value even in debug builds
1 parent 22bc9e1 commit 3b49ab6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/num/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ Basic usage:
252252
$EndFeature, "
253253
```"),
254254
#[stable(feature = "rust1", since = "1.0.0")]
255-
#[inline]
255+
#[inline(always)]
256256
#[rustc_promotable]
257257
pub const fn min_value() -> Self {
258258
!0 ^ ((!0 as $UnsignedT) >> 1) as Self
@@ -271,7 +271,7 @@ Basic usage:
271271
$EndFeature, "
272272
```"),
273273
#[stable(feature = "rust1", since = "1.0.0")]
274-
#[inline]
274+
#[inline(always)]
275275
#[rustc_promotable]
276276
pub const fn max_value() -> Self {
277277
!Self::min_value()
@@ -2308,7 +2308,7 @@ Basic usage:
23082308
```"),
23092309
#[stable(feature = "rust1", since = "1.0.0")]
23102310
#[rustc_promotable]
2311-
#[inline]
2311+
#[inline(always)]
23122312
pub const fn min_value() -> Self { 0 }
23132313
}
23142314

@@ -2325,7 +2325,7 @@ stringify!($MaxV), ");", $EndFeature, "
23252325
```"),
23262326
#[stable(feature = "rust1", since = "1.0.0")]
23272327
#[rustc_promotable]
2328-
#[inline]
2328+
#[inline(always)]
23292329
pub const fn max_value() -> Self { !0 }
23302330
}
23312331

0 commit comments

Comments
 (0)