Skip to content

Commit 947c1dc

Browse files
committed
Use Place directly on place_contents_drop_state_cannot_differ, it's Copy
1 parent 5987b0f commit 947c1dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_mir/dataflow/drop_flag_effects.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ where
4949
fn place_contents_drop_state_cannot_differ<'tcx>(
5050
tcx: TyCtxt<'tcx>,
5151
body: &Body<'tcx>,
52-
place: &mir::Place<'tcx>,
52+
place: mir::Place<'tcx>,
5353
) -> bool {
5454
let ty = place.ty(body, tcx).ty;
5555
match ty.kind {
@@ -110,7 +110,7 @@ pub(crate) fn on_all_children_bits<'tcx, F>(
110110
move_data: &MoveData<'tcx>,
111111
path: MovePathIndex,
112112
) -> bool {
113-
place_contents_drop_state_cannot_differ(tcx, body, &move_data.move_paths[path].place)
113+
place_contents_drop_state_cannot_differ(tcx, body, move_data.move_paths[path].place)
114114
}
115115

116116
fn on_all_children_bits<'tcx, F>(

0 commit comments

Comments
 (0)