diff options
| author | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2018-03-07 16:13:15 +0900 |
|---|---|---|
| committer | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2018-03-07 17:22:58 +0900 |
| commit | 517083fbad1cab6652efe66f36ed7f085eb67b61 (patch) | |
| tree | fbc9ff99babdeeb60c5ac9a4850b975a3817490d /src/libstd/lib.rs | |
| parent | 6f2100b92cb14fbea2102701af6a3ac5814bd06c (diff) | |
| download | rust-517083fbad1cab6652efe66f36ed7f085eb67b61.tar.gz rust-517083fbad1cab6652efe66f36ed7f085eb67b61.zip | |
Make `assert` macro a built-in procedural macro
Diffstat (limited to 'src/libstd/lib.rs')
| -rw-r--r-- | src/libstd/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index a7e1c0ce732..b2e45f0f437 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -355,8 +355,9 @@ use prelude::v1::*; // We want to re-export a few macros from core but libcore has already been // imported by the compiler (via our #[no_std] attribute) In this case we just // add a new crate name so we can attach the re-exports to it. -#[macro_reexport(assert, assert_eq, assert_ne, debug_assert, debug_assert_eq, +#[macro_reexport(assert_eq, assert_ne, debug_assert, debug_assert_eq, debug_assert_ne, unreachable, unimplemented, write, writeln, try)] +#[cfg_attr(stage0, macro_reexport(assert))] extern crate core as __core; #[macro_use] |
