rust/tests/ui/attributes
Arthur Cohen bdf4e3de9c 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.
2023-08-07 21:14:28 +02:00
..
auxiliary
main-removed-2
unix_sigpipe
attr-before-view-item2.rs
attr-before-view-item.rs
attr-eq-token-tree.rs
attr-eq-token-tree.stderr
attr-mix-new.rs
attrs-on-params.rs
attrs-on-params.stderr
attrs-with-no-formal-in-generics-1.rs
attrs-with-no-formal-in-generics-1.stderr
attrs-with-no-formal-in-generics-2.rs
attrs-with-no-formal-in-generics-2.stderr
attrs-with-no-formal-in-generics-3.rs
attrs-with-no-formal-in-generics-3.stderr
class-attributes-1.rs
class-attributes-2.rs
collapse-debuginfo-invalid.rs
collapse-debuginfo-invalid.stderr
const-stability-on-macro.rs
const-stability-on-macro.stderr
doc-attr.rs
doc-attr.stderr
doc-test-literal.rs
doc-test-literal.stderr
duplicated-attributes.rs
duplicated-attributes.stderr
extented-attribute-macro-error.rs
extented-attribute-macro-error.stderr
field-attributes-vis-unresolved.rs
field-attributes-vis-unresolved.stderr
invalid_macro_export_argument.deny.stderr
invalid_macro_export_argument.rs
invalid-repr.rs
invalid-repr.stderr
issue-40962.rs
issue-90873.rs
issue-90873.stderr
issue-100631.rs
issue-100631.stderr
issue-105594-invalid-attr-validation.rs
issue-105594-invalid-attr-validation.stderr
item-attributes.rs
key-value-expansion-on-mac.rs
key-value-expansion-on-mac.stderr
key-value-expansion.rs
key-value-expansion.stderr
key-value-non-ascii.rs
key-value-non-ascii.stderr
log-backtrace.rs
macro_export_on_decl_macro.rs check_attrs: Warn when #[macro_export] is used on macros 2.0 2023-08-07 21:14:28 +02:00
macro_export_on_decl_macro.stderr check_attrs: Warn when #[macro_export] is used on macros 2.0 2023-08-07 21:14:28 +02:00
main-removed-1.rs
main-removed-1.stderr
method-attributes.rs
multiple-invalid.rs
multiple-invalid.stderr
no-mangle-closure.rs
no-mangle-closure.stderr
nonterminal-expansion.rs
nonterminal-expansion.stderr
obsolete-attr.rs
obsolete-attr.stderr
rustc_confusables.rs
rustc_confusables.stderr
rustc-box.rs
rustc-box.stderr
suffixed-literal-meta.rs
suffixed-literal-meta.stderr
tool_attributes.rs
unknown-attr.rs
unknown-attr.stderr
unnamed-field-attributes-dup.rs
unnamed-field-attributes-vis.rs
unnamed-field-attributes.rs
unrestricted-attribute-tokens.rs
unused-item-in-attr.rs
unused-item-in-attr.stderr
used_with_arg_no_mangle.rs
used_with_arg.rs
used_with_arg.stderr
used_with_multi_args.rs
used_with_multi_args.stderr
variant-attributes.rs
z-crate-attr.rs