We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f53d2b2 commit 5620f6dCopy full SHA for 5620f6d
1 file changed
src/librustc_mir/borrow_check/error_reporting.rs
@@ -77,9 +77,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
77
if move_out_indices.is_empty() {
78
let root_place = self.prefixes(&used_place, PrefixSet::All).last().unwrap();
79
80
- if self.uninitialized_error_reported
81
- .contains(&root_place.clone())
82
- {
+ if self.uninitialized_error_reported.contains(root_place) {
83
debug!(
84
"report_use_of_moved_or_uninitialized place: error about {:?} suppressed",
85
root_place
0 commit comments