| ... | ... | @@ -2065,7 +2065,7 @@ pub const Type = struct { |
| 2065 | 2065 | pub fn errorSetIsEmpty(ty: Type, mod: *Module) bool { |
| 2066 | 2066 | const ip = &mod.intern_pool; |
| 2067 | 2067 | return switch (ty.toIntern()) { |
| 2068 | | .anyerror_type => false, |
| 2068 | .anyerror_type, .adhoc_inferred_error_set_type => false, |
| 2069 | 2069 | else => switch (ip.indexToKey(ty.toIntern())) { |
| 2070 | 2070 | .error_set_type => |error_set_type| error_set_type.names.len == 0, |
| 2071 | 2071 | .inferred_error_set_type => |i| switch (ip.funcIesResolved(i).*) { |
| ... | ... | @@ -2084,6 +2084,7 @@ pub const Type = struct { |
| 2084 | 2084 | const ip = &mod.intern_pool; |
| 2085 | 2085 | return switch (ty.toIntern()) { |
| 2086 | 2086 | .anyerror_type => true, |
| 2087 | .adhoc_inferred_error_set_type => false, |
| 2087 | 2088 | else => switch (mod.intern_pool.indexToKey(ty.toIntern())) { |
| 2088 | 2089 | .inferred_error_set_type => |i| ip.funcIesResolved(i).* == .anyerror_type, |
| 2089 | 2090 | else => false, |