From 71d7f414a6028950d50086d906ae10891d47b29e Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sat, 18 Jun 2022 01:51:38 +0900 Subject: [PATCH] Remove a possible unnecessary assignment The reference issue has been closed (the feature has been stabilized) and things work fine without fine, it seems. Signed-off-by: Yuki Okushi --- compiler/rustc_passes/src/reachable.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/rustc_passes/src/reachable.rs b/compiler/rustc_passes/src/reachable.rs index 6e622ff031e00..c830ab11e8e6e 100644 --- a/compiler/rustc_passes/src/reachable.rs +++ b/compiler/rustc_passes/src/reachable.rs @@ -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 {