Skip to content

Commit a8084dc

Browse files
committed
[RFC-2011] Allow core_intrinsics when activated
1 parent 6cc4843 commit a8084dc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

compiler/rustc_builtin_macros/src/assert/context.rs

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ impl<'cx, 'a> Context<'cx, 'a> {
5858
/// Builds the whole `assert!` expression. For example, `let elem = 1; assert!(elem == 1);` expands to:
5959
///
6060
/// ```rust
61-
/// #![feature(generic_assert_internals)]
6261
/// let elem = 1;
6362
/// {
6463
/// #[allow(unused_imports)]

library/core/src/macros/mod.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,12 @@ pub(crate) mod builtin {
15341534
#[rustc_builtin_macro]
15351535
#[macro_export]
15361536
#[rustc_diagnostic_item = "assert_macro"]
1537-
#[allow_internal_unstable(panic_internals, edition_panic, generic_assert_internals)]
1537+
#[allow_internal_unstable(
1538+
core_intrinsics,
1539+
panic_internals,
1540+
edition_panic,
1541+
generic_assert_internals
1542+
)]
15381543
macro_rules! assert {
15391544
($cond:expr $(,)?) => {{ /* compiler built-in */ }};
15401545
($cond:expr, $($arg:tt)+) => {{ /* compiler built-in */ }};

0 commit comments

Comments
 (0)