File tree 3 files changed +1
-5
lines changed
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() {
763
763
///
764
764
/// Distribute values evenly between two buckets:
765
765
/// ```
766
- /// #![feature(select_unpredictable)]
767
- ///
768
766
/// use std::hash::BuildHasher;
769
767
/// use std::hint;
770
768
///
@@ -780,7 +778,7 @@ pub const fn cold_path() {
780
778
/// # assert_eq!(bucket_one.len() + bucket_two.len(), 1);
781
779
/// ```
782
780
#[ inline( always) ]
783
- #[ unstable ( feature = "select_unpredictable" , issue = "133962 " ) ]
781
+ #[ stable ( feature = "select_unpredictable" , since = "CURRENT_RUSTC_VERSION " ) ]
784
782
pub fn select_unpredictable < T > ( condition : bool , true_val : T , false_val : T ) -> T {
785
783
// FIXME(https://github.com/rust-lang/unsafe-code-guidelines/issues/245):
786
784
// Change this to use ManuallyDrop instead.
Original file line number Diff line number Diff line change 68
68
#![ feature( pointer_is_aligned_to) ]
69
69
#![ feature( portable_simd) ]
70
70
#![ feature( ptr_metadata) ]
71
- #![ feature( select_unpredictable) ]
72
71
#![ feature( slice_from_ptr_range) ]
73
72
#![ feature( slice_internals) ]
74
73
#![ feature( slice_partition_dedup) ]
Original file line number Diff line number Diff line change 1
1
//@ compile-flags: -Copt-level=3 -Zmerge-functions=disabled
2
2
3
3
#![ feature( core_intrinsics) ]
4
- #![ feature( select_unpredictable) ]
5
4
#![ crate_type = "lib" ]
6
5
7
6
/* Test the intrinsic */
You can’t perform that action at this time.
0 commit comments