Skip to content

Commit

Permalink
Simplify expansion logic
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Feb 14, 2023
1 parent d156638 commit 241c6a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_interface/src/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ impl<'tcx> Queries<'tcx> {
pub fn global_ctxt(&'tcx self) -> Result<QueryResult<'_, &'tcx GlobalCtxt<'tcx>>> {
self.gcx.compute(|| {
let crate_name = *self.crate_name()?.borrow();
let (krate, resolver_outputs, lint_store) = {
let (krate, lint_store) = self.register_plugins()?.steal();
let (krate, lint_store) = self.register_plugins()?.steal();
let (krate, resolver_outputs) = {
let _timer = self.session().timer("configure_and_expand");
let sess = self.session();

Expand All @@ -206,7 +206,7 @@ impl<'tcx> Queries<'tcx> {
crate_name,
&mut resolver,
)?;
(Lrc::new(krate), resolver.into_outputs(), lint_store)
(Lrc::new(krate), resolver.into_outputs())
};

let ty::ResolverOutputs {
Expand Down

0 comments on commit 241c6a4

Please sign in to comment.