Skip to content

Commit 0221e26

Browse files
committed
Auto merge of #65045 - Centril:rollup-djvi539, r=Centril
Rollup of 2 pull requests Successful merges: - #64941 (Inline `{min,max}_value` even in debug builds) - #65002 (Update llvm-project submodule) Failed merges: r? @ghost
2 parents c6293e3 + 64ac499 commit 0221e26

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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()
@@ -2311,7 +2311,7 @@ Basic usage:
23112311
```"),
23122312
#[stable(feature = "rust1", since = "1.0.0")]
23132313
#[rustc_promotable]
2314-
#[inline]
2314+
#[inline(always)]
23152315
pub const fn min_value() -> Self { 0 }
23162316
}
23172317

@@ -2328,7 +2328,7 @@ stringify!($MaxV), ");", $EndFeature, "
23282328
```"),
23292329
#[stable(feature = "rust1", since = "1.0.0")]
23302330
#[rustc_promotable]
2331-
#[inline]
2331+
#[inline(always)]
23322332
pub const fn max_value() -> Self { !0 }
23332333
}
23342334

0 commit comments

Comments
 (0)