@@ -215,7 +215,7 @@ pub enum LayoutError<'tcx> {
215
215
SizeOverflow ( Ty < ' tcx > ) ,
216
216
NormalizationFailure ( Ty < ' tcx > , NormalizationError < ' tcx > ) ,
217
217
ReferencesError ( ErrorGuaranteed ) ,
218
- Cycle ,
218
+ Cycle ( ErrorGuaranteed ) ,
219
219
}
220
220
221
221
impl < ' tcx > LayoutError < ' tcx > {
@@ -226,7 +226,7 @@ impl<'tcx> LayoutError<'tcx> {
226
226
Unknown ( _) => middle_unknown_layout,
227
227
SizeOverflow ( _) => middle_values_too_big,
228
228
NormalizationFailure ( _, _) => middle_cannot_be_normalized,
229
- Cycle => middle_cycle,
229
+ Cycle ( _ ) => middle_cycle,
230
230
ReferencesError ( _) => middle_layout_references_error,
231
231
}
232
232
}
@@ -240,7 +240,7 @@ impl<'tcx> LayoutError<'tcx> {
240
240
NormalizationFailure ( ty, e) => {
241
241
E :: NormalizationFailure { ty, failure_ty : e. get_type_for_failure ( ) }
242
242
}
243
- Cycle => E :: Cycle ,
243
+ Cycle ( _ ) => E :: Cycle ,
244
244
ReferencesError ( _) => E :: ReferencesError ,
245
245
}
246
246
}
@@ -261,7 +261,7 @@ impl<'tcx> fmt::Display for LayoutError<'tcx> {
261
261
t,
262
262
e. get_type_for_failure( )
263
263
) ,
264
- LayoutError :: Cycle => write ! ( f, "a cycle occurred during layout computation" ) ,
264
+ LayoutError :: Cycle ( _ ) => write ! ( f, "a cycle occurred during layout computation" ) ,
265
265
LayoutError :: ReferencesError ( _) => write ! ( f, "the type has an unknown layout" ) ,
266
266
}
267
267
}
@@ -333,7 +333,7 @@ impl<'tcx> SizeSkeleton<'tcx> {
333
333
Err ( err @ LayoutError :: Unknown ( _) ) => err,
334
334
// We can't extract SizeSkeleton info from other layout errors
335
335
Err (
336
- e @ LayoutError :: Cycle
336
+ e @ LayoutError :: Cycle ( _ )
337
337
| e @ LayoutError :: SizeOverflow ( _)
338
338
| e @ LayoutError :: NormalizationFailure ( ..)
339
339
| e @ LayoutError :: ReferencesError ( _) ,
0 commit comments