Skip to content

Commit 5620f6d

Browse files
committed
mir/borrowck: remove a redundant clone
1 parent f53d2b2 commit 5620f6d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustc_mir/borrow_check/error_reporting.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
7777
if move_out_indices.is_empty() {
7878
let root_place = self.prefixes(&used_place, PrefixSet::All).last().unwrap();
7979

80-
if self.uninitialized_error_reported
81-
.contains(&root_place.clone())
82-
{
80+
if self.uninitialized_error_reported.contains(root_place) {
8381
debug!(
8482
"report_use_of_moved_or_uninitialized place: error about {:?} suppressed",
8583
root_place

0 commit comments

Comments
 (0)