public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8109] gccrs: HIR: remove obsole double borrow member
@ 2024-01-16 18:19 Arthur Cohen
0 siblings, 0 replies; only message in thread
From: Arthur Cohen @ 2024-01-16 18:19 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:80bdb1a85ac6275eb7cdb963b257ba65168c8eb9
commit r14-8109-g80bdb1a85ac6275eb7cdb963b257ba65168c8eb9
Author: Jakub Dupak <dev@jakubdupak.com>
Date: Thu Nov 2 13:42:48 2023 +0100
gccrs: HIR: remove obsole double borrow member
gcc/rust/ChangeLog:
* hir/rust-hir-dump.cc (Dump::visit): Remove obsolete member.
* hir/tree/rust-hir-expr.h (class BorrowExpr): Remove obsolete member.
* hir/tree/rust-hir.cc (BorrowExpr::as_string): Remove obsolete member.
Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
Diff:
---
gcc/rust/hir/rust-hir-dump.cc | 1 -
gcc/rust/hir/tree/rust-hir-expr.h | 3 ---
gcc/rust/hir/tree/rust-hir.cc | 5 -----
3 files changed, 9 deletions(-)
diff --git a/gcc/rust/hir/rust-hir-dump.cc b/gcc/rust/hir/rust-hir-dump.cc
index 4ce8f334b09..2fdf769c0de 100644
--- a/gcc/rust/hir/rust-hir-dump.cc
+++ b/gcc/rust/hir/rust-hir-dump.cc
@@ -808,7 +808,6 @@ Dump::visit (BorrowExpr &e)
begin ("BorrowExpr");
do_operatorexpr (e);
- put_field ("double_borrow", std::to_string (e.is_double_borrow ()));
put_field ("mut", enum_to_str (e.get_mut ()));
end ("BorrowExpr");
diff --git a/gcc/rust/hir/tree/rust-hir-expr.h b/gcc/rust/hir/tree/rust-hir-expr.h
index 4c49d943317..0e3e909e15c 100644
--- a/gcc/rust/hir/tree/rust-hir-expr.h
+++ b/gcc/rust/hir/tree/rust-hir-expr.h
@@ -213,7 +213,6 @@ public:
class BorrowExpr : public OperatorExpr
{
Mutability mut;
- bool double_borrow;
public:
std::string as_string () const override;
@@ -232,8 +231,6 @@ public:
Mutability get_mut () const { return mut; }
bool is_mut () const { return mut == Mutability::Mut; }
- bool is_double_borrow () const { return double_borrow; }
-
protected:
/* Use covariance to implement clone function as returning this object rather
* than base */
diff --git a/gcc/rust/hir/tree/rust-hir.cc b/gcc/rust/hir/tree/rust-hir.cc
index a3d6e1ee276..66f626ba845 100644
--- a/gcc/rust/hir/tree/rust-hir.cc
+++ b/gcc/rust/hir/tree/rust-hir.cc
@@ -1182,11 +1182,6 @@ BorrowExpr::as_string () const
{
std::string str ("&");
- if (double_borrow)
- {
- str += "&";
- }
-
if (is_mut ())
{
str += "mut ";
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-16 18:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16 18:19 [gcc r14-8109] gccrs: HIR: remove obsole double borrow member Arthur Cohen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).