Add source for mutually-exclusive list

This commit is contained in:
David Koloski 2024-05-17 23:29:25 +00:00
parent 5976494deb
commit 1e1143c491
1 changed files with 2 additions and 0 deletions

View File

@ -1316,6 +1316,8 @@ bitflags::bitflags! {
rustc_data_structures::external_bitflags_debug! { SanitizerSet }
impl SanitizerSet {
// Taken from LLVM's sanitizer compatibility logic:
// https://github.com/llvm/llvm-project/blob/release/18.x/clang/lib/Driver/SanitizerArgs.cpp#L512
const MUTUALLY_EXCLUSIVE: &'static [(SanitizerSet, SanitizerSet)] = &[
(SanitizerSet::ADDRESS, SanitizerSet::MEMORY),
(SanitizerSet::ADDRESS, SanitizerSet::THREAD),