diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2021-03-15 16:39:41 -0400 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2021-07-21 22:49:52 -0400 |
| commit | cf337d11191e50e472754a5cd4c1cd1fb6a648ca (patch) | |
| tree | 656bbaecd13cdf812481966e96600918e7591f3a /compiler/rustc_passes/src | |
| parent | 602150f21fd8a9bd3e903039c0d8c008d85aa7f1 (diff) | |
| download | rust-cf337d11191e50e472754a5cd4c1cd1fb6a648ca.tar.gz rust-cf337d11191e50e472754a5cd4c1cd1fb6a648ca.zip | |
Revert PR 81473 to resolve (on mainline) issues 81626 and 81658.
Revert "Add missing brace" This reverts commit 85ad773049536d7fed9a94ae0ac74f97135c8655. Revert "Simplify base_expr" This reverts commit 899aae465eb4ef295dc1eeb2603f744568e0768c. Revert "Warn write-only fields" This reverts commit d3c69a4c0dd98af2611b7553d1a65afef6a6ccb0.
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/dead.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_passes/src/dead.rs b/compiler/rustc_passes/src/dead.rs index 713d572b93a..f5b1e95aa1a 100644 --- a/compiler/rustc_passes/src/dead.rs +++ b/compiler/rustc_passes/src/dead.rs @@ -338,12 +338,6 @@ impl<'tcx> Visitor<'tcx> for MarkSymbolVisitor<'tcx> { hir::ExprKind::MethodCall(..) => { self.lookup_and_handle_method(expr.hir_id); } - hir::ExprKind::Assign(ref left, ref right, ..) => { - self.handle_assign(left); - self.check_for_self_assign(expr); - self.visit_expr(right); - return; - } hir::ExprKind::Field(ref lhs, ..) => { self.handle_field_access(&lhs, expr.hir_id); } |
