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 @@ -64,6 +64,7 @@ macro_rules! into_diag_arg_for_number {
64
64
impl IntoDiagArg for $ty {
65
65
fn into_diag_arg( self ) -> DiagArgValue {
66
66
// Convert to a string if it won't fit into `Number`.
67
+ #[ allow( irrefutable_let_patterns) ]
67
68
if let Ok ( n) = TryInto :: <i32 >:: try_into( self ) {
68
69
DiagArgValue :: Number ( n)
69
70
} else {
Original file line number Diff line number Diff line change 24
24
25
25
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
26
26
#![ doc( rust_logo) ]
27
- #![ feature( min_exhaustive_patterns) ]
27
+ #![ cfg_attr ( bootstrap , feature( min_exhaustive_patterns) ) ]
28
28
#![ feature( rustdoc_internals) ]
29
29
#![ feature( allocator_api) ]
30
30
#![ feature( array_windows) ]
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
#![ doc( rust_logo) ]
12
- #![ feature( min_exhaustive_patterns) ]
12
+ #![ cfg_attr ( bootstrap , feature( min_exhaustive_patterns) ) ]
13
13
#![ feature( rustdoc_internals) ]
14
14
#![ feature( assert_matches) ]
15
15
#![ feature( iter_intersperse) ]
Original file line number Diff line number Diff line change 86
86
pub ( crate ) fn from_tree ( tree : Tree < !, R > ) -> Result < Self , Uninhabited > {
87
87
Ok ( match tree {
88
88
Tree :: Byte ( b) => Self :: from_byte ( b) ,
89
+ #[ cfg( bootstrap) ]
89
90
Tree :: Def ( ..) => unreachable ! ( ) ,
90
91
Tree :: Ref ( r) => Self :: from_ref ( r) ,
91
92
Tree :: Alt ( alts) => {
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ pub trait TypeFoldable<I: Interner>: TypeVisitable<I> {
87
87
fn fold_with < F : TypeFolder < I > > ( self , folder : & mut F ) -> Self {
88
88
match self . try_fold_with ( folder) {
89
89
Ok ( t) => t,
90
+ #[ cfg( bootstrap) ]
90
91
Err ( e) => match e { } ,
91
92
}
92
93
}
@@ -111,6 +112,7 @@ pub trait TypeSuperFoldable<I: Interner>: TypeFoldable<I> {
111
112
fn super_fold_with < F : TypeFolder < I > > ( self , folder : & mut F ) -> Self {
112
113
match self . try_super_fold_with ( folder) {
113
114
Ok ( t) => t,
115
+ #[ cfg( bootstrap) ]
114
116
Err ( e) => match e { } ,
115
117
}
116
118
}
Original file line number Diff line number Diff line change 204
204
//
205
205
// Language features:
206
206
// tidy-alphabetical-start
207
+ #![ cfg_attr( bootstrap, feature( min_exhaustive_patterns) ) ]
207
208
#![ feature( abi_unadjusted) ]
208
209
#![ feature( adt_const_params) ]
209
210
#![ feature( allow_internal_unsafe) ]
239
240
#![ feature( let_chains) ]
240
241
#![ feature( link_llvm_intrinsics) ]
241
242
#![ feature( macro_metavar_expr) ]
242
- #![ feature( min_exhaustive_patterns) ]
243
243
#![ feature( min_specialization) ]
244
244
#![ feature( multiple_supertrait_upcastable) ]
245
245
#![ feature( must_not_suspend) ]
Original file line number Diff line number Diff line change 270
270
//
271
271
// Language features:
272
272
// tidy-alphabetical-start
273
+ #![ cfg_attr( bootstrap, feature( min_exhaustive_patterns) ) ]
273
274
#![ feature( alloc_error_handler) ]
274
275
#![ feature( allocator_internals) ]
275
276
#![ feature( allow_internal_unsafe) ]
294
295
#![ feature( let_chains) ]
295
296
#![ feature( link_cfg) ]
296
297
#![ feature( linkage) ]
297
- #![ feature( min_exhaustive_patterns) ]
298
298
#![ feature( min_specialization) ]
299
299
#![ feature( must_not_suspend) ]
300
300
#![ feature( needs_panic_runtime) ]
You can’t perform that action at this time.
0 commit comments