Skip to content

Commit 76f6b57

Browse files
committed
Fix build after rebase
1 parent d840d0c commit 76f6b57

File tree

1 file changed

+1
-9
lines changed
  • compiler/rustc_typeck/src/check/generator_interior/drop_ranges

1 file changed

+1
-9
lines changed

compiler/rustc_typeck/src/check/generator_interior/drop_ranges/cfg_build.rs

+1-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use super::{
33
NodeInfo, PostOrderId, TrackedValue, TrackedValueIndex,
44
};
55
use hir::{
6-
intravisit::{self, NestedVisitorMap, Visitor},
6+
intravisit::{self, Visitor},
77
Body, Expr, ExprKind, Guard, HirId,
88
};
99
use rustc_data_structures::fx::FxHashMap;
@@ -189,7 +189,6 @@ impl<'a, 'tcx> DropRangeVisitor<'a, 'tcx> {
189189
| ExprKind::Continue(..)
190190
| ExprKind::Ret(..)
191191
| ExprKind::InlineAsm(..)
192-
| ExprKind::LlvmInlineAsm(..)
193192
| ExprKind::Struct(..)
194193
| ExprKind::Repeat(..)
195194
| ExprKind::Yield(..)
@@ -213,12 +212,6 @@ impl<'a, 'tcx> DropRangeVisitor<'a, 'tcx> {
213212
}
214213

215214
impl<'a, 'tcx> Visitor<'tcx> for DropRangeVisitor<'a, 'tcx> {
216-
type Map = intravisit::ErasedMap<'tcx>;
217-
218-
fn nested_visit_map(&mut self) -> NestedVisitorMap<Self::Map> {
219-
NestedVisitorMap::None
220-
}
221-
222215
fn visit_expr(&mut self, expr: &'tcx Expr<'tcx>) {
223216
let mut reinit = None;
224217
match expr.kind {
@@ -378,7 +371,6 @@ impl<'a, 'tcx> Visitor<'tcx> for DropRangeVisitor<'a, 'tcx> {
378371
| ExprKind::InlineAsm(..)
379372
| ExprKind::Let(..)
380373
| ExprKind::Lit(..)
381-
| ExprKind::LlvmInlineAsm(..)
382374
| ExprKind::Path(..)
383375
| ExprKind::Repeat(..)
384376
| ExprKind::Ret(..)

0 commit comments

Comments
 (0)