about summary refs log tree commit diff
path: root/tests/ui/proc-macro/attribute.stderr
AgeCommit message (Collapse)AuthorLines
2025-08-11Add more docs to templates for attrs with incorrect argumentsEsteban Küber-15/+31
2025-08-11Allow attr entries to declare list of alternatives for `List` and ↵Esteban Küber-50/+172
`NamedValueStr` Modify `AttributeTemplate` to support list of alternatives for list and name value attribute styles. Suggestions now provide more correct suggested code: ``` error[E0805]: malformed `used` attribute input --> $DIR/used_with_multi_args.rs:3:1 | LL | #[used(compiler, linker)] | ^^^^^^------------------^ | | | expected a single argument here | help: try changing it to one of the following valid forms of the attribute | LL - #[used(compiler, linker)] LL + #[used(compiler)] | LL - #[used(compiler, linker)] LL + #[used(linker)] | LL - #[used(compiler, linker)] LL + #[used] | ``` instead of the prior "masking" of the lack of this feature by suggesting pipe-separated lists: ``` error[E0805]: malformed `used` attribute input --> $DIR/used_with_multi_args.rs:3:1 | LL | #[used(compiler, linker)] | ^^^^^^------------------^ | | | expected a single argument here | help: try changing it to one of the following valid forms of the attribute | LL - #[used(compiler, linker)] LL + #[used(compiler|linker)] | LL - #[used(compiler, linker)] LL + #[used] | ```
2025-07-26Update test resultsJonathan Brouwer-54/+98
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2023-01-11Move /src/test to /testsAlbert Larsan-0/+104