Skip to content

Commit eb098a5

Browse files
oli-obkBGluth
authored andcommitted
Change collect_and_partition_mono_items tuple return type to a struct
1 parent 3ecf5c2 commit eb098a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver/aot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ pub(crate) fn run_aot(
676676
.to_owned();
677677

678678
let cgus = if tcx.sess.opts.output_types.should_codegen() {
679-
tcx.collect_and_partition_mono_items(()).1
679+
tcx.collect_and_partition_mono_items(()).codegen_units
680680
} else {
681681
// If only `--emit metadata` is used, we shouldn't perform any codegen.
682682
// Also `tcx.collect_and_partition_mono_items` may panic in that case.

0 commit comments

Comments
 (0)