]> git.lizzy.rs Git - rust.git/commitdiff
Allow some temporarily dead code.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 22 Jul 2021 02:57:10 +0000 (22:57 -0400)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 22 Jul 2021 02:57:10 +0000 (22:57 -0400)
I expect these two methods to come back very soon; noise of removing them to satisfy lint seems wrong.

compiler/rustc_passes/src/dead.rs

index f5b1e95aa1a33e9aaa697d349c9ea0d2902e7444..b71ec700f81c80b77c38f38e7b9037d3838e8a6b 100644 (file)
@@ -134,6 +134,7 @@ fn handle_field_access(&mut self, lhs: &hir::Expr<'_>, hir_id: hir::HirId) {
         }
     }
 
+    #[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 @@ fn handle_assign(&mut self, expr: &'tcx hir::Expr<'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>,