about summary refs log tree commit diff
path: root/tests/ui/invalid/invalid-inline.stderr
AgeCommit message (Collapse)AuthorLines
2025-08-11Add more docs to templates for attrs with incorrect argumentsEsteban Küber-0/+2
2025-08-11Allow attr entries to declare list of alternatives for `List` and ↵Esteban Küber-3/+8
`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-06-17make error codes reflect reality betterJana Dönszelmann-15/+9
2025-06-17use consistent attr errors in all attribute parsersJana Dönszelmann-2/+2
2025-06-17fix bugs in inline/force_inline and diagnostics of all attr parsersJana Dönszelmann-3/+30
2023-01-11Move /src/test to /testsAlbert Larsan-0/+15