Keep a parent LocalDefId in SpanData.
This commit is contained in:
parent
06f7ca307d
commit
00485e0c0e
22 changed files with 88 additions and 40 deletions
|
@ -367,7 +367,7 @@ impl MetaItem {
|
|||
let is_first = i == 0;
|
||||
if !is_first {
|
||||
let mod_sep_span =
|
||||
Span::new(last_pos, segment.ident.span.lo(), segment.ident.span.ctxt());
|
||||
Span::new(last_pos, segment.ident.span.lo(), segment.ident.span.ctxt(), None);
|
||||
idents.push(TokenTree::token(token::ModSep, mod_sep_span).into());
|
||||
}
|
||||
idents.push(TokenTree::Token(Token::from_ast_ident(segment.ident)).into());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue