File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,12 @@ pub fn aroDiagnosticsToErrorBundle(
26
26
for (d .output .to_list .messages .items ) | msg | {
27
27
switch (msg .kind ) {
28
28
.off , .warning = > {
29
+ // Emit any pending error and clear everything so that notes don't bleed into unassociated errors
29
30
if (cur_err ) | err | {
30
31
try bundle .addRootErrorMessageWithNotes (err , cur_notes .items );
31
- // Clear the current error so that notes don't bleed into unassociated errors
32
32
cur_err = null ;
33
33
}
34
+ cur_notes .clearRetainingCapacity ();
34
35
continue ;
35
36
},
36
37
.note = > if (cur_err == null ) continue ,
Original file line number Diff line number Diff line change @@ -3398,7 +3398,7 @@ fn flush(
3398
3398
/// Linker backends which do not have this requirement can fall back to the simple
3399
3399
/// implementation at the bottom of this function.
3400
3400
/// This function is only called when CacheMode is `whole`.
3401
- pub fn renameTmpIntoCache (
3401
+ fn renameTmpIntoCache (
3402
3402
cache_directory : Cache.Directory ,
3403
3403
tmp_dir_sub_path : []const u8 ,
3404
3404
o_sub_path : []const u8 ,
You can’t perform that action at this time.
0 commit comments