Don't re-collect tokenstream twice to pretty print
This commit is contained in:
parent
11d521676f
commit
ae5ed9b729
1 changed files with 1 additions and 1 deletions
|
@ -1316,7 +1316,7 @@ impl EncodeContext<'tcx> {
|
|||
let def_id = self.tcx.hir().local_def_id(macro_def.hir_id);
|
||||
Entry {
|
||||
kind: EntryKind::MacroDef(self.lazy(&MacroDef {
|
||||
body: pprust::tts_to_string(¯o_def.body.trees().collect::<Vec<_>>()),
|
||||
body: pprust::tokens_to_string(macro_def.body.clone()),
|
||||
legacy: macro_def.legacy,
|
||||
})),
|
||||
visibility: self.lazy(&ty::Visibility::Public),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue