rust/src/test/ui/attributes
Camille GILLOT ae126ad282 Do not visit attributes in ItemLowerer.
By default, AST visitors visit expressions that appear in key-value attributes.
Those expressions should not be lowered to HIR, as they do not correspond to actually compiled code.

Since an attribute cannot produce meaningful HIR, just skip them altogether.
2021-11-23 22:06:22 +01:00
..
auxiliary Expand NtExpr tokens only in key-value attributes 2020-11-03 00:53:43 +03:00
attr-before-view-item.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
attr-before-view-item2.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
attr-eq-token-tree.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
attr-eq-token-tree.stderr Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
attr-mix-new.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
attrs-on-params.rs Add attr-on-params test 2021-02-09 22:17:10 +01:00
attrs-on-params.stderr Add attr-on-params test 2021-02-09 22:17:10 +01:00
attrs-with-no-formal-in-generics-1.rs Make sure #[rustc_doc_only_macro] and other rustc attributes are registered 2019-06-30 12:47:33 +03:00
attrs-with-no-formal-in-generics-1.stderr Make sure #[rustc_doc_only_macro] and other rustc attributes are registered 2019-06-30 12:47:33 +03:00
attrs-with-no-formal-in-generics-2.rs Make sure #[rustc_doc_only_macro] and other rustc attributes are registered 2019-06-30 12:47:33 +03:00
attrs-with-no-formal-in-generics-2.stderr Make sure #[rustc_doc_only_macro] and other rustc attributes are registered 2019-06-30 12:47:33 +03:00
attrs-with-no-formal-in-generics-3.rs Move some run-pass attribute tests to ui 2019-06-08 23:55:25 +03:00
attrs-with-no-formal-in-generics-3.stderr Move some run-pass attribute tests to ui 2019-06-08 23:55:25 +03:00
class-attributes-1.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
class-attributes-2.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
const-stability-on-macro.rs Add test for "const stability on macro" 2021-02-11 11:30:05 -08:00
const-stability-on-macro.stderr Add test for "const stability on macro" 2021-02-11 11:30:05 -08:00
doc-attr.rs Tweak diagnostics 2021-03-14 14:00:02 -07:00
doc-attr.stderr Tweak diagnostics 2021-03-14 14:00:02 -07:00
extented-attribute-macro-error.rs Resolve issue 85066 2021-09-19 10:53:49 +02:00
extented-attribute-macro-error.stderr Resolve issue 85066 2021-09-19 10:53:49 +02:00
field-attributes-vis-unresolved.rs resolve: Make visibility resolution more speculative 2019-12-09 22:41:47 +03:00
field-attributes-vis-unresolved.stderr resolve: Make visibility resolution more speculative 2019-12-09 22:41:47 +03:00
invalid-doc-attr.rs Error on conflicting #[doc(inline)]/#[doc(no_inline)] attributes 2021-05-08 17:22:26 +02:00
invalid-doc-attr.stderr Unify titles in rustdoc book doc attributes chapter 2021-10-29 21:27:44 +02:00
issue-40962.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-90873.rs Do not visit attributes in ItemLowerer. 2021-11-23 22:06:22 +01:00
issue-90873.stderr Do not visit attributes in ItemLowerer. 2021-11-23 22:06:22 +01:00
item-attributes.rs Update tests for extern block linting 2021-01-13 07:49:16 -05:00
key-value-expansion-on-mac.rs Stabilize extended_key_value_attributes 2021-05-18 01:01:36 -04:00
key-value-expansion-on-mac.stderr Stabilize extended_key_value_attributes 2021-05-18 01:01:36 -04:00
key-value-expansion.rs Accept arbitrary expressions in key-value attributes at parse time 2020-12-09 21:37:32 +03:00
key-value-expansion.stderr Align multiline messages to their label (add left margin) 2021-11-20 19:19:33 +00:00
key-value-non-ascii.rs Handle Spans for byte and raw strings and add more detail 2021-02-03 13:34:28 -08:00
key-value-non-ascii.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
method-attributes.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
multiple-invalid.rs hir: Disallow target_feature on constants 2019-09-26 16:55:52 +01:00
multiple-invalid.stderr hir: Disallow target_feature on constants 2019-09-26 16:55:52 +01:00
nonterminal-expansion.rs Enhance well-formedness checks for #[repr(...)] attributes 2021-07-09 22:03:48 +02:00
nonterminal-expansion.stderr Bless tests 2021-10-15 02:36:58 -05:00
obsolete-attr.rs Update tests for extern block linting 2021-01-13 07:49:16 -05:00
obsolete-attr.stderr Update tests for extern block linting 2021-01-13 07:49:16 -05:00
register-attr-tool-fail.rs Support registering attributes and attribute tools using crate-level attributes 2019-11-09 17:50:51 +03:00
register-attr-tool-fail.stderr Move malformed attribute code to a function and fix inner attribute suggestion. 2021-09-25 08:11:10 -07:00
register-attr-tool-import.rs Use opt_def_id() over def_id() 2020-03-01 15:15:29 +09:00
register-attr-tool-import.stderr Use opt_def_id() over def_id() 2020-03-01 15:15:29 +09:00
register-attr-tool-prelude.rs Clarify message about unresolved use 2020-09-01 18:38:14 +01:00
register-attr-tool-prelude.stderr Clarify message about unresolved use 2020-09-01 18:38:14 +01:00
register-attr-tool-unused.rs Remove Session.used_attrs and move logic to CheckAttrVisitor 2021-08-21 13:27:27 -05:00
register-attr-tool-unused.stderr Remove Session.used_attrs and move logic to CheckAttrVisitor 2021-08-21 13:27:27 -05:00
register-attr-tool.rs Support registering attributes and attribute tools using crate-level attributes 2019-11-09 17:50:51 +03:00
suffixed-literal-meta.rs Move some tests to more reasonable directories 2021-11-18 12:09:34 -03:00
suffixed-literal-meta.stderr Move some tests to more reasonable directories 2021-11-18 12:09:34 -03:00
tool_attributes.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
unknown-attr.rs resolve: Tweak "cannot find" wording for attributes 2019-09-15 13:10:12 +03:00
unknown-attr.stderr resolve: Tweak "cannot find" wording for attributes 2019-09-15 13:10:12 +03:00
unnamed-field-attributes-dup.rs def_collector: Do not forget to save indices of fields with multiple attributes 2019-11-24 11:47:45 +03:00
unnamed-field-attributes-vis.rs expand: Fully preserve visibilities on unnamed fields with attributes 2019-11-24 11:47:46 +03:00
unnamed-field-attributes.rs def_collector: Do not ICE on attributes on unnamed fields 2019-09-14 17:36:39 +03:00
unrestricted-attribute-tokens.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
variant-attributes.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00