@@ -28,7 +28,7 @@ use crate::builder::ForGuard::{self, OutsideGuard, RefWithinGuard};
2828use crate :: builder:: expr:: as_place:: PlaceBuilder ;
2929use crate :: builder:: matches:: buckets:: PartitionedCandidates ;
3030use crate :: builder:: matches:: user_ty:: ProjectedUserTypesNode ;
31- use crate :: builder:: scope:: { DropKind , LintLevel } ;
31+ use crate :: builder:: scope:: LintLevel ;
3232use crate :: builder:: {
3333 BlockAnd , BlockAndExtension , Builder , GuardFrame , GuardFrameLocal , LocalsForNode ,
3434} ;
@@ -791,7 +791,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
791791 if let Some ( region_scope) = self . region_scope_tree . var_scope ( var. 0 . local_id )
792792 && matches ! ( schedule_drop, ScheduleDrops :: Yes )
793793 {
794- self . schedule_drop ( span, region_scope, local_id, DropKind :: Storage ) ;
794+ self . schedule_drop_storage ( span, region_scope, local_id) ;
795795 }
796796 let local_info = self . local_decls [ local_id] . local_info . as_mut ( ) . unwrap_crate_local ( ) ;
797797 if let LocalInfo :: User ( BindingForm :: Var ( var_info) ) = & mut * * local_info {
@@ -808,7 +808,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
808808 ) {
809809 let local_id = self . var_local_id ( var, for_guard) ;
810810 if let Some ( region_scope) = self . region_scope_tree . var_scope ( var. 0 . local_id ) {
811- self . schedule_drop ( span, region_scope, local_id, DropKind :: Value ) ;
811+ self . schedule_drop_value ( span, region_scope, local_id) ;
812812 }
813813 }
814814
0 commit comments