@@ -438,10 +438,10 @@ impl<'blk, 'tcx> CleanupMethods<'blk, 'tcx> for FunctionContext<'blk, 'tcx> {
438
438
/// `ty`. The scheduled code handles extracting the discriminant
439
439
/// and dropping the contents associated with that variant
440
440
/// *without* executing any associated drop implementation.
441
- fn schedule_drop_enum_contents ( & self ,
442
- cleanup_scope : ScopeId ,
443
- val : ValueRef ,
444
- ty : Ty < ' tcx > ) {
441
+ fn schedule_drop_adt_contents ( & self ,
442
+ cleanup_scope : ScopeId ,
443
+ val : ValueRef ,
444
+ ty : Ty < ' tcx > ) {
445
445
// `if` below could be "!contents_needs_drop"; skipping drop
446
446
// is just an optimization, so sound to be conservative.
447
447
if !self . type_needs_drop ( ty) { return ; }
@@ -455,7 +455,7 @@ impl<'blk, 'tcx> CleanupMethods<'blk, 'tcx> for FunctionContext<'blk, 'tcx> {
455
455
skip_dtor : true ,
456
456
} ;
457
457
458
- debug ! ( "schedule_drop_enum_contents ({:?}, val={}, ty={}) fill_on_drop={} skip_dtor={}" ,
458
+ debug ! ( "schedule_drop_adt_contents ({:?}, val={}, ty={}) fill_on_drop={} skip_dtor={}" ,
459
459
cleanup_scope,
460
460
self . ccx. tn( ) . val_to_string( val) ,
461
461
ty. repr( self . ccx. tcx( ) ) ,
@@ -1240,10 +1240,10 @@ pub trait CleanupMethods<'blk, 'tcx> {
1240
1240
cleanup_scope : ScopeId ,
1241
1241
val : ValueRef ,
1242
1242
ty : Ty < ' tcx > ) ;
1243
- fn schedule_drop_enum_contents ( & self ,
1244
- cleanup_scope : ScopeId ,
1245
- val : ValueRef ,
1246
- ty : Ty < ' tcx > ) ;
1243
+ fn schedule_drop_adt_contents ( & self ,
1244
+ cleanup_scope : ScopeId ,
1245
+ val : ValueRef ,
1246
+ ty : Ty < ' tcx > ) ;
1247
1247
fn schedule_drop_immediate ( & self ,
1248
1248
cleanup_scope : ScopeId ,
1249
1249
val : ValueRef ,
0 commit comments