mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-31 17:12:53 +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 {
|
if callbacks.after_expansion(compiler, queries) == Compilation::Stop {
|
||||||
return early_exit();
|
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(|| {
|
self.crate_name.compute(|| {
|
||||||
Ok({
|
Ok({
|
||||||
let parse_result = self.parse()?;
|
let parse_result = self.parse()?;
|
||||||
|
Loading…
Reference in New Issue
Block a user