diff --git a/src/Sema.zig b/src/Sema.zig index 9f5d6d5f9e..6ab89af3f9 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -21549,6 +21549,7 @@ fn resolveInferredErrorSet( var it = ies.inferred_error_sets.keyIterator(); while (it.next()) |other_error_set_ptr| { const other_ies: *Module.Fn.InferredErrorSet = other_error_set_ptr.*; + if (ies == other_ies) continue; try sema.resolveInferredErrorSet(block, src, other_ies); for (other_ies.errors.keys()) |key| {