We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
collect_and_partition_mono_items
1 parent 996d570 commit 0ef7ea2Copy full SHA for 0ef7ea2
src/driver/aot.rs
@@ -676,7 +676,7 @@ pub(crate) fn run_aot(
676
.to_owned();
677
678
let cgus = if tcx.sess.opts.output_types.should_codegen() {
679
- tcx.collect_and_partition_mono_items(()).1
+ tcx.collect_and_partition_mono_items(()).codegen_units
680
} else {
681
// If only `--emit metadata` is used, we shouldn't perform any codegen.
682
// Also `tcx.collect_and_partition_mono_items` may panic in that case.
0 commit comments