diff options
| author | Eric Holk <ericholk@microsoft.com> | 2022-01-18 14:42:39 -0800 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2022-01-18 14:42:39 -0800 |
| commit | 76f6b57125bd9394ad3ce8c241d2eebc4f99042b (patch) | |
| tree | cea2d1dadb99df0525281bb91df355b62ff50199 | |
| parent | d840d0c62e3853f9f3569315ffff666c4452718a (diff) | |
| download | rust-76f6b57125bd9394ad3ce8c241d2eebc4f99042b.tar.gz rust-76f6b57125bd9394ad3ce8c241d2eebc4f99042b.zip | |
Fix build after rebase
| -rw-r--r-- | compiler/rustc_typeck/src/check/generator_interior/drop_ranges/cfg_build.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/compiler/rustc_typeck/src/check/generator_interior/drop_ranges/cfg_build.rs b/compiler/rustc_typeck/src/check/generator_interior/drop_ranges/cfg_build.rs index fc150e09484..fc957b89990 100644 --- a/compiler/rustc_typeck/src/check/generator_interior/drop_ranges/cfg_build.rs +++ b/compiler/rustc_typeck/src/check/generator_interior/drop_ranges/cfg_build.rs @@ -3,7 +3,7 @@ use super::{ NodeInfo, PostOrderId, TrackedValue, TrackedValueIndex, }; use hir::{ - intravisit::{self, NestedVisitorMap, Visitor}, + intravisit::{self, Visitor}, Body, Expr, ExprKind, Guard, HirId, }; use rustc_data_structures::fx::FxHashMap; @@ -189,7 +189,6 @@ impl<'a, 'tcx> DropRangeVisitor<'a, 'tcx> { | ExprKind::Continue(..) | ExprKind::Ret(..) | ExprKind::InlineAsm(..) - | ExprKind::LlvmInlineAsm(..) | ExprKind::Struct(..) | ExprKind::Repeat(..) | ExprKind::Yield(..) @@ -213,12 +212,6 @@ impl<'a, 'tcx> DropRangeVisitor<'a, 'tcx> { } impl<'a, 'tcx> Visitor<'tcx> for DropRangeVisitor<'a, 'tcx> { - type Map = intravisit::ErasedMap<'tcx>; - - fn nested_visit_map(&mut self) -> NestedVisitorMap<Self::Map> { - NestedVisitorMap::None - } - fn visit_expr(&mut self, expr: &'tcx Expr<'tcx>) { let mut reinit = None; match expr.kind { @@ -378,7 +371,6 @@ impl<'a, 'tcx> Visitor<'tcx> for DropRangeVisitor<'a, 'tcx> { | ExprKind::InlineAsm(..) | ExprKind::Let(..) | ExprKind::Lit(..) - | ExprKind::LlvmInlineAsm(..) | ExprKind::Path(..) | ExprKind::Repeat(..) | ExprKind::Ret(..) |
