File tree 23 files changed +1
-25
lines changed
rustc_data_structures/src
rustc_trait_selection/src
23 files changed +1
-25
lines changed Original file line number Diff line number Diff line change 1
- #![ feature( bool_to_option) ]
2
1
#![ feature( crate_visibility_modifier) ]
3
2
#![ feature( box_patterns) ]
4
3
#![ recursion_limit = "256" ]
Original file line number Diff line number Diff line change 1
1
//! This query borrow-checks the MIR to (further) ensure it is not broken.
2
2
3
3
#![ allow( rustc:: potential_query_instability) ]
4
- #![ feature( bool_to_option) ]
5
4
#![ feature( box_patterns) ]
6
5
#![ feature( crate_visibility_modifier) ]
7
6
#![ feature( let_chains) ]
Original file line number Diff line number Diff line change 4
4
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
5
5
#![ feature( array_windows) ]
6
6
#![ feature( box_patterns) ]
7
- #![ feature( bool_to_option) ]
8
7
#![ feature( crate_visibility_modifier) ]
9
8
#![ feature( decl_macro) ]
10
9
#![ feature( is_sorted) ]
Original file line number Diff line number Diff line change 5
5
//! This API is completely unstable and subject to change.
6
6
7
7
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
8
- #![ feature( bool_to_option) ]
9
8
#![ feature( crate_visibility_modifier) ]
10
9
#![ feature( let_chains) ]
11
10
#![ feature( let_else) ]
Original file line number Diff line number Diff line change 1
1
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
2
- #![ feature( bool_to_option) ]
3
2
#![ feature( box_patterns) ]
4
3
#![ feature( try_blocks) ]
5
4
#![ feature( let_else) ]
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ Rust MIR: a lowered representation of Rust.
5
5
*/
6
6
7
7
#![ feature( assert_matches) ]
8
- #![ feature( bool_to_option) ]
9
8
#![ feature( box_patterns) ]
10
9
#![ feature( control_flow_enum) ]
11
10
#![ feature( crate_visibility_modifier) ]
Original file line number Diff line number Diff line change 10
10
#![ feature( array_windows) ]
11
11
#![ feature( associated_type_bounds) ]
12
12
#![ feature( auto_traits) ]
13
- #![ feature( bool_to_option) ]
14
13
#![ feature( control_flow_enum) ]
15
14
#![ feature( core_intrinsics) ]
16
15
#![ feature( extend_one) ]
Original file line number Diff line number Diff line change 14
14
15
15
#![ allow( rustc:: potential_query_instability) ]
16
16
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
17
- #![ feature( bool_to_option) ]
18
17
#![ feature( box_patterns) ]
19
18
#![ feature( control_flow_enum) ]
20
19
#![ cfg_attr( bootstrap, feature( derive_default_enum) ) ]
Original file line number Diff line number Diff line change 1
- #![ feature( bool_to_option) ]
2
1
#![ feature( box_patterns) ]
3
2
#![ feature( let_else) ]
4
3
#![ feature( internal_output_capture) ]
Original file line number Diff line number Diff line change 28
28
#![ allow( rustc:: potential_query_instability) ]
29
29
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
30
30
#![ feature( array_windows) ]
31
- #![ feature( bool_to_option) ]
32
31
#![ feature( box_patterns) ]
33
32
#![ feature( control_flow_enum) ]
34
33
#![ feature( crate_visibility_modifier) ]
Original file line number Diff line number Diff line change 27
27
#![ feature( array_windows) ]
28
28
#![ feature( assert_matches) ]
29
29
#![ feature( backtrace) ]
30
- #![ feature( bool_to_option) ]
31
30
#![ feature( box_patterns) ]
32
31
#![ feature( core_intrinsics) ]
33
32
#![ cfg_attr( bootstrap, feature( derive_default_enum) ) ]
Original file line number Diff line number Diff line change 2
2
//!
3
3
//! This crate also contains the match exhaustiveness and usefulness checking.
4
4
#![ allow( rustc:: potential_query_instability) ]
5
- #![ feature( bool_to_option) ]
6
5
#![ feature( box_patterns) ]
7
6
#![ feature( control_flow_enum) ]
8
7
#![ feature( crate_visibility_modifier) ]
Original file line number Diff line number Diff line change 1
1
#![ feature( associated_type_defaults) ]
2
- #![ feature( bool_to_option) ]
3
2
#![ feature( box_patterns) ]
4
3
#![ feature( box_syntax) ]
5
4
#![ feature( exact_size_is_empty) ]
Original file line number Diff line number Diff line change 1
1
#![ feature( array_windows) ]
2
- #![ feature( bool_to_option) ]
3
2
#![ feature( crate_visibility_modifier) ]
4
3
#![ feature( control_flow_enum) ]
5
4
#![ feature( let_else) ]
Original file line number Diff line number Diff line change 1
1
#![ feature( assert_matches) ]
2
- #![ feature( bool_to_option) ]
3
2
#![ feature( core_intrinsics) ]
4
3
#![ feature( hash_raw_entry) ]
5
4
#![ feature( let_else) ]
Original file line number Diff line number Diff line change 9
9
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
10
10
#![ feature( box_patterns) ]
11
11
#![ feature( drain_filter) ]
12
- #![ feature( bool_to_option) ]
13
12
#![ feature( crate_visibility_modifier) ]
14
13
#![ feature( if_let_guard) ]
15
14
#![ feature( let_chains) ]
Original file line number Diff line number Diff line change 15
15
16
16
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
17
17
#![ feature( array_windows) ]
18
- #![ feature( bool_to_option) ]
19
18
#![ feature( crate_visibility_modifier) ]
20
19
#![ feature( let_else) ]
21
20
#![ feature( if_let_guard) ]
Original file line number Diff line number Diff line change 9
9
10
10
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
11
11
#![ feature( associated_type_bounds) ]
12
- #![ feature( bool_to_option) ]
13
12
#![ feature( exhaustive_patterns) ]
14
13
#![ feature( let_else) ]
15
14
#![ feature( min_specialization) ]
Original file line number Diff line number Diff line change 12
12
13
13
#![ allow( rustc:: potential_query_instability) ]
14
14
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
15
- #![ feature( bool_to_option) ]
16
15
#![ feature( box_patterns) ]
17
16
#![ feature( control_flow_enum) ]
18
17
#![ feature( crate_visibility_modifier) ]
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ This API is completely unstable and subject to change.
57
57
58
58
#![ allow( rustc:: potential_query_instability) ]
59
59
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
60
- #![ feature( bool_to_option) ]
61
60
#![ feature( box_patterns) ]
62
61
#![ feature( control_flow_enum) ]
63
62
#![ feature( crate_visibility_modifier) ]
Original file line number Diff line number Diff line change @@ -9,12 +9,10 @@ impl bool {
9
9
/// # Examples
10
10
///
11
11
/// ```
12
- /// #![feature(bool_to_option)]
13
- ///
14
12
/// assert_eq!(false.then_some(0), None);
15
13
/// assert_eq!(true.then_some(0), Some(0));
16
14
/// ```
17
- #[ unstable ( feature = "bool_to_option" , issue = "80967 " ) ]
15
+ #[ stable ( feature = "bool_to_option" , since = "1.62.0 " ) ]
18
16
#[ rustc_const_unstable( feature = "const_bool_to_option" , issue = "91917" ) ]
19
17
#[ inline]
20
18
pub const fn then_some < T > ( self , t : T ) -> Option < T >
Original file line number Diff line number Diff line change 3
3
#![ feature( array_methods) ]
4
4
#![ feature( array_windows) ]
5
5
#![ feature( bench_black_box) ]
6
- #![ feature( bool_to_option) ]
7
6
#![ feature( box_syntax) ]
8
7
#![ feature( cell_update) ]
9
8
#![ feature( const_assume) ]
Original file line number Diff line number Diff line change 5
5
#![ feature( rustc_private) ]
6
6
#![ feature( array_methods) ]
7
7
#![ feature( assert_matches) ]
8
- #![ feature( bool_to_option) ]
9
8
#![ feature( box_patterns) ]
10
9
#![ feature( control_flow_enum) ]
11
10
#![ feature( box_syntax) ]
You can’t perform that action at this time.
0 commit comments