File tree 2 files changed +0
-12
lines changed
2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -1178,9 +1178,6 @@ fn collect_and_partition_translation_items<'a, 'tcx>(
1178
1178
. collect :: < Vec < _ > > ( )
1179
1179
} ) ;
1180
1180
1181
- assert ! ( tcx. sess. opts. codegen_units == codegen_units. len( ) ||
1182
- tcx. sess. opts. debugging_opts. incremental. is_some( ) ) ;
1183
-
1184
1181
let translation_items: DefIdSet = items. iter ( ) . filter_map ( |trans_item| {
1185
1182
match * trans_item {
1186
1183
TransItem :: Fn ( ref instance) => Some ( instance. def_id ( ) ) ,
Original file line number Diff line number Diff line change @@ -407,15 +407,6 @@ fn merge_codegen_units<'tcx>(initial_partitioning: &mut PreInliningPartitioning<
407
407
for ( index, cgu) in codegen_units. iter_mut ( ) . enumerate ( ) {
408
408
cgu. set_name ( numbered_codegen_unit_name ( crate_name, index) ) ;
409
409
}
410
-
411
- // If the initial partitioning contained less than target_cgu_count to begin
412
- // with, we won't have enough codegen units here, so add a empty units until
413
- // we reach the target count
414
- while codegen_units. len ( ) < target_cgu_count {
415
- let index = codegen_units. len ( ) ;
416
- let name = numbered_codegen_unit_name ( crate_name, index) ;
417
- codegen_units. push ( CodegenUnit :: new ( name) ) ;
418
- }
419
410
}
420
411
421
412
fn place_inlined_translation_items < ' tcx > ( initial_partitioning : PreInliningPartitioning < ' tcx > ,
You can’t perform that action at this time.
0 commit comments