mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
Avoid one more call site to Compiler::expansion
This commit is contained in:
parent
9f5cd03153
commit
c8a0561321
@ -328,7 +328,7 @@ fn run_compiler(
|
||||
}
|
||||
}
|
||||
|
||||
queries.expansion()?;
|
||||
queries.global_ctxt()?;
|
||||
if callbacks.after_expansion(compiler, queries) == Compilation::Stop {
|
||||
return early_exit();
|
||||
}
|
||||
|
@ -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()?;
|
||||
|
Loading…
Reference in New Issue
Block a user