aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-10-20 14:03:55 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-10-20 14:03:55 -0700
commit328ec15d9cae0373c1f973699c392db5b63ab886 (patch)
tree2c81e060907538a5668ffe03b54a114b56e2fe03 /src/Module.zig
parent6dc45e7d3186f81b1329c71b6380ff3ddd5dec41 (diff)
downloadzig-328ec15d9cae0373c1f973699c392db5b63ab886.tar.gz
zig-328ec15d9cae0373c1f973699c392db5b63ab886.zip
Revert "make distinct error limit configurable"
This reverts commit 78855bd21866b515018259a2194e036e4b3120df. This commit did not replace uses of `Type.err_int` of which there are currently 60 uses. Re-opens #786
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 36d9a4284c..41f4ec2b41 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -137,9 +137,6 @@ deletion_set: std.AutoArrayHashMapUnmanaged(Decl.Index, void) = .{},
/// Key is the error name, index is the error tag value. Index 0 has a length-0 string.
global_error_set: GlobalErrorSet = .{},
-/// Maximum amount of distinct error values, set by --error-limit
-error_limit: ErrorInt,
-
/// Incrementing integer used to compare against the corresponding Decl
/// field to determine whether a Decl's status applies to an ongoing update, or a
/// previous analysis.
@@ -5023,11 +5020,6 @@ pub fn getErrorValueFromSlice(
return getErrorValue(mod, interned_name);
}
-pub fn errorSetBits(mod: *Module) u16 {
- if (mod.error_limit == 0) return 0;
- return std.math.log2_int_ceil(ErrorInt, mod.error_limit + 1); // +1 for no error
-}
-
pub fn createAnonymousDecl(mod: *Module, block: *Sema.Block, typed_value: TypedValue) !Decl.Index {
const src_decl = mod.declPtr(block.src_decl);
return mod.createAnonymousDeclFromDecl(src_decl, block.namespace, block.wip_capture_scope, typed_value);