rust/tests/ui/attributes
许杰友 Jieyou Xu (Joe) 08c77a6eb4
Add infrastructure #[rustc_confusables] attribute to allow targeted
"no method" errors on standard library types

The standard library developer can annotate methods on e.g.
`BTreeSet::push` with `#[rustc_confusables("insert")]`. When the user
mistypes `btreeset.push()`, `BTreeSet::insert` will be suggested if
there are no other candidates to suggest.
2023-07-16 19:22:03 +08:00
..
auxiliary Add infrastructure #[rustc_confusables] attribute to allow targeted 2023-07-16 19:22:03 +08:00
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 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
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 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-doc-attr.rs Migrate rustc_passes to translatable diagnostics 2023-04-26 11:40:21 +01:00
invalid-doc-attr.stderr Migrate rustc_passes to translatable diagnostics 2023-04-26 11:40:21 +01: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
issue-90873.rs
issue-90873.stderr
issue-100631.rs
issue-100631.stderr
issue-105594-invalid-attr-validation.rs fix ignore-thumbv8m.base 2023-04-03 09:24:07 +02:00
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 Bless tests. 2023-01-12 00:25:46 +01:00
key-value-non-ascii.rs
key-value-non-ascii.stderr
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
main-removed-1.rs
main-removed-1.stderr
method-attributes.rs
multiple-invalid.rs
multiple-invalid.stderr
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
nonterminal-expansion.stderr
obsolete-attr.rs
obsolete-attr.stderr
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
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