thread tighter span for closures around
Track the span corresponding to the `|...|` part of the closure.
This commit is contained in:
parent
23ccaddaa7
commit
ecd10f04ce
29 changed files with 87 additions and 53 deletions
|
|
@ -1258,7 +1258,7 @@ impl<'v, 'l, 'tcx: 'l, 'll, D: Dump +'ll> Visitor<'v> for DumpVisitor<'l, 'tcx,
|
|||
ty),
|
||||
}
|
||||
}
|
||||
ast::ExprKind::Closure(_, ref decl, ref body) => {
|
||||
ast::ExprKind::Closure(_, ref decl, ref body, _fn_decl_span) => {
|
||||
let mut id = String::from("$");
|
||||
id.push_str(&ex.id.to_string());
|
||||
self.process_formals(&decl.inputs, &id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue