about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2024-08-07 20:49:02 -0500
committerGitHub <noreply@github.com>2024-08-07 20:49:02 -0500
commit6c2e06746dc1fb6f0196d894df54454bda956f06 (patch)
tree99878a28bb5b5fada49f44199c174ab0ff526c69 /compiler/rustc_codegen_llvm/src/errors.rs
parent2a177c2047b87438f1695c0bd63c1b7960d889dc (diff)
parent61ea488309ee87c35177171dc98478b94d9f76a1 (diff)
downloadrust-6c2e06746dc1fb6f0196d894df54454bda956f06.tar.gz
rust-6c2e06746dc1fb6f0196d894df54454bda956f06.zip
Rollup merge of #128552 - s7tya:check-no-sanitize-attribute-pos, r=BoxyUwU
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...
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions