We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf56190 commit 09c807eCopy full SHA for 09c807e
compiler/rustc_driver_impl/src/lib.rs
@@ -455,6 +455,8 @@ fn run_compiler(
455
456
let ongoing_codegen = queries.ongoing_codegen()?;
457
458
+ // This must run after monomorphization so that all generic types
459
+ // have been instantiated.
460
if sess.opts.unstable_opts.print_type_sizes {
461
sess.code_stats.print_type_sizes();
462
}
@@ -469,6 +471,8 @@ fn run_compiler(
469
471
Ok(Some(linker))
470
472
})?;
473
474
+ // Linking is done outside the `compiler.enter()` so that the
475
+ // `GlobalCtxt` within `Queries` can be freed as early as possible.
476
if let Some(linker) = linker {
477
let _timer = sess.timer("link");
478
linker.link(sess, codegen_backend)?
0 commit comments