[RFC-2011] Allow core_intrinsics when activated

This commit is contained in:
Caio 2024-06-06 16:30:05 -03:00
parent 6cc4843512
commit a8084dcec1
2 changed files with 6 additions and 2 deletions

View File

@ -58,7 +58,6 @@ pub(super) fn new(cx: &'cx ExtCtxt<'a>, span: Span) -> Self {
/// Builds the whole `assert!` expression. For example, `let elem = 1; assert!(elem == 1);` expands to: /// Builds the whole `assert!` expression. For example, `let elem = 1; assert!(elem == 1);` expands to:
/// ///
/// ```rust /// ```rust
/// #![feature(generic_assert_internals)]
/// let elem = 1; /// let elem = 1;
/// { /// {
/// #[allow(unused_imports)] /// #[allow(unused_imports)]

View File

@ -1534,7 +1534,12 @@ macro_rules! include {
#[rustc_builtin_macro] #[rustc_builtin_macro]
#[macro_export] #[macro_export]
#[rustc_diagnostic_item = "assert_macro"] #[rustc_diagnostic_item = "assert_macro"]
#[allow_internal_unstable(panic_internals, edition_panic, generic_assert_internals)] #[allow_internal_unstable(
core_intrinsics,
panic_internals,
edition_panic,
generic_assert_internals
)]
macro_rules! assert { macro_rules! assert {
($cond:expr $(,)?) => {{ /* compiler built-in */ }}; ($cond:expr $(,)?) => {{ /* compiler built-in */ }};
($cond:expr, $($arg:tt)+) => {{ /* compiler built-in */ }}; ($cond:expr, $($arg:tt)+) => {{ /* compiler built-in */ }};