gccrs: Implement lowering ReferencePattern from AST to HIR
authorOwen Avery <powerboat9.gamer@gmail.com>
Thu, 2 Feb 2023 05:05:36 +0000 (00:05 -0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 6 Apr 2023 08:47:19 +0000 (10:47 +0200)
commit86f53e5853d2b058e76235624c6988362ef4151e
tree3fbe953e694c72d6a0646597205613efef10b737
parent0e4bf6e7fc4219dbd05703db7759ac4c318978ad
gccrs: Implement lowering ReferencePattern from AST to HIR

gcc/rust/ChangeLog:

* ast/rust-pattern.h:
(ReferencePattern::is_double_reference): Add method.
(ReferencePattern::get_is_mut): Add method.
* hir/rust-ast-lower-pattern.cc
(ASTLoweringPattern::visit): Add ReferencePattern visitor.
* hir/rust-ast-lower-pattern.h:
(ASTLoweringPattern::visit): Add ReferencePattern visitor.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/ast/rust-pattern.h
gcc/rust/hir/rust-ast-lower-pattern.cc
gcc/rust/hir/rust-ast-lower-pattern.h