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 Add infrastructure #[rustc_confusables] attribute to allow targeted 2023-07-16 19:22:03 +08:00
main-removed-2 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unix_sigpipe Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attr-before-view-item2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attr-before-view-item.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attr-eq-token-tree.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attr-eq-token-tree.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attr-mix-new.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attrs-on-params.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attrs-on-params.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attrs-with-no-formal-in-generics-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attrs-with-no-formal-in-generics-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attrs-with-no-formal-in-generics-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attrs-with-no-formal-in-generics-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attrs-with-no-formal-in-generics-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attrs-with-no-formal-in-generics-3.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
class-attributes-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
class-attributes-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
collapse-debuginfo-invalid.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
collapse-debuginfo-invalid.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-stability-on-macro.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-stability-on-macro.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
doc-attr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
doc-attr.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
doc-test-literal.rs Add test for #![doc(test(...)] with literal parameter 2023-05-29 22:33:46 +03:00
doc-test-literal.stderr Add test for #![doc(test(...)] with literal parameter 2023-05-29 22:33:46 +03:00
duplicated-attributes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
duplicated-attributes.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extented-attribute-macro-error.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extented-attribute-macro-error.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
field-attributes-vis-unresolved.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
field-attributes-vis-unresolved.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
invalid_macro_export_argument.deny.stderr Add invalid_macro_export_arguments to built-in macro list 2023-04-27 18:33:39 +00:00
invalid_macro_export_argument.rs Add invalid_macro_export_arguments to built-in macro list 2023-04-27 18:33:39 +00:00
invalid-repr.rs add test for invalid places of repr align 2023-04-17 12:42:02 +00:00
invalid-repr.stderr add test for invalid places of repr align 2023-04-17 12:42:02 +00:00
issue-40962.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-90873.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-90873.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-100631.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-100631.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-105594-invalid-attr-validation.rs fix ignore-thumbv8m.base 2023-04-03 09:24:07 +02:00
issue-105594-invalid-attr-validation.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
item-attributes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
key-value-expansion-on-mac.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
key-value-expansion-on-mac.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
key-value-expansion.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
key-value-expansion.stderr Bless tests. 2023-01-12 00:25:46 +01:00
key-value-non-ascii.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
key-value-non-ascii.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
log-backtrace.rs Replace a command line flag with an env var to allow tools to initialize the tracing loggers at their own discretion 2023-02-07 16:33:03 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
main-removed-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-attributes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
multiple-invalid.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
multiple-invalid.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-mangle-closure.rs Skip no_mangle if the item has no name. 2023-03-28 18:05:12 +00:00
no-mangle-closure.stderr Skip no_mangle if the item has no name. 2023-03-28 18:05:12 +00:00
nonterminal-expansion.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nonterminal-expansion.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
obsolete-attr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
obsolete-attr.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustc_confusables.rs Add infrastructure #[rustc_confusables] attribute to allow targeted 2023-07-16 19:22:03 +08:00
rustc_confusables.stderr Add infrastructure #[rustc_confusables] attribute to allow targeted 2023-07-16 19:22:03 +08:00
rustc-box.rs Restrict #[rustc_box] to Box::new calls 2023-03-02 02:42:19 +00:00
rustc-box.stderr Restrict #[rustc_box] to Box::new calls 2023-03-02 02:42:19 +00:00
suffixed-literal-meta.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suffixed-literal-meta.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tool_attributes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unknown-attr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unknown-attr.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unnamed-field-attributes-dup.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unnamed-field-attributes-vis.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unnamed-field-attributes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unrestricted-attribute-tokens.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused-item-in-attr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused-item-in-attr.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
used_with_arg_no_mangle.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
used_with_arg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
used_with_arg.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
used_with_multi_args.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
used_with_multi_args.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
variant-attributes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
z-crate-attr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00