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 24047f8798..bf54fc01fd 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -3519,14 +3519,6 @@ pub fn deinit(mod: *Module) void {
pub fn destroyDecl(mod: *Module, decl_index: Decl.Index) void {
const gpa = mod.gpa;
{
- if (mod.failed_decls.contains(decl_index)) {
- blk: {
- const errs = mod.comp.getAllErrorsAlloc() catch break :blk;
- for (errs.list) |err| Compilation.AllErrors.Message.renderToStdErr(err, .no_color);
- }
- // TODO restore test case triggering this panic
- @panic("Zig compiler bug: attempted to destroy declaration with an attached error");
- }
const decl = mod.declPtr(decl_index);
log.debug("destroy {*} ({s})", .{ decl, decl.name });
_ = mod.test_functions.swapRemove(decl_index);