Skip to content

Commit 86067bb

Browse files
committed
Auto merge of #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 #87766. r? `@m-ou-se`
2 parents be72308 + 9b952b7 commit 86067bb

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

library/std/src/lib.rs

-23
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,17 @@
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)]
235232
#![feature(associated_type_bounds)]
236233
#![feature(async_iterator)]
237-
#![feature(atomic_mut_ptr)]
238-
#![feature(auto_traits)]
239234
#![feature(bench_black_box)]
240-
#![feature(bool_to_option)]
241235
#![feature(box_syntax)]
242236
#![feature(c_unwind)]
243237
#![feature(c_variadic)]
@@ -248,7 +242,6 @@
248242
#![feature(char_internals)]
249243
#![feature(concat_bytes)]
250244
#![feature(concat_idents)]
251-
#![feature(const_fn_floating_point_arithmetic)]
252245
#![feature(const_fn_fn_ptr_basics)]
253246
#![feature(const_fn_trait_bound)]
254247
#![feature(const_format_args)]
@@ -257,10 +250,8 @@
257250
#![feature(const_ipv4)]
258251
#![feature(const_ipv6)]
259252
#![feature(const_option)]
260-
#![feature(const_mut_refs)]
261253
#![feature(const_socketaddr)]
262254
#![feature(const_trait_impl)]
263-
#![feature(container_error_extra)]
264255
#![feature(c_size_t)]
265256
#![feature(core_ffi_c)]
266257
#![feature(core_intrinsics)]
@@ -279,24 +270,17 @@
279270
#![feature(exact_size_is_empty)]
280271
#![feature(exhaustive_patterns)]
281272
#![feature(extend_one)]
282-
#![feature(fn_traits)]
283273
#![feature(float_minimum_maximum)]
284274
#![feature(format_args_nl)]
285-
#![feature(gen_future)]
286-
#![feature(generator_trait)]
287275
#![feature(get_mut_unchecked)]
288276
#![feature(hashmap_internals)]
289277
#![feature(int_error_internals)]
290-
#![feature(integer_atomics)]
291-
#![feature(int_log)]
292-
#![feature(into_future)]
293278
#![feature(intra_doc_pointers)]
294279
#![feature(lang_items)]
295280
#![feature(linkage)]
296281
#![feature(log_syntax)]
297282
#![feature(map_try_insert)]
298283
#![feature(maybe_uninit_slice)]
299-
#![feature(maybe_uninit_uninit_array)]
300284
#![feature(maybe_uninit_write_slice)]
301285
#![feature(min_specialization)]
302286
#![feature(mixed_integer_ops)]
@@ -316,19 +300,14 @@
316300
#![feature(portable_simd)]
317301
#![feature(prelude_import)]
318302
#![feature(ptr_as_uninit)]
319-
#![feature(ptr_internals)]
320303
#![feature(raw_os_nonzero)]
321304
#![feature(rustc_attrs)]
322-
#![feature(rustc_private)]
323305
#![feature(saturating_int_impl)]
324-
#![feature(slice_concat_ext)]
325306
#![feature(slice_internals)]
326307
#![feature(slice_ptr_get)]
327-
#![feature(slice_ptr_len)]
328308
#![feature(staged_api)]
329309
#![feature(std_internals)]
330310
#![feature(stdsimd)]
331-
#![feature(stmt_expr_attributes)]
332311
#![feature(str_internals)]
333312
#![feature(test)]
334313
#![feature(thread_local)]
@@ -338,8 +317,6 @@
338317
#![feature(trace_macros)]
339318
#![feature(try_blocks)]
340319
#![feature(try_reserve_kind)]
341-
#![feature(unboxed_closures)]
342-
#![feature(unwrap_infallible)]
343320
#![feature(vec_into_raw_parts)]
344321
// NB: the above list is sorted to minimize merge conflicts.
345322
#![default_lib_allocator]

0 commit comments

Comments
 (0)