about summary refs log tree commit diff
path: root/library/core/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/core/src/lib.rs')
-rw-r--r--library/core/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/core/src/lib.rs b/library/core/src/lib.rs
index 866cd5ec535..3557dbad90c 100644
--- a/library/core/src/lib.rs
+++ b/library/core/src/lib.rs
@@ -164,7 +164,8 @@
 #![feature(no_niche)] // rust-lang/rust#68303
 #![feature(no_coverage)] // rust-lang/rust#84605
 #![deny(unsafe_op_in_unsafe_fn)]
-#![deny(or_patterns_back_compat)]
+#![cfg_attr(bootstrap, deny(or_patterns_back_compat))]
+#![cfg_attr(not(bootstrap), deny(rust_2021_incompatible_or_patterns))]
 
 // allow using `core::` in intra-doc links
 #[allow(unused_extern_crates)]