about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-11-23 22:05:28 +0000
committerbors <bors@rust-lang.org>2020-11-23 22:05:28 +0000
commitf32a0cce2fd5aaf5f361192af59cf1f2afa5f0ac (patch)
tree3cace06ffc49ad1d8418bdc4fdc09dd32ed84196 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentd9a105fdd46c926ae606777a46dd90e5b838f92f (diff)
parentd8b1d51b9540be6e51e46077ac6f196f088b0e80 (diff)
downloadrust-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