Skip to content

Commit

Permalink
Rollup merge of rust-lang#98205 - JohnTitor:remove-unnecessary-let, r…
Browse files Browse the repository at this point in the history
…=jyn514

Remove a possible unnecessary assignment

The reference issue has been closed (the feature has been stabilized)
and things work fine without it, it seems.

Signed-off-by: Yuki Okushi <[email protected]>
  • Loading branch information
JohnTitor authored Jun 18, 2022
2 parents 4557ff7 + 71d7f41 commit f514aa4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler/rustc_passes/src/reachable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,6 @@ fn check_item<'tcx>(
item.kind
{
if !access_levels.is_reachable(item.def_id) {
// FIXME(#53488) remove `let`
let tcx = tcx;
worklist.extend(items.iter().map(|ii_ref| ii_ref.id.def_id));

let Res::Def(DefKind::Trait, trait_def_id) = trait_ref.path.res else {
Expand Down

0 comments on commit f514aa4

Please sign in to comment.