Skip to content

Commit ee895a2

Browse files
committed
Stabilize assert_matches
1 parent 5944b12 commit ee895a2

File tree

56 files changed

+34
-70
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+34
-70
lines changed

compiler/rustc_abi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// tidy-alphabetical-start
2+
#![cfg_attr(all(feature = "nightly", bootstrap), feature(assert_matches))]
23
#![cfg_attr(feature = "nightly", allow(internal_features))]
3-
#![cfg_attr(feature = "nightly", feature(assert_matches))]
44
#![cfg_attr(feature = "nightly", feature(rustc_attrs))]
55
#![cfg_attr(feature = "nightly", feature(step_trait))]
66
// tidy-alphabetical-end

compiler/rustc_borrowck/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
// tidy-alphabetical-start
44
#![allow(internal_features)]
5-
#![feature(assert_matches)]
5+
#![cfg_attr(bootstrap, feature(assert_matches))]
66
#![feature(box_patterns)]
77
#![feature(file_buffered)]
88
#![feature(if_let_guard)]

compiler/rustc_builtin_macros/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
// tidy-alphabetical-start
55
#![allow(internal_features)]
6-
#![feature(assert_matches)]
6+
#![cfg_attr(bootstrap, feature(assert_matches))]
77
#![feature(box_patterns)]
88
#![feature(decl_macro)]
99
#![feature(if_let_guard)]

compiler/rustc_codegen_llvm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! This API is completely unstable and subject to change.
66
77
// tidy-alphabetical-start
8-
#![feature(assert_matches)]
8+
#![cfg_attr(bootstrap, feature(assert_matches))]
99
#![feature(extern_types)]
1010
#![feature(file_buffered)]
1111
#![feature(if_let_guard)]

compiler/rustc_codegen_ssa/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// tidy-alphabetical-start
2-
#![feature(assert_matches)]
2+
#![cfg_attr(bootstrap, feature(assert_matches))]
33
#![feature(box_patterns)]
44
#![feature(file_buffered)]
55
#![feature(if_let_guard)]

compiler/rustc_const_eval/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// tidy-alphabetical-start
2+
#![cfg_attr(bootstrap, feature(assert_matches))]
23
#![feature(array_try_map)]
3-
#![feature(assert_matches)]
44
#![feature(box_patterns)]
55
#![feature(decl_macro)]
66
#![feature(if_let_guard)]

compiler/rustc_data_structures/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
#![allow(internal_features)]
1111
#![allow(rustc::default_hash_types)]
1212
#![allow(rustc::potential_query_instability)]
13+
#![cfg_attr(bootstrap, feature(assert_matches))]
1314
#![deny(unsafe_op_in_unsafe_fn)]
1415
#![feature(allocator_api)]
1516
#![feature(ascii_char)]
1617
#![feature(ascii_char_variants)]
17-
#![feature(assert_matches)]
1818
#![feature(auto_traits)]
1919
#![feature(cfg_select)]
2020
#![feature(const_default)]

compiler/rustc_errors/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// tidy-alphabetical-start
66
#![allow(internal_features)]
77
#![allow(rustc::direct_use_of_rustc_type_ir)]
8-
#![feature(assert_matches)]
8+
#![cfg_attr(bootstrap, feature(assert_matches))]
99
#![feature(associated_type_defaults)]
1010
#![feature(box_patterns)]
1111
#![feature(default_field_values)]

compiler/rustc_hir_analysis/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This API is completely unstable and subject to change.
5656
*/
5757

5858
// tidy-alphabetical-start
59-
#![feature(assert_matches)]
59+
#![cfg_attr(bootstrap, feature(assert_matches))]
6060
#![feature(gen_blocks)]
6161
#![feature(if_let_guard)]
6262
#![feature(iter_intersperse)]

compiler/rustc_hir_typeck/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// tidy-alphabetical-start
2-
#![feature(assert_matches)]
2+
#![cfg_attr(bootstrap, feature(assert_matches))]
33
#![feature(box_patterns)]
44
#![feature(if_let_guard)]
55
#![feature(iter_intersperse)]

0 commit comments

Comments
 (0)