Skip to content

Commit 50f4ecd

Browse files
authored
Rollup merge of rust-lang#94546 - JmPotato:std-features-cleanup, r=m-ou-se
Clean up the std library's #![feature]s Signed-off-by: JmPotato <[email protected]> This is part of rust-lang#87766. r? ``````````````````@m-ou-se``````````````````
2 parents 0d09da8 + 42cb2ea commit 50f4ecd

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

library/std/src/lib.rs

-24
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@
212212
#![needs_panic_runtime]
213213
// std may use features in a platform-specific way
214214
#![allow(unused_features)]
215-
#![feature(rustc_allow_const_fn_unstable)]
216215
#![cfg_attr(test, feature(internal_output_capture, print_internals, update_panic_count))]
217216
#![cfg_attr(
218217
all(target_vendor = "fortanix", target_env = "sgx"),
@@ -222,22 +221,16 @@
222221
// std is implemented with unstable features, many of which are internal
223222
// compiler details that will never be stable
224223
// NB: the following list is sorted to minimize merge conflicts.
225-
#![feature(absolute_path)]
226224
#![feature(alloc_error_handler)]
227225
#![feature(alloc_layout_extra)]
228226
#![feature(allocator_api)]
229227
#![feature(allocator_internals)]
230228
#![feature(allow_internal_unsafe)]
231229
#![feature(allow_internal_unstable)]
232-
#![feature(arbitrary_self_types)]
233230
#![feature(array_error_internals)]
234231
#![feature(assert_matches)]
235-
#![feature(associated_type_bounds)]
236232
#![feature(async_iterator)]
237-
#![feature(atomic_mut_ptr)]
238-
#![feature(auto_traits)]
239233
#![feature(bench_black_box)]
240-
#![feature(bool_to_option)]
241234
#![feature(box_syntax)]
242235
#![feature(c_unwind)]
243236
#![feature(c_variadic)]
@@ -248,7 +241,6 @@
248241
#![feature(char_internals)]
249242
#![feature(concat_bytes)]
250243
#![feature(concat_idents)]
251-
#![feature(const_fn_floating_point_arithmetic)]
252244
#![feature(const_fn_fn_ptr_basics)]
253245
#![feature(const_fn_trait_bound)]
254246
#![feature(const_format_args)]
@@ -257,10 +249,8 @@
257249
#![feature(const_ipv4)]
258250
#![feature(const_ipv6)]
259251
#![feature(const_option)]
260-
#![feature(const_mut_refs)]
261252
#![feature(const_socketaddr)]
262253
#![feature(const_trait_impl)]
263-
#![feature(container_error_extra)]
264254
#![feature(c_size_t)]
265255
#![feature(core_ffi_c)]
266256
#![feature(core_intrinsics)]
@@ -279,24 +269,17 @@
279269
#![feature(exact_size_is_empty)]
280270
#![feature(exhaustive_patterns)]
281271
#![feature(extend_one)]
282-
#![feature(fn_traits)]
283272
#![feature(float_minimum_maximum)]
284273
#![feature(format_args_nl)]
285-
#![feature(gen_future)]
286-
#![feature(generator_trait)]
287274
#![feature(get_mut_unchecked)]
288275
#![feature(hashmap_internals)]
289276
#![feature(int_error_internals)]
290-
#![feature(integer_atomics)]
291-
#![feature(int_log)]
292-
#![feature(into_future)]
293277
#![feature(intra_doc_pointers)]
294278
#![feature(lang_items)]
295279
#![feature(linkage)]
296280
#![feature(log_syntax)]
297281
#![feature(map_try_insert)]
298282
#![feature(maybe_uninit_slice)]
299-
#![feature(maybe_uninit_uninit_array)]
300283
#![feature(maybe_uninit_write_slice)]
301284
#![feature(min_specialization)]
302285
#![feature(mixed_integer_ops)]
@@ -316,19 +299,14 @@
316299
#![feature(portable_simd)]
317300
#![feature(prelude_import)]
318301
#![feature(ptr_as_uninit)]
319-
#![feature(ptr_internals)]
320302
#![feature(raw_os_nonzero)]
321303
#![feature(rustc_attrs)]
322-
#![feature(rustc_private)]
323304
#![feature(saturating_int_impl)]
324-
#![feature(slice_concat_ext)]
325305
#![feature(slice_internals)]
326306
#![feature(slice_ptr_get)]
327-
#![feature(slice_ptr_len)]
328307
#![feature(staged_api)]
329308
#![feature(std_internals)]
330309
#![feature(stdsimd)]
331-
#![feature(stmt_expr_attributes)]
332310
#![feature(str_internals)]
333311
#![feature(test)]
334312
#![feature(thread_local)]
@@ -338,8 +316,6 @@
338316
#![feature(trace_macros)]
339317
#![feature(try_blocks)]
340318
#![feature(try_reserve_kind)]
341-
#![feature(unboxed_closures)]
342-
#![feature(unwrap_infallible)]
343319
#![feature(vec_into_raw_parts)]
344320
// NB: the above list is sorted to minimize merge conflicts.
345321
#![default_lib_allocator]

0 commit comments

Comments
 (0)