Skip to content

Commit 0b0de92

Browse files
committed
Inline cfg(bootstrap) version of debug_assertions intrinsic
This speeds up the stage1 build of the library by about 10s on my computer.
1 parent bc1b9e0 commit 0b0de92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/intrinsics.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2589,6 +2589,7 @@ extern "rust-intrinsic" {
25892589
}
25902590

25912591
#[cfg(bootstrap)]
2592+
#[inline(always)]
25922593
#[rustc_const_unstable(feature = "delayed_debug_assertions", issue = "none")]
25932594
pub(crate) const fn debug_assertions() -> bool {
25942595
cfg!(debug_assertions)

0 commit comments

Comments
 (0)