Give spans to individual path segments in AST
This commit is contained in:
parent
f573db4f80
commit
32575a0487
10 changed files with 60 additions and 41 deletions
|
@ -580,7 +580,7 @@ fn nospan<T>(t: T) -> codemap::Spanned<T> {
|
|||
fn path_node(ids: Vec<Ident>) -> ast::Path {
|
||||
ast::Path {
|
||||
span: DUMMY_SP,
|
||||
segments: ids.into_iter().map(Into::into).collect(),
|
||||
segments: ids.into_iter().map(|id| ast::PathSegment::from_ident(id, DUMMY_SP)).collect(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue