File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1123,16 +1123,16 @@ fn build_scope_drops<'tcx>(
1123
1123
let source_info = scope. source_info ( drop_data. span ) ;
1124
1124
let local = drop_data. local ;
1125
1125
1126
- // If the operand has been moved, and we are not on an unwind
1127
- // path, then don't generate the drop. (We only take this into
1128
- // account for non-unwind paths so as not to disturb the
1129
- // caching mechanism.)
1130
- if !is_cached_path && scope. moved_locals . iter ( ) . any ( |& o| o == local) {
1131
- continue ;
1132
- }
1133
-
1134
1126
match drop_data. kind {
1135
1127
DropKind :: Value => {
1128
+ // If the operand has been moved, and we are not on an unwind
1129
+ // path, then don't generate the drop. (We only take this into
1130
+ // account for non-unwind paths so as not to disturb the
1131
+ // caching mechanism.)
1132
+ if !is_cached_path && scope. moved_locals . iter ( ) . any ( |& o| o == local) {
1133
+ continue ;
1134
+ }
1135
+
1136
1136
let unwind_to = get_unwind_to ( scope, is_generator, drop_idx, generator_drop)
1137
1137
. unwrap_or ( last_unwind_to) ;
1138
1138
You can’t perform that action at this time.
0 commit comments