diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-12-12 14:00:02 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-12-14 14:24:49 +0000 |
| commit | 77389290975e6be9a03e7539cf6efd45dcbc65ac (patch) | |
| tree | 4395a19b94a93d2bf8206248db4a2e95148e2a12 | |
| parent | 6545a2dc928463a6d71dc9a46fe2b100430b00ad (diff) | |
| download | rust-77389290975e6be9a03e7539cf6efd45dcbc65ac.tar.gz rust-77389290975e6be9a03e7539cf6efd45dcbc65ac.zip | |
Remove two unnecessary references
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index 536eeb5a846..6f7b943c649 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -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); @@ -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 |
