Keep track of the start of the argument block of a closure
This commit is contained in:
parent
872631d0f0
commit
8f705e2425
15 changed files with 53 additions and 29 deletions
|
@ -928,7 +928,10 @@ pub struct Closure<'hir> {
|
|||
pub bound_generic_params: &'hir [GenericParam<'hir>],
|
||||
pub fn_decl: &'hir FnDecl<'hir>,
|
||||
pub body: BodyId,
|
||||
/// The span of the declaration block: 'move |...| -> ...'
|
||||
pub fn_decl_span: Span,
|
||||
/// The span of the argument block `|...|`
|
||||
pub fn_arg_span: Option<Span>,
|
||||
pub movability: Option<Movability>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue