diff options
| author | Camelid <camelidcamel@gmail.com> | 2020-10-24 18:35:46 -0700 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2020-11-23 11:28:25 -0800 |
| commit | d708b444e4dc324369ba7ee2235451399f828321 (patch) | |
| tree | 71604c0af904a251695958d1be77ff7014f42c56 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 113c1476c923492ea1427b061458a6ab8faf8df8 (diff) | |
| download | rust-d708b444e4dc324369ba7ee2235451399f828321.tar.gz rust-d708b444e4dc324369ba7ee2235451399f828321.zip | |
Qualify `panic!` as `core::panic!` in non-built-in `core` macros
Otherwise code like this
#![no_implicit_prelude]
fn main() {
::std::todo!();
::std::unimplemented!();
}
will fail to compile, which is unfortunate and presumably unintended.
This changes many invocations of `panic!` in a `macro_rules!` definition
to invocations of `$crate::panic!`, which makes the invocations hygienic.
Note that this does not make the built-in macro `assert!` hygienic.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
