aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
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);