File tree Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -763,8 +763,6 @@ pub const fn cold_path() {
763763///
764764/// Distribute values evenly between two buckets:
765765/// ```
766- /// #![feature(select_unpredictable)]
767- ///
768766/// use std::hash::BuildHasher;
769767/// use std::hint;
770768///
@@ -780,7 +778,7 @@ pub const fn cold_path() {
780778/// # assert_eq!(bucket_one.len() + bucket_two.len(), 1);
781779/// ```
782780#[ inline( always) ]
783- #[ unstable ( feature = "select_unpredictable" , issue = "133962 " ) ]
781+ #[ stable ( feature = "select_unpredictable" , since = "CURRENT_RUSTC_VERSION " ) ]
784782pub fn select_unpredictable < T > ( condition : bool , true_val : T , false_val : T ) -> T {
785783 // FIXME(https://github.com/rust-lang/unsafe-code-guidelines/issues/245):
786784 // Change this to use ManuallyDrop instead.
Original file line number Diff line number Diff line change 6868#![ feature( pointer_is_aligned_to) ]
6969#![ feature( portable_simd) ]
7070#![ feature( ptr_metadata) ]
71- #![ feature( select_unpredictable) ]
7271#![ feature( slice_from_ptr_range) ]
7372#![ feature( slice_internals) ]
7473#![ feature( slice_partition_dedup) ]
Original file line number Diff line number Diff line change 11//@ compile-flags: -Copt-level=3 -Zmerge-functions=disabled
22
33#![ feature( core_intrinsics) ]
4- #![ feature( select_unpredictable) ]
54#![ crate_type = "lib" ]
65
76/* Test the intrinsic */
You can’t perform that action at this time.
0 commit comments