diff options
| author | onur-ozkan <work@onurozkan.dev> | 2025-05-27 18:28:46 +0300 |
|---|---|---|
| committer | onur-ozkan <work@onurozkan.dev> | 2025-05-30 21:03:54 +0300 |
| commit | 37cd39f3ce831afdfb4741474bdeefafda93bf6a (patch) | |
| tree | 35dc8ad8136b79ad71707ea664eb8060ab0cc3be /compiler/rustc_data_structures/src/lib.rs | |
| parent | 613eceb80e9adceed4a80ca6cc838ffae3ccc78c (diff) | |
| download | rust-37cd39f3ce831afdfb4741474bdeefafda93bf6a.tar.gz rust-37cd39f3ce831afdfb4741474bdeefafda93bf6a.zip | |
handle cfg bootstrap on compiler and miri
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Diffstat (limited to 'compiler/rustc_data_structures/src/lib.rs')
| -rw-r--r-- | compiler/rustc_data_structures/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/lib.rs b/compiler/rustc_data_structures/src/lib.rs index b34a7fdb9e4..b7447e24731 100644 --- a/compiler/rustc_data_structures/src/lib.rs +++ b/compiler/rustc_data_structures/src/lib.rs @@ -10,6 +10,8 @@ #![allow(internal_features)] #![allow(rustc::default_hash_types)] #![allow(rustc::potential_query_instability)] +#![cfg_attr(bootstrap, feature(cfg_match))] +#![cfg_attr(not(bootstrap), feature(cfg_select))] #![deny(unsafe_op_in_unsafe_fn)] #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")] #![doc(rust_logo)] @@ -19,7 +21,6 @@ #![feature(ascii_char_variants)] #![feature(assert_matches)] #![feature(auto_traits)] -#![feature(cfg_select)] #![feature(core_intrinsics)] #![feature(dropck_eyepatch)] #![feature(extend_one)] |
