about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-11-30 10:23:39 +0100
committerRalf Jung <post@ralfj.de>2024-11-30 10:23:39 +0100
commit0dc94404ee1c529dcf0071f0ef84f64934e7f747 (patch)
tree81b4f9b78471ae544f4c4b79f25b9d9af1a66193
parent76f3ff605962d7046bc1537597ceed5e12325f54 (diff)
downloadrust-0dc94404ee1c529dcf0071f0ef84f64934e7f747.tar.gz
rust-0dc94404ee1c529dcf0071f0ef84f64934e7f747.zip
remove a whole bunch of unnecessary const feature gates
-rw-r--r--library/alloc/src/lib.rs8
-rw-r--r--library/alloc/tests/lib.rs2
-rw-r--r--library/core/src/lib.rs19
-rw-r--r--library/core/tests/lib.rs1
-rw-r--r--library/std/src/lib.rs2
5 files changed, 0 insertions, 32 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs
index 108224b27fa..84f4202c02a 100644
--- a/library/alloc/src/lib.rs
+++ b/library/alloc/src/lib.rs
@@ -91,8 +91,6 @@
 //
 // Library features:
 // tidy-alphabetical-start
-#![cfg_attr(not(no_global_oom_handling), feature(const_alloc_error))]
-#![cfg_attr(not(no_global_oom_handling), feature(const_btree_len))]
 #![cfg_attr(test, feature(str_as_str))]
 #![feature(alloc_layout_extra)]
 #![feature(allocator_api)]
@@ -107,13 +105,8 @@
 #![feature(box_uninit_write)]
 #![feature(clone_to_uninit)]
 #![feature(coerce_unsized)]
-#![feature(const_align_of_val)]
-#![feature(const_box)]
 #![feature(const_eval_select)]
 #![feature(const_heap)]
-#![feature(const_maybe_uninit_write)]
-#![feature(const_size_of_val)]
-#![feature(const_vec_string_slice)]
 #![feature(core_intrinsics)]
 #![feature(deprecated_suggestion)]
 #![feature(deref_pure_trait)]
@@ -170,7 +163,6 @@
 #![feature(allow_internal_unstable)]
 #![feature(cfg_sanitize)]
 #![feature(const_precise_live_drops)]
-#![feature(const_try)]
 #![feature(decl_macro)]
 #![feature(dropck_eyepatch)]
 #![feature(fundamental)]
diff --git a/library/alloc/tests/lib.rs b/library/alloc/tests/lib.rs
index 02bbb40ef81..bcab17e7b2d 100644
--- a/library/alloc/tests/lib.rs
+++ b/library/alloc/tests/lib.rs
@@ -4,8 +4,6 @@
 #![feature(assert_matches)]
 #![feature(btree_extract_if)]
 #![feature(cow_is_borrowed)]
-#![feature(const_heap)]
-#![feature(const_try)]
 #![feature(core_intrinsics)]
 #![feature(extract_if)]
 #![feature(exact_size_is_empty)]
diff --git a/library/core/src/lib.rs b/library/core/src/lib.rs
index 1b9a9ea3ecf..ab9c33ee754 100644
--- a/library/core/src/lib.rs
+++ b/library/core/src/lib.rs
@@ -109,23 +109,7 @@
 // tidy-alphabetical-start
 #![feature(array_ptr_get)]
 #![feature(asm_experimental_arch)]
-#![feature(const_align_of_val)]
-#![feature(const_align_of_val_raw)]
-#![feature(const_alloc_layout)]
-#![feature(const_black_box)]
-#![feature(const_eq_ignore_ascii_case)]
 #![feature(const_eval_select)]
-#![feature(const_heap)]
-#![feature(const_nonnull_new)]
-#![feature(const_ptr_sub_ptr)]
-#![feature(const_raw_ptr_comparison)]
-#![feature(const_size_of_val)]
-#![feature(const_size_of_val_raw)]
-#![feature(const_sockaddr_setters)]
-#![feature(const_swap)]
-#![feature(const_try)]
-#![feature(const_type_id)]
-#![feature(const_type_name)]
 #![feature(const_typed_swap)]
 #![feature(core_intrinsics)]
 #![feature(coverage_attribute)]
@@ -165,10 +149,7 @@
 #![feature(cfg_target_has_atomic)]
 #![feature(cfg_target_has_atomic_equal_alignment)]
 #![feature(cfg_ub_checks)]
-#![feature(const_for)]
-#![feature(const_is_char_boundary)]
 #![feature(const_precise_live_drops)]
-#![feature(const_str_split_at)]
 #![feature(const_trait_impl)]
 #![feature(decl_macro)]
 #![feature(deprecated_suggestion)]
diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs
index 40129619ce5..20200cd2ba7 100644
--- a/library/core/tests/lib.rs
+++ b/library/core/tests/lib.rs
@@ -16,7 +16,6 @@
 #![feature(const_align_of_val_raw)]
 #![feature(const_black_box)]
 #![feature(const_eval_select)]
-#![feature(const_heap)]
 #![feature(const_nonnull_new)]
 #![feature(const_trait_impl)]
 #![feature(core_intrinsics)]
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs
index 42f99c3b971..ec1d58f181e 100644
--- a/library/std/src/lib.rs
+++ b/library/std/src/lib.rs
@@ -410,9 +410,7 @@
 //
 // Only for const-ness:
 // tidy-alphabetical-start
-#![feature(const_collections_with_hasher)]
 #![feature(io_const_error)]
-#![feature(thread_local_internals)]
 // tidy-alphabetical-end
 //
 #![default_lib_allocator]