• A
    check_attrs: Warn when #[macro_export] is used on macros 2.0 · bdf4e3de
    Arthur Cohen 提交于
    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.
    bdf4e3de
messages.ftl 28.5 KB