Make ExprKind::Closure
a struct variant.
This commit is contained in:
parent
fa68e73e99
commit
3039cfeb6a
75 changed files with 251 additions and 216 deletions
|
@ -1360,15 +1360,15 @@ impl<'tcx> Visitor<'tcx> for DumpVisitor<'tcx> {
|
|||
}
|
||||
}
|
||||
}
|
||||
hir::ExprKind::Closure(_, ref decl, body, _fn_decl_span, _) => {
|
||||
hir::ExprKind::Closure { ref fn_decl, body, .. } => {
|
||||
let id = format!("${}", ex.hir_id);
|
||||
|
||||
// walk arg and return types
|
||||
for ty in decl.inputs {
|
||||
for ty in fn_decl.inputs {
|
||||
self.visit_ty(ty);
|
||||
}
|
||||
|
||||
if let hir::FnRetTy::Return(ref ret_ty) = decl.output {
|
||||
if let hir::FnRetTy::Return(ref ret_ty) = fn_decl.output {
|
||||
self.visit_ty(ret_ty);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue