rust/tests/codegen-llvm/sanitizer
Bastian Kersting 95bdb34494 Remove the no_sanitize attribute in favor of sanitize
This removes the #[no_sanitize] attribute, which was behind an unstable
feature named no_sanitize. Instead, we introduce the sanitize attribute
which is more powerful and allows to be extended in the future (instead
of just focusing on turning sanitizers off).

This also makes sanitize(kernel_address = ..) attribute work with
-Zsanitize=address

To do it the same as how clang disables address sanitizer, we now
disable ASAN on sanitize(kernel_address = "off") and KASAN on
sanitize(address = "off").

The same was added to clang in https://reviews.llvm.org/D44981.
2025-08-18 08:45:28 +00:00
..
cfi Remove the no_sanitize attribute in favor of sanitize 2025-08-18 08:45:28 +00:00
kcfi Remove the no_sanitize attribute in favor of sanitize 2025-08-18 08:45:28 +00:00
aarch64-shadow-call-stack-with-fixed-x18.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
address-sanitizer-globals-tracking.rs Verify llvm-needs-components are not empty and match the --target value 2025-07-29 11:20:23 -07:00
dataflow-instrument-functions.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
kasan-emits-instrumentation.rs Remove the no_sanitize attribute in favor of sanitize 2025-08-18 08:45:28 +00:00
memory-track-origins.rs Verify llvm-needs-components are not empty and match the --target value 2025-07-29 11:20:23 -07:00
memtag-attr-check.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
riscv64-shadow-call-stack.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
safestack-attr-check.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
sanitize-off-asan-kasan.rs Remove the no_sanitize attribute in favor of sanitize 2025-08-18 08:45:28 +00:00
sanitize-off-inlining.rs Remove the no_sanitize attribute in favor of sanitize 2025-08-18 08:45:28 +00:00
sanitize-off-kasan-asan.rs Remove the no_sanitize attribute in favor of sanitize 2025-08-18 08:45:28 +00:00
sanitize-off.rs Remove the no_sanitize attribute in favor of sanitize 2025-08-18 08:45:28 +00:00
sanitizer-recover.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
scs-attr-check.rs Remove the no_sanitize attribute in favor of sanitize 2025-08-18 08:45:28 +00:00