diff options
| author | bors <bors@rust-lang.org> | 2020-11-23 22:05:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-23 22:05:28 +0000 |
| commit | f32a0cce2fd5aaf5f361192af59cf1f2afa5f0ac (patch) | |
| tree | 3cace06ffc49ad1d8418bdc4fdc09dd32ed84196 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | d9a105fdd46c926ae606777a46dd90e5b838f92f (diff) | |
| parent | d8b1d51b9540be6e51e46077ac6f196f088b0e80 (diff) | |
| download | rust-f32a0cce2fd5aaf5f361192af59cf1f2afa5f0ac.tar.gz rust-f32a0cce2fd5aaf5f361192af59cf1f2afa5f0ac.zip | |
Auto merge of #78343 - camelid:macros-qualify-panic, r=m-ou-se
Qualify `panic!` as `core::panic!` in non-built-in `core` macros
Fixes #78333.
-----
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
