about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2021-07-21 22:57:10 -0400
committerFelix S. Klock II <pnkfelix@pnkfx.org>2021-07-21 22:57:10 -0400
commitb6e9d069eb950226c8c75d2b516d8575eb6cf54e (patch)
treeb0b314576d254a8a3461936716e4583b0c2df11c
parentcf337d11191e50e472754a5cd4c1cd1fb6a648ca (diff)
downloadrust-b6e9d069eb950226c8c75d2b516d8575eb6cf54e.tar.gz
rust-b6e9d069eb950226c8c75d2b516d8575eb6cf54e.zip
Allow some temporarily dead code.
I expect these two methods to come back very soon; noise of removing them to satisfy lint seems wrong.
-rw-r--r--compiler/rustc_passes/src/dead.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_passes/src/dead.rs b/compiler/rustc_passes/src/dead.rs
index f5b1e95aa1a..b71ec700f81 100644
--- a/compiler/rustc_passes/src/dead.rs
+++ b/compiler/rustc_passes/src/dead.rs
@@ -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()
@@ -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>,