Skip to content

Commit 2072e11

Browse files
Rollup merge of #80591 - lcnr:incomplete-features, r=RalfJung
remove allow(incomplete_features) from std cc #80349 (comment) > Now I am somewhat concerned that the standard library uses some of these features... I think it is theoretically ok to use incomplete features in the standard library or the compiler if we know that there is an already working subset and we explicitly document what we have to be careful about. Though at that point it is probably better to try and split the incomplete feature into two separate ones, similar to `min_specialization`. Will be interesting once `feature(const_evaluatable_checked)` works well enough to imo be used in the compiler but not yet well enough to be removed from `INCOMPLETE_FEATURES`. r? `@RalfJung`
2 parents 2686daa + 6cf47ff commit 2072e11

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

library/alloc/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
#![warn(missing_docs)]
7171
#![warn(missing_debug_implementations)]
7272
#![allow(explicit_outlives_requirements)]
73-
#![allow(incomplete_features)]
7473
#![deny(unsafe_op_in_unsafe_fn)]
7574
#![feature(rustc_allow_const_fn_unstable)]
7675
#![cfg_attr(not(test), feature(generator_trait))]
@@ -90,7 +89,6 @@
9089
#![feature(coerce_unsized)]
9190
#![feature(const_btree_new)]
9291
#![feature(const_fn)]
93-
#![feature(const_generics)]
9492
#![feature(const_in_array_repeat_expressions)]
9593
#![feature(cow_is_borrowed)]
9694
#![feature(const_cow_is_borrowed)]
@@ -120,6 +118,7 @@
120118
#![feature(raw_ref_op)]
121119
#![feature(rustc_attrs)]
122120
#![feature(receiver_trait)]
121+
#![cfg_attr(bootstrap, feature(min_const_generics))]
123122
#![feature(min_specialization)]
124123
#![feature(slice_ptr_get)]
125124
#![feature(slice_ptr_len)]

library/core/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
#![warn(missing_docs)]
6363
#![warn(missing_debug_implementations)]
6464
#![allow(explicit_outlives_requirements)]
65-
#![allow(incomplete_features)]
6665
#![feature(rustc_allow_const_fn_unstable)]
6766
#![feature(allow_internal_unstable)]
6867
#![feature(arbitrary_self_types)]
@@ -89,7 +88,6 @@
8988
#![feature(const_impl_trait)]
9089
#![feature(const_fn_floating_point_arithmetic)]
9190
#![feature(const_fn_fn_ptr_basics)]
92-
#![feature(const_generics)]
9391
#![feature(const_option)]
9492
#![feature(const_precise_live_drops)]
9593
#![feature(const_ptr_offset)]
@@ -131,6 +129,7 @@
131129
#![feature(repr_simd, platform_intrinsics)]
132130
#![feature(rustc_attrs)]
133131
#![feature(simd_ffi)]
132+
#![cfg_attr(bootstrap, feature(min_const_generics))]
134133
#![feature(min_specialization)]
135134
#![feature(staged_api)]
136135
#![feature(std_internals)]

0 commit comments

Comments
 (0)