aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.h')
-rw-r--r--gcc/rust/resolve/rust-ast-resolve-expr.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/rust/resolve/rust-ast-resolve-expr.h b/gcc/rust/resolve/rust-ast-resolve-expr.h
index 324d820..abab268 100644
--- a/gcc/rust/resolve/rust-ast-resolve-expr.h
+++ b/gcc/rust/resolve/rust-ast-resolve-expr.h
@@ -35,7 +35,13 @@ public:
expr->accept_vis (resolver);
};
- ~ResolveExpr () {}
+ void visit (AST::TupleExpr &expr)
+ {
+ if (expr.is_unit ())
+ return;
+
+ gcc_unreachable ();
+ }
void visit (AST::PathInExpression &expr)
{