]> git.ipfire.org Git - thirdparty/gcc.git/commit
Implement lowering ReferencePattern from AST to HIR
authorOwen Avery <powerboat9.gamer@gmail.com>
Thu, 2 Feb 2023 05:05:36 +0000 (00:05 -0500)
committerOwen Avery <powerboat9.gamer@gmail.com>
Thu, 2 Feb 2023 17:35:10 +0000 (12:35 -0500)
commit1b46cfb35ac4ea7e5e00ac9a332ac7daeeeeb0ba
treeb7c111f36cdf3c7797c84b065a8ee40716bd61f3
parent595eacc9931b2e4cee22c052eca85059358a6961
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