diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-01-23 11:44:33 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-24 13:07:12 +0100 |
commit | 1160e4b7e1c4e254f01107d8d5ef513ddccc7388 (patch) | |
tree | 88053f489cab74bc0a6ec3e08b66bb0d66133a49 /gcc/rust/hir/rust-ast-lower-expr.h | |
parent | 4d6a08b4766bf8d97bc0c3d116e3f7fa43b18fef (diff) | |
download | gcc-1160e4b7e1c4e254f01107d8d5ef513ddccc7388.zip gcc-1160e4b7e1c4e254f01107d8d5ef513ddccc7388.tar.gz gcc-1160e4b7e1c4e254f01107d8d5ef513ddccc7388.tar.bz2 |
gccrs: lower: Error out when lowering ErrorPropagationExpr
Adapt functions for lowering nodes that should never reach the lowering phase to cause an
unreachable, and mark them as final so as it not possible to override them in other visitors.
gcc/rust/ChangeLog:
* hir/rust-ast-lower-base.cc: Adapt functions for ErrorPropagationExpr and MacroInvocation.
* hir/rust-ast-lower-base.h: Mark them as final.
* hir/rust-ast-lower-expr.cc: Remove previous definition for those overrides.
* hir/rust-ast-lower-expr.h: Likewise.
Diffstat (limited to 'gcc/rust/hir/rust-ast-lower-expr.h')
-rw-r--r-- | gcc/rust/hir/rust-ast-lower-expr.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/rust/hir/rust-ast-lower-expr.h b/gcc/rust/hir/rust-ast-lower-expr.h index fc53786..af60e01 100644 --- a/gcc/rust/hir/rust-ast-lower-expr.h +++ b/gcc/rust/hir/rust-ast-lower-expr.h @@ -113,7 +113,6 @@ public: void visit (AST::ContinueExpr &expr) override; void visit (AST::BorrowExpr &expr) override; void visit (AST::DereferenceExpr &expr) override; - void visit (AST::ErrorPropagationExpr &expr) override; void visit (AST::MatchExpr &expr) override; void visit (AST::RangeFromToExpr &expr) override; void visit (AST::RangeFromExpr &expr) override; |