Skip to content

Commit 7738929

Browse files
committed
Remove two unnecessary references
1 parent 6545a2d commit 7738929

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_driver_impl/src

1 file changed

+2
-2
lines changed

compiler/rustc_driver_impl/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ fn run_compiler(
394394
// If pretty printing is requested: Figure out the representation, print it and exit
395395
if let Some(pp_mode) = sess.opts.pretty {
396396
if pp_mode.needs_ast_map() {
397-
create_and_enter_global_ctxt(&compiler, krate, |tcx| {
397+
create_and_enter_global_ctxt(compiler, krate, |tcx| {
398398
tcx.ensure().early_lint_checks(());
399399
pretty::print(sess, pp_mode, pretty::PrintExtra::NeedsAstMap { tcx });
400400
passes::write_dep_info(tcx);
@@ -414,7 +414,7 @@ fn run_compiler(
414414
return early_exit();
415415
}
416416

417-
let linker = create_and_enter_global_ctxt(&compiler, krate, |tcx| {
417+
let linker = create_and_enter_global_ctxt(compiler, krate, |tcx| {
418418
let early_exit = || {
419419
sess.dcx().abort_if_errors();
420420
None

0 commit comments

Comments
 (0)