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 <jtitor@2k36.org>
This commit is contained in:
Yuki Okushi 2022-06-18 01:51:38 +09:00
parent 949a64ab20
commit 71d7f414a6
No known key found for this signature in database
GPG Key ID: 379CEEFDD63E5DD7

View File

@ -316,8 +316,6 @@ fn check_item<'tcx>(
item.kind item.kind
{ {
if !access_levels.is_reachable(item.def_id) { 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)); 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 { let Res::Def(DefKind::Trait, trait_def_id) = trait_ref.path.res else {