Require const stability attributes on intrinsics to be able to use them in constant contexts
This commit is contained in:
parent
01a46509a4
commit
9ee16e14c5
6 changed files with 38 additions and 97 deletions
|
@ -5,6 +5,7 @@
|
|||
// the `caller_location` intrinsic, but once `#[track_caller]` is implemented,
|
||||
// `panicking::{panic, panic_fmt}` can use that instead of a `Location` argument.
|
||||
core_intrinsics,
|
||||
const_caller_location,
|
||||
)]
|
||||
#[stable(feature = "core", since = "1.6.0")]
|
||||
macro_rules! panic {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue