Files
rust/tests/ui/conditional-compilation
Nicholas Nethercote 3e5b244994 Mark duplicate attr messages as not machine applicable
This commit adds a new test for some uncovered cases. The thing to note
here is the varying correctness of the `help:` lines.

This is correct:
```
LL | #[inline]
   | ^^^^^^^^^ help: remove this attribute
```

The following two are half correct. They give the right idea but if
applied literally they will produce syntax that triggers either a warning
(the former) or an error (the latter).
```
LL | #[cfg_attr(true, inline)]
   |                  ^^^^^^ help: remove this attribute

LL | #[cfg_attr(true, inline, deprecated)]
   |                  ^^^^^^ help: remove this attribute
```

For this reason, this commit also marks these help messages as not
machine-applicable. This means we lose the machine applicability on some
cases where it's correct, but it seems better to be conservative.
2026-09-29 14:43:16 +10:00
..