mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
comp: populateTestFunctions shouldn't bubble up AnalysisFail
`ensureCauAnalyzed` adds the anal_unit to the transitive failures, so we don't need to do anything here. The errors will be handled after this function.
This commit is contained in:
parent
54b668f8a3
commit
9e6d167bb7
1 changed files with 5 additions and 2 deletions
|
|
@ -2429,7 +2429,7 @@ fn processExportsInner(
|
|||
pub fn populateTestFunctions(
|
||||
pt: Zcu.PerThread,
|
||||
main_progress_node: std.Progress.Node,
|
||||
) !void {
|
||||
) Allocator.Error!void {
|
||||
const zcu = pt.zcu;
|
||||
const gpa = zcu.gpa;
|
||||
const ip = &zcu.intern_pool;
|
||||
|
|
@ -2454,7 +2454,10 @@ pub fn populateTestFunctions(
|
|||
zcu.sema_prog_node = std.Progress.Node.none;
|
||||
}
|
||||
const cau_index = ip.getNav(nav_index).analysis_owner.unwrap().?;
|
||||
try pt.ensureCauAnalyzed(cau_index);
|
||||
pt.ensureCauAnalyzed(cau_index) catch |err| switch (err) {
|
||||
error.AnalysisFail => return,
|
||||
error.OutOfMemory => return error.OutOfMemory,
|
||||
};
|
||||
}
|
||||
|
||||
const test_fns_val = zcu.navValue(nav_index);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue