rust/tests/ui/attributes
bors c0e32983f5 Auto merge of #127543 - carbotaniuman:more_unsafe_attr_verification, r=estebank,traviscross
More unsafe attr verification

This code denies unsafe on attributes such as `#[test]` and `#[ignore]`, while also changing the `MetaItem` parsing so `unsafe` in args like `#[allow(unsafe(dead_code))]` is not accidentally allowed.

Tracking:

- https://github.com/rust-lang/rust/issues/123757
2024-08-01 10:40:45 +00:00
..
auxiliary
main-removed-2
unsafe Add toggle for parse_meta_item unsafe parsing 2024-07-30 18:28:43 -05:00
arg-error-issue-121425.rs fix spans of arguments in diagnostic 2024-03-03 10:48:40 +08:00
arg-error-issue-121425.stderr fix spans of arguments in diagnostic 2024-03-03 10:48:40 +08:00
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 debuginfo: Stabilize -Z debug-macros, -Z collapse-macro-debuginfo and #[collapse_debuginfo] 2024-04-25 22:14:47 +03:00
collapse-debuginfo-invalid.stderr debuginfo: Stabilize -Z debug-macros, -Z collapse-macro-debuginfo and #[collapse_debuginfo] 2024-04-25 22:14:47 +03:00
const-stability-on-macro.rs
const-stability-on-macro.stderr
doc-attr.rs Update ui tests 2024-02-29 14:43:43 +01:00
doc-attr.stderr Update ui tests 2024-02-29 14:43:43 +01:00
doc-test-literal.rs Update ui tests 2024-02-29 14:43:43 +01:00
doc-test-literal.stderr Update ui tests 2024-02-29 14:43:43 +01:00
dump_def_parents.rs Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10:00
dump_def_parents.stderr add rustc_dump_def_parents attribute 2024-06-30 19:31:21 +01:00
dump-preds.rs Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10:00
dump-preds.stderr rustc_type_ir: derivative -> derive-where 2024-07-12 21:52:04 +03:00
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 Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
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 Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
issue-100631.rs
issue-100631.stderr
issue-105594-invalid-attr-validation.rs
issue-105594-invalid-attr-validation.stderr
issue-115264-expr-field.rs
issue-115264-pat-field.rs
item-attributes.rs Remove libc from rust_get_test_int uses 2024-04-17 09:18:14 -04:00
key-value-expansion-on-mac.rs
key-value-expansion-on-mac.stderr
key-value-expansion-scope-pass.rs resolve: Implement a lint for out-of-scope use of macro_rules 2024-06-24 17:12:08 +03:00
key-value-expansion-scope.rs resolve: Implement a lint for out-of-scope use of macro_rules 2024-06-24 17:12:08 +03:00
key-value-expansion-scope.stderr resolve: Implement a lint for out-of-scope use of macro_rules 2024-06-24 17:12:08 +03:00
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
macro_export_on_decl_macro.stderr
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 Fix parse error message for meta items 2024-05-10 09:16:27 +02:00
nonterminal-expansion.stderr Fix parse error message for meta items 2024-05-10 09:16:27 +02:00
obsolete-attr.rs
obsolete-attr.stderr
optimize.rs Emit an error if #[optimize] is applied to an incompatible item 2024-07-31 20:28:00 +00:00
optimize.stderr Emit an error if #[optimize] is applied to an incompatible item 2024-07-31 20:28:00 +00:00
rustc_confusables_std_cases.rs Consider methods from traits when suggesting typos 2024-02-22 18:04:55 +00:00
rustc_confusables_std_cases.stderr Note for E0599 if shadowed bindings has the method. 2024-05-20 18:53:17 +08:00
rustc_confusables.rs Deduplicate some logic and reword output 2024-02-22 18:05:28 +00:00
rustc_confusables.stderr Deduplicate some logic and reword output 2024-02-22 18:05:28 +00:00
rustc-box.rs
rustc-box.stderr
statement-attribute-validation.rs
statement-attribute-validation.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
used-issue-126789.rs Show used attribute's kind for user when find it isn't applied to a static variable. 2024-06-29 19:39:09 +08:00
used-issue-126789.stderr Show used attribute's kind for user when find it isn't applied to a static variable. 2024-06-29 19:39:09 +08:00
validation-on-associated-items-issue-121537.rs fix attribute validation on associated items in traits 2024-02-24 08:14:38 -05:00
validation-on-associated-items-issue-121537.stderr fix attribute validation on associated items in traits 2024-02-24 08:14:38 -05:00
variant-attributes.rs
z-crate-attr.rs