diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2021-01-10 16:56:05 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-10 16:56:05 +0900 |
| commit | 3e735c6e933d82c52ab7202617fc8d009e696956 (patch) | |
| tree | 8a3f99624f734d16b2405f640b0ba183236f8c7d /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 5acac4c9797b701285a827bb734416dc3a31d78d (diff) | |
| parent | b293bbaba007659495025b7db945684bb1fa5b71 (diff) | |
| download | rust-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/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
