Remove two unnecessary references
This commit is contained in:
parent
6545a2dc92
commit
7738929097
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue