1
Fork 0

Store TokenStream in rmeta::MacroDef.

This removes a hack from `load_macro_untracked` in which parsing is used.
This commit is contained in:
Mazdak Farrokhzad 2019-11-13 13:01:43 +01:00
parent 3dbade652e
commit fd302f46dc
17 changed files with 53 additions and 85 deletions

View file

@ -1565,7 +1565,7 @@ impl Context {
let mut path = String::new();
// We can safely ignore macros from other libraries
// We can safely ignore synthetic `SourceFile`s.
let file = match item.source.filename {
FileName::Real(ref path) => path,
_ => return None,