about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2021-01-10 16:56:05 +0900
committerGitHub <noreply@github.com>2021-01-10 16:56:05 +0900
commit3e735c6e933d82c52ab7202617fc8d009e696956 (patch)
tree8a3f99624f734d16b2405f640b0ba183236f8c7d /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent5acac4c9797b701285a827bb734416dc3a31d78d (diff)
parentb293bbaba007659495025b7db945684bb1fa5b71 (diff)
downloadrust-3e735c6e933d82c52ab7202617fc8d009e696956.tar.gz
rust-3e735c6e933d82c52ab7202617fc8d009e696956.zip
Rollup merge of #80850 - m-ou-se:rustc-builtin-macro-name, r=petrochenkov
Allow #[rustc_builtin_macro = "name"]

This adds the option of specifying the name of a builtin macro in the `#[rustc_builtin_macro]` attribute: `#[rustc_builtin_macro = "name"]`.

This makes it possible to have both `std::panic!` and `core::panic!` as a builtin macro, by using different builtin macro names for each. This is needed to implement the edition-specific behaviour of the panic macros of RFC 3007.

Also removes `SyntaxExtension::is_derive_copy`, as the macro name (e.g. `sym::Copy`) is now tracked and provides that information directly.

r? ``@petrochenkov``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions