1
Fork 0

Require const stability attributes on intrinsics to be able to use them in constant contexts

This commit is contained in:
Oliver Scherer 2019-12-20 23:15:50 +01:00
parent 01a46509a4
commit 9ee16e14c5
6 changed files with 38 additions and 97 deletions

View file

@ -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 {