more Use->DropTemps fixes
This commit is contained in:
parent
24e856f10a
commit
f195680edb
@ -497,7 +497,7 @@ fn visit_expr(&mut self, expr: &Expr) {
|
||||
},
|
||||
ExprKind::DropTemps(ref expr) => {
|
||||
let expr_pat = self.next("expr");
|
||||
println!("Use(ref {}) = {};", expr_pat, current);
|
||||
println!("DropTemps(ref {}) = {};", expr_pat, current);
|
||||
self.current = expr_pat;
|
||||
self.visit_expr(expr);
|
||||
},
|
||||
|
@ -331,7 +331,7 @@ fn print_expr(cx: &LateContext<'_, '_>, expr: &hir::Expr, indent: usize) {
|
||||
println!("{}Err", ind);
|
||||
},
|
||||
hir::ExprKind::DropTemps(ref e) => {
|
||||
println!("{}Use", ind);
|
||||
println!("{}DropTemps", ind);
|
||||
print_expr(cx, e, indent + 1);
|
||||
},
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
if_chain! {
|
||||
if let ExprKind::Use(ref expr) = expr.node;
|
||||
if let ExprKind::DropTemps(ref expr) = expr.node;
|
||||
if let ExprKind::Match(ref expr1, ref arms, MatchSource::ForLoopDesugar) = expr.node;
|
||||
if let ExprKind::Call(ref func, ref args) = expr1.node;
|
||||
if let ExprKind::Path(ref path) = func.node;
|
||||
|
Loading…
Reference in New Issue
Block a user