Don't steal the parse query when using --pretty

This is the only place aside from the global_ctxt query where it is
stolen.
This commit is contained in:
bjorn3 2023-11-04 18:02:31 +00:00
parent 992943dbae
commit 1a1b10fa63
2 changed files with 7 additions and 3 deletions

View file

@ -217,7 +217,7 @@ fn write_or_print(out: &str, sess: &Session) {
// Extra data for pretty-printing, the form of which depends on what kind of
// pretty-printing we are doing.
pub enum PrintExtra<'tcx> {
AfterParsing { krate: ast::Crate },
AfterParsing { krate: &'tcx ast::Crate },
NeedsAstMap { tcx: TyCtxt<'tcx> },
}