about summary refs log tree commit diff
path: root/tests/rustdoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-09-04 22:51:33 +0000
committerbors <bors@rust-lang.org>2025-09-04 22:51:33 +0000
commitb3cfb8faf84c5f3b7909479a9f9b6a3290d5f4d7 (patch)
tree6e291656e0d53f147359ddf2dd2a8a1e802cbdb7 /tests/rustdoc
parentaf00ff2ce62b6617ed19305ae39e135ac71d0b22 (diff)
parent6d637dfeccd7d22523e584203e666535db878165 (diff)
Auto merge of #138736 - azhogin:azhogin/sanitizers-target-modificators, r=rcvalle
Sanitizers target modificators

Depends on bool flag fix: https://github.com/rust-lang/rust/pull/138483.

Some sanitizers need to be target modifiers, and some do not. For now, we should mark all sanitizers as target modifiers except for these: AddressSanitizer, LeakSanitizer

For kCFI, the helper flag -Zsanitizer-cfi-normalize-integers should also be a target modifier.

Many test errors was with sanizer flags inconsistent with std deps. Tests are fixed with `-C unsafe-allow-abi-mismatch`.
Diffstat (limited to 'tests/rustdoc')
-rw-r--r--tests/rustdoc/sanitizer-option.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rustdoc/sanitizer-option.rs b/tests/rustdoc/sanitizer-option.rs
index 2adf1be51fd..7b0038138f0 100644
--- a/tests/rustdoc/sanitizer-option.rs
+++ b/tests/rustdoc/sanitizer-option.rs
@@ -1,6 +1,6 @@
 //@ needs-sanitizer-support
 //@ needs-sanitizer-address
-//@ compile-flags: --test -Z sanitizer=address
+//@ compile-flags: --test -Z sanitizer=address -C unsafe-allow-abi-mismatch=sanitizer
 //
 // #43031: Verify that rustdoc passes `-Z` options to rustc. Use an extern
 // function that is provided by the sanitizer runtime, if flag is not passed