File tree 7 files changed +8
-4
lines changed
rustc_transmute/src/layout
7 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ macro_rules! into_diag_arg_for_number {
66
66
impl IntoDiagArg for $ty {
67
67
fn into_diag_arg( self ) -> DiagArgValue {
68
68
// Convert to a string if it won't fit into `Number`.
69
+ #[ allow( irrefutable_let_patterns) ]
69
70
if let Ok ( n) = TryInto :: <i32 >:: try_into( self ) {
70
71
DiagArgValue :: Number ( n)
71
72
} else {
Original file line number Diff line number Diff line change 28
28
#![ allow( rustc:: diagnostic_outside_of_impl) ]
29
29
#![ allow( rustc:: potential_query_instability) ]
30
30
#![ allow( rustc:: untranslatable_diagnostic) ]
31
+ #![ cfg_attr( bootstrap, feature( min_exhaustive_patterns) ) ]
31
32
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
32
33
#![ doc( rust_logo) ]
33
34
#![ feature( allocator_api) ]
48
49
#![ feature( iter_from_coroutine) ]
49
50
#![ feature( let_chains) ]
50
51
#![ feature( macro_metavar_expr) ]
51
- #![ feature( min_exhaustive_patterns) ]
52
52
#![ feature( min_specialization) ]
53
53
#![ feature( negative_impls) ]
54
54
#![ feature( never_type) ]
Original file line number Diff line number Diff line change 9
9
10
10
// tidy-alphabetical-start
11
11
#![ allow( internal_features) ]
12
+ #![ cfg_attr( bootstrap, feature( min_exhaustive_patterns) ) ]
12
13
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
13
14
#![ doc( rust_logo) ]
14
15
#![ feature( assert_matches) ]
15
16
#![ feature( iter_intersperse) ]
16
17
#![ feature( let_chains) ]
17
- #![ feature( min_exhaustive_patterns) ]
18
18
#![ feature( rustc_attrs) ]
19
19
#![ feature( rustdoc_internals) ]
20
20
// tidy-alphabetical-end
Original file line number Diff line number Diff line change 87
87
pub ( crate ) fn from_tree ( tree : Tree < !, R > ) -> Result < Self , Uninhabited > {
88
88
Ok ( match tree {
89
89
Tree :: Byte ( b) => Self :: from_byte ( b) ,
90
+ #[ cfg( bootstrap) ]
90
91
Tree :: Def ( ..) => unreachable ! ( ) ,
91
92
Tree :: Ref ( r) => Self :: from_ref ( r) ,
92
93
Tree :: Alt ( alts) => {
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ pub trait TypeFoldable<I: Interner>: TypeVisitable<I> {
91
91
fn fold_with < F : TypeFolder < I > > ( self , folder : & mut F ) -> Self {
92
92
match self . try_fold_with ( folder) {
93
93
Ok ( t) => t,
94
+ #[ cfg( bootstrap) ]
94
95
Err ( e) => match e { } ,
95
96
}
96
97
}
@@ -115,6 +116,7 @@ pub trait TypeSuperFoldable<I: Interner>: TypeFoldable<I> {
115
116
fn super_fold_with < F : TypeFolder < I > > ( self , folder : & mut F ) -> Self {
116
117
match self . try_super_fold_with ( folder) {
117
118
Ok ( t) => t,
119
+ #[ cfg( bootstrap) ]
118
120
Err ( e) => match e { } ,
119
121
}
120
122
}
Original file line number Diff line number Diff line change 192
192
//
193
193
// Language features:
194
194
// tidy-alphabetical-start
195
+ #![ cfg_attr( bootstrap, feature( min_exhaustive_patterns) ) ]
195
196
#![ feature( abi_unadjusted) ]
196
197
#![ feature( adt_const_params) ]
197
198
#![ feature( allow_internal_unsafe) ]
225
226
#![ feature( link_llvm_intrinsics) ]
226
227
#![ feature( macro_metavar_expr) ]
227
228
#![ feature( marker_trait_attr) ]
228
- #![ feature( min_exhaustive_patterns) ]
229
229
#![ feature( min_specialization) ]
230
230
#![ feature( multiple_supertrait_upcastable) ]
231
231
#![ feature( must_not_suspend) ]
Original file line number Diff line number Diff line change 272
272
//
273
273
// Language features:
274
274
// tidy-alphabetical-start
275
+ #![ cfg_attr( bootstrap, feature( min_exhaustive_patterns) ) ]
275
276
#![ feature( alloc_error_handler) ]
276
277
#![ feature( allocator_internals) ]
277
278
#![ feature( allow_internal_unsafe) ]
299
300
#![ feature( link_cfg) ]
300
301
#![ feature( linkage) ]
301
302
#![ feature( macro_metavar_expr_concat) ]
302
- #![ feature( min_exhaustive_patterns) ]
303
303
#![ feature( min_specialization) ]
304
304
#![ feature( must_not_suspend) ]
305
305
#![ feature( needs_panic_runtime) ]
You can’t perform that action at this time.
0 commit comments