mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
6c2e06746d
Emit an error for invalid use of the `#[no_sanitize]` attribute fixes #128487. Currently, the use of the `#[no_sanitize]` attribute for Mod, Impl,... is incorrectly permitted. This PR will correct this issue by generating errors, and I've also added some UI test cases for it. Referenced #128458. As far as I know, the `#[no_sanitize]` attribute can only be used with functions, so I changed that part to `Fn` and `Method` using `check_applied_to_fn_or_method`. However, I couldn't find explicit documentation on this, so I could be mistaken... |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |