Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
chinedufn committed Oct 2, 2023
1 parent 67379c4 commit 9bb55a0
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions compiler/rustc_passes/src/dead.rs
Original file line number Diff line number Diff line change
Expand Up @@ -914,12 +914,7 @@ fn check_mod_deathness(tcx: TyCtxt<'_>, module: LocalDefId) {
dead_items.push(DeadItem { def_id, name, level })
}
}
visitor.warn_multiple(
item.owner_id.def_id,
"used",
dead_items,
false,
);
visitor.warn_multiple(item.owner_id.def_id, "used", dead_items, false);
}

if !live_symbols.contains(&item.owner_id.def_id) {
Expand Down Expand Up @@ -974,12 +969,7 @@ fn check_mod_deathness(tcx: TyCtxt<'_>, module: LocalDefId) {
}
})
.collect();
visitor.warn_multiple(
def_id,
"read",
dead_fields,
is_positional,
)
visitor.warn_multiple(def_id, "read", dead_fields, is_positional);
}

visitor.warn_multiple(
Expand Down

0 comments on commit 9bb55a0

Please sign in to comment.