rust/tests/ui/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
..
auxiliary Locate asan-odr-win with other sanitizer tests 2025-01-27 19:35:53 +01:00
cfi Add ignore-backends annotations in failing GCC backend ui tests 2025-07-23 13:48:04 +02:00
address.rs tests: Require run-fail ui tests to have an exit code (SIGABRT not ok) 2025-07-19 18:44:07 +02:00
asan_odr_windows.rs Require sanitizers be enabled for asan_odr_windows.rs 2025-04-29 10:55:22 -07:00
badfree.rs tests: Require run-fail ui tests to have an exit code (SIGABRT not ok) 2025-07-19 18:44:07 +02:00
cfg-kasan.rs tests: use minicore more 2025-02-24 09:26:54 +00:00
cfg.rs tests: use minicore more 2025-02-24 09:26:54 +00:00
crt-static.rs compiletest: Support matching on diagnostics without a span 2025-03-25 17:33:09 +03:00
crt-static.stderr Move sanitizer ui tests to sanitizer directory 2024-02-29 12:22:34 -08:00
dataflow-abilist.txt Change __rust_no_alloc_shim_is_unstable to be a function 2025-06-16 10:54:07 -07:00
dataflow.rs Add initial support for DataFlowSanitizer 2024-03-01 18:50:40 -08:00
hwaddress.rs Move sanitizer ui tests to sanitizer directory 2024-02-29 12:22:34 -08:00
incompatible.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
incompatible.stderr Move sanitizer ui tests to sanitizer directory 2024-02-29 12:22:34 -08:00
inline-always-sanitize.rs Remove the no_sanitize attribute in favor of sanitize 2025-08-18 08:45:28 +00:00
inline-always-sanitize.stderr Implement the #[sanitize(..)] attribute 2025-08-18 08:30:00 +00:00
issue-72154-address-lifetime-markers.rs Move sanitizer ui tests to sanitizer directory 2024-02-29 12:22:34 -08:00
issue-111184-cfi-coroutine-witness.rs replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
issue-114275-cfi-const-expr-in-arry-len.rs Move sanitizer ui tests to sanitizer directory 2024-02-29 12:22:34 -08:00
kcfi-arity-requires-kcfi.rs KCFI: Add KCFI arity indicator support 2025-04-05 04:05:04 +00:00
kcfi-arity-requires-kcfi.stderr KCFI: Add KCFI arity indicator support 2025-04-05 04:05:04 +00:00
kcfi-arity-requires-llvm-21-0-0.rs KCFI: Add KCFI arity indicator support 2025-04-05 04:05:04 +00:00
kcfi-arity-requires-llvm-21-0-0.stderr KCFI: Add KCFI arity indicator support 2025-04-05 04:05:04 +00:00
kcfi-mangling.rs Add ignore-backends annotations in failing GCC backend ui tests 2025-07-23 13:48:04 +02:00
leak.rs Move sanitizer ui tests to sanitizer directory 2024-02-29 12:22:34 -08:00
memory-eager.rs Workaround a MemorySanitizer test issue 2025-07-04 14:47:28 -07:00
memory-passing.rs remove support for the #[start] attribute 2025-01-21 06:59:15 -07:00
memory.rs remove support for the #[start] attribute 2025-01-21 06:59:15 -07:00
new-llvm-pass-manager-thin-lto.rs tests: Require run-fail ui tests to have an exit code (SIGABRT not ok) 2025-07-19 18:44:07 +02:00
split-lto-unit-requires-lto.rs compiletest: Support matching on diagnostics without a span 2025-03-25 17:33:09 +03:00
split-lto-unit-requires-lto.stderr Move sanitizer ui tests to sanitizer directory 2024-02-29 12:22:34 -08:00
thread.rs tests: Require run-fail ui tests to have an exit code (SIGABRT not ok) 2025-07-19 18:44:07 +02:00
unsupported-target.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
unsupported-target.stderr Move sanitizer ui tests to sanitizer directory 2024-02-29 12:22:34 -08:00
use-after-scope.rs tests: Require run-fail ui tests to have an exit code (SIGABRT not ok) 2025-07-19 18:44:07 +02:00