about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/context.rs
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2023-08-02 20:08:28 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2023-08-07 21:14:28 +0200
commitbdf4e3de9c4634af517c05c58f049eda0c28ea5f (patch)
tree06f15cc0d5f61d1459c99a6db6f4edbc3886a0c0 /compiler/rustc_codegen_llvm/src/context.rs
parentf1776250eb6034569617007abcd0b518f67dc20c (diff)
downloadrust-bdf4e3de9c4634af517c05c58f049eda0c28ea5f.tar.gz
rust-bdf4e3de9c4634af517c05c58f049eda0c28ea5f.zip
check_attrs: Warn when #[macro_export] is used on macros 2.0
The compiler should emit a more specific error when the `#[macro_export]`
attribute is present on a decl macro, instead of silently ignoring it.

This commit adds the required error message in rustc_passes/messages.ftl,
 as well as a note. A new variant is added to the `errors::MacroExport`
enum, specifically for the case where the attribute is added to a macro
2.0.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
0 files changed, 0 insertions, 0 deletions