Store LocalDefId in hir::Closure.
This commit is contained in:
parent
dba1503ed3
commit
290f0781b4
10 changed files with 24 additions and 23 deletions
|
@ -921,6 +921,7 @@ pub struct Crate<'hir> {
|
|||
|
||||
#[derive(Debug, HashStable_Generic)]
|
||||
pub struct Closure<'hir> {
|
||||
pub def_id: LocalDefId,
|
||||
pub binder: ClosureBinder,
|
||||
pub capture_clause: CaptureBy,
|
||||
pub bound_generic_params: &'hir [GenericParam<'hir>],
|
||||
|
|
|
@ -733,6 +733,7 @@ pub fn walk_expr<'v, V: Visitor<'v>>(visitor: &mut V, expression: &'v Expr<'v>)
|
|||
walk_list!(visitor, visit_arm, arms);
|
||||
}
|
||||
ExprKind::Closure(&Closure {
|
||||
def_id: _,
|
||||
binder: _,
|
||||
bound_generic_params,
|
||||
fn_decl,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue