What is this lint about
Previously inputs for many built-in attributes weren't validated and nonsensical attributes like #[no_std(arbitraty, string = "foo")] were accepted.
#57321 introduced a check for top-level shape (#[attr] vs #[attr(...)] vs #[attr = ...]) for built-in attributes that produces an error by default, but produces a warning for incorrect attribute forms available on stable that were actually encountered in practice (during crater run).
Currently the list is
#[doc]
#[ignore(...)]
#[inline = "..."]
#[link]
#[link = "..."]
, but it can be extended if more regressions are reported.
How to fix this warning/error
Use one of the correct attribute forms suggested by the compiler.
Current status
What is this lint about
Previously inputs for many built-in attributes weren't validated and nonsensical attributes like
#[no_std(arbitraty, string = "foo")]were accepted.#57321 introduced a check for top-level shape (
#[attr]vs#[attr(...)]vs#[attr = ...]) for built-in attributes that produces an error by default, but produces a warning for incorrect attribute forms available on stable that were actually encountered in practice (during crater run).Currently the list is
, but it can be extended if more regressions are reported.
How to fix this warning/error
Use one of the correct attribute forms suggested by the compiler.
Current status
ill_formed_attribute_inputlint as warn-by-defaultill_formed_attribute_inputlint deny-by-defaultILL_FORMED_ATTRIBUTE_INPUTin dependencies #144544 warns in dependenciesill_formed_attribute_inputlint a hard error