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 | d5b40bf469aa1f5d1e26e956a02ad70cb7d4358e (patch) | |
| tree | db4836e1a7df4139b028fb1872a03d24c3fe5af8 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | e5fddb6747dae0e01392e1cd47baba9e0587c8e7 (diff) | |
| parent | d708b444e4dc324369ba7ee2235451399f828321 (diff) | |
| download | rust-d5b40bf469aa1f5d1e26e956a02ad70cb7d4358e.tar.gz rust-d5b40bf469aa1f5d1e26e956a02ad70cb7d4358e.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
