gccrs: Optimize HIR::ReferencePattern
authorOwen Avery <powerboat9.gamer@gmail.com>
Thu, 2 Feb 2023 16:38:44 +0000 (11:38 -0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 6 Apr 2023 08:47:19 +0000 (10:47 +0200)
commit0e4bf6e7fc4219dbd05703db7759ac4c318978ad
tree8f00715370d22352a0dfa4a75adb7f5dc4e26e0e
parent95efd84db13b9ac2b27654e86d1cacefe0637415
gccrs: Optimize HIR::ReferencePattern

gcc/rust/ChangeLog:

* hir/tree/rust-hir-pattern.h
(class ReferencePattern): Remove has_two_amps field.
* hir/tree/rust-hir-full-test.cc
(ReferencePattern::as_string): Remove usage of ReferencePattern::has_two_amps.

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