X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibcore%2Flib.rs;h=f77b4d7461e74a164f6df4982150c2854f1f5742;hb=b626202087dff72216c14e08e11d936136dc2126;hp=95ffe4f438f5f608d69ea683989a974000846b04;hpb=076d6a0c9a6dd53358dbd56ca1aa662325c2df6b;p=rust.git diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index 95ffe4f438f..f77b4d7461e 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -44,7 +44,7 @@ // Here we explicitly #[cfg]-out this whole crate when testing. If we don't do // this, both the generated test artifact and the linked libtest (which // transitively includes libcore) will both define the same set of lang items, -// and this will cause the E0152 "duplicate lang item found" error. See +// and this will cause the E0152 "found duplicate lang item" error. See // discussion in #50466 for details. // // This cfg won't affect doc tests. @@ -133,7 +133,7 @@ #![feature(associated_type_bounds)] #![feature(const_type_id)] #![feature(const_caller_location)] -#![feature(slice_patterns)] +#![cfg_attr(bootstrap, feature(slice_patterns))] #[prelude_import] #[allow(unused)]