Skip to content

Commit

Permalink
Allow some temporarily dead code.
Browse files Browse the repository at this point in the history
I expect these two methods to come back very soon; noise of removing them to satisfy lint seems wrong.
  • Loading branch information
pnkfelix committed Jul 22, 2021
1 parent cf337d1 commit b6e9d06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_passes/src/dead.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
}
}

#[allow(dead_code)] // FIXME(81658): should be used + lint reinstated after #83171 relands.
fn handle_assign(&mut self, expr: &'tcx hir::Expr<'tcx>) {
if self
.typeck_results()
Expand All @@ -150,6 +151,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
}
}

#[allow(dead_code)] // FIXME(81658): should be used + lint reinstated after #83171 relands.
fn check_for_self_assign(&mut self, assign: &'tcx hir::Expr<'tcx>) {
fn check_for_self_assign_helper(
tcx: TyCtxt<'tcx>,
Expand Down

0 comments on commit b6e9d06

Please sign in to comment.