rustc_parse: Better spans for synthesized token streams
This commit is contained in:
parent
b5c496de37
commit
0dab076358
9 changed files with 151 additions and 167 deletions
|
@ -94,12 +94,7 @@ impl MultiItemModifier for ProcMacroDerive {
|
|||
let input = if item.pretty_printing_compatibility_hack() {
|
||||
TokenTree::token(token::Interpolated(Lrc::new(item)), DUMMY_SP).into()
|
||||
} else {
|
||||
nt_to_tokenstream(
|
||||
&item,
|
||||
&ecx.sess.parse_sess,
|
||||
DUMMY_SP,
|
||||
CanSynthesizeMissingTokens::Yes,
|
||||
)
|
||||
nt_to_tokenstream(&item, &ecx.sess.parse_sess, CanSynthesizeMissingTokens::Yes)
|
||||
};
|
||||
|
||||
let server = proc_macro_server::Rustc::new(ecx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue