Skip to content

Commit 1e1143c

Browse files
committed
Add source for mutually-exclusive list
1 parent 5976494 commit 1e1143c

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_target/src/spec

1 file changed

+2
-0
lines changed

compiler/rustc_target/src/spec/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,8 @@ bitflags::bitflags! {
13161316
rustc_data_structures::external_bitflags_debug! { SanitizerSet }
13171317

13181318
impl SanitizerSet {
1319+
// Taken from LLVM's sanitizer compatibility logic:
1320+
// https://github.com/llvm/llvm-project/blob/release/18.x/clang/lib/Driver/SanitizerArgs.cpp#L512
13191321
const MUTUALLY_EXCLUSIVE: &'static [(SanitizerSet, SanitizerSet)] = &[
13201322
(SanitizerSet::ADDRESS, SanitizerSet::MEMORY),
13211323
(SanitizerSet::ADDRESS, SanitizerSet::THREAD),

0 commit comments

Comments
 (0)