mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
10b3a0d209
rustc: Stricter checking for #[link] attributes A subset of https://github.com/rust-lang/rust/pull/94962 that doesn't touch library renaming/reordering/deduplication. `#[link]` attributes are checked for all kinds of unexpected arguments inside them. I also tried to make wording for these errors more consistent, that's why some existing errors are changed, including errors for command line `-l` options. Spans are also made more precise where possible.