Skip to content

Commit

Permalink
Remove two unnecessary references
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Dec 14, 2024
1 parent 6545a2d commit 7738929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_driver_impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ fn run_compiler(
// If pretty printing is requested: Figure out the representation, print it and exit
if let Some(pp_mode) = sess.opts.pretty {
if pp_mode.needs_ast_map() {
create_and_enter_global_ctxt(&compiler, krate, |tcx| {
create_and_enter_global_ctxt(compiler, krate, |tcx| {
tcx.ensure().early_lint_checks(());
pretty::print(sess, pp_mode, pretty::PrintExtra::NeedsAstMap { tcx });
passes::write_dep_info(tcx);
Expand All @@ -414,7 +414,7 @@ fn run_compiler(
return early_exit();
}

let linker = create_and_enter_global_ctxt(&compiler, krate, |tcx| {
let linker = create_and_enter_global_ctxt(compiler, krate, |tcx| {
let early_exit = || {
sess.dcx().abort_if_errors();
None
Expand Down

0 comments on commit 7738929

Please sign in to comment.