File tree 1 file changed +4
-0
lines changed
compiler/rustc_codegen_ssa/src/back
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1535,6 +1535,7 @@ fn start_executing_work<B: ExtraBackendMethods>(
1535
1535
Ok ( WorkItemResult :: Finished ( compiled_module) ) => {
1536
1536
match compiled_module. kind {
1537
1537
ModuleKind :: Regular => {
1538
+ assert ! ( needs_link. is_empty( ) ) ;
1538
1539
compiled_modules. push ( compiled_module) ;
1539
1540
}
1540
1541
ModuleKind :: Allocator => {
@@ -1545,14 +1546,17 @@ fn start_executing_work<B: ExtraBackendMethods>(
1545
1546
}
1546
1547
}
1547
1548
Ok ( WorkItemResult :: NeedsLink ( module) ) => {
1549
+ assert ! ( compiled_modules. is_empty( ) ) ;
1548
1550
needs_link. push ( module) ;
1549
1551
}
1550
1552
Ok ( WorkItemResult :: NeedsFatLTO ( fat_lto_input) ) => {
1551
1553
assert ! ( !started_lto) ;
1554
+ assert ! ( needs_thin_lto. is_empty( ) ) ;
1552
1555
needs_fat_lto. push ( fat_lto_input) ;
1553
1556
}
1554
1557
Ok ( WorkItemResult :: NeedsThinLTO ( name, thin_buffer) ) => {
1555
1558
assert ! ( !started_lto) ;
1559
+ assert ! ( needs_fat_lto. is_empty( ) ) ;
1556
1560
needs_thin_lto. push ( ( name, thin_buffer) ) ;
1557
1561
}
1558
1562
Err ( Some ( WorkerFatalError ) ) => {
You can’t perform that action at this time.
0 commit comments