Avoid one more call site to Compiler::expansion

This commit is contained in:
Oli Scherer 2022-12-07 12:14:06 +00:00
parent 9f5cd03153
commit c8a0561321
2 changed files with 2 additions and 2 deletions

View File

@ -328,7 +328,7 @@ fn run_compiler(
}
}
queries.expansion()?;
queries.global_ctxt()?;
if callbacks.after_expansion(compiler, queries) == Compilation::Stop {
return early_exit();
}

View File

@ -157,7 +157,7 @@ impl<'tcx> Queries<'tcx> {
})
}
pub fn crate_name(&self) -> Result<QueryResult<'_, Symbol>> {
fn crate_name(&self) -> Result<QueryResult<'_, Symbol>> {
self.crate_name.compute(|| {
Ok({
let parse_result = self.parse()?;