]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir/src/hir.rs
Store LocalDefId in hir::Closure.
[rust.git] / compiler / rustc_hir / src / hir.rs
index 82e260d158bc468acb5ec56372e53e49e1a4fb82..1be03552c88ad5c9711d7623f18d1f4b31edeb47 100644 (file)
@@ -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>],