diff options
| author | Caio <c410.f3r@gmail.com> | 2024-06-06 16:30:05 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2024-06-06 16:30:05 -0300 |
| commit | a8084dcec1d2d36c286ca0e2c384e7bf5cfeffce (patch) | |
| tree | 319576e1f893555a7cc8516e4c885968b1c8ae74 | |
| parent | 6cc4843512d613f51ec81aba689180c31b0b28b6 (diff) | |
| download | rust-a8084dcec1d2d36c286ca0e2c384e7bf5cfeffce.tar.gz rust-a8084dcec1d2d36c286ca0e2c384e7bf5cfeffce.zip | |
[RFC-2011] Allow `core_intrinsics` when activated
| -rw-r--r-- | compiler/rustc_builtin_macros/src/assert/context.rs | 1 | ||||
| -rw-r--r-- | library/core/src/macros/mod.rs | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/compiler/rustc_builtin_macros/src/assert/context.rs b/compiler/rustc_builtin_macros/src/assert/context.rs index d244897f8a5..a98ed996df6 100644 --- a/compiler/rustc_builtin_macros/src/assert/context.rs +++ b/compiler/rustc_builtin_macros/src/assert/context.rs @@ -58,7 +58,6 @@ impl<'cx, 'a> Context<'cx, 'a> { /// Builds the whole `assert!` expression. For example, `let elem = 1; assert!(elem == 1);` expands to: /// /// ```rust - /// #![feature(generic_assert_internals)] /// let elem = 1; /// { /// #[allow(unused_imports)] diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index 9bbaf62a5ca..395e04cf26e 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -1534,7 +1534,12 @@ pub(crate) mod builtin { #[rustc_builtin_macro] #[macro_export] #[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 { ($cond:expr $(,)?) => {{ /* compiler built-in */ }}; ($cond:expr, $($arg:tt)+) => {{ /* compiler built-in */ }}; |
