about summary refs log tree commit diff
path: root/tests/ui/attributes/unsafe
AgeCommit message (Collapse)AuthorLines
2025-10-01mbe: Support `unsafe` attribute rulesJosh Triplett-10/+6
2025-08-22Updated uitests for new parserJonathan Brouwer-11/+11
2025-08-11Add more docs to templates for attrs with incorrect argumentsEsteban Küber-0/+1
2025-08-11Allow attr entries to declare list of alternatives for `List` and ↵Esteban Küber-3/+11
`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-13/+24
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-04-04Do not visit whole crate to compute `lints_that_dont_need_to_run`.Camille GILLOT-1/+19
2024-11-22Stabilize the 2024 editionEric Huss-11/+10
2024-09-30Reject leading unsafe in `cfg!(...)` and `--check-cfg`.Urgau-2/+24
2024-08-07Stabilize `unsafe_attributes`carbotaniuman-48/+35
2024-07-30Add toggle for `parse_meta_item` unsafe parsingcarbotaniuman-25/+157
This makes it possible for the `unsafe(...)` syntax to only be valid at the top level, and the `NestedMetaItem`s will automatically reject `unsafe(...)`.
2024-07-29Deny unsafe on more builtin attributescarbotaniuman-1/+194
2024-06-23Add hard error and migration lint for unsafe attrscarbotaniuman-6/+6
2024-06-06Add double unsafe testcarbotaniuman-0/+36
2024-06-06Error on unsafe on non-unsafe attributecarbotaniuman-0/+34
2024-06-06Add testscarbotaniuman-0/+14
2024-06-06Disallow unsafe in derivecarbotaniuman-0/+14