Skip to content

Commit d79b82f

Browse files
committed
Import AdtExprBase
1 parent 4995e0b commit d79b82f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_middle/src/thir/visit.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use super::{
22
AdtExpr, Arm, Block, ClosureExpr, Expr, ExprKind, InlineAsmExpr, InlineAsmOperand, Pat,
33
PatKind, Stmt, StmtKind, Thir,
44
};
5+
use crate::thir::AdtExprBase;
56

67
pub trait Visitor<'thir, 'tcx: 'thir>: Sized {
78
fn thir(&self) -> &'thir Thir<'tcx>;
@@ -127,7 +128,7 @@ pub fn walk_expr<'thir, 'tcx: 'thir, V: Visitor<'thir, 'tcx>>(
127128
for field in &**fields {
128129
visitor.visit_expr(&visitor.thir()[field.expr]);
129130
}
130-
if let crate::thir::AdtExprBase::Base(base) = base {
131+
if let AdtExprBase::Base(base) = base {
131132
visitor.visit_expr(&visitor.thir()[base.base]);
132133
}
133134
}

0 commit comments

Comments
 (0)