https://gcc.gnu.org/g:a3148850a5ac0640b0b352a387e6df5c958861a9

commit r15-9294-ga3148850a5ac0640b0b352a387e6df5c958861a9
Author: Pierre-Emmanuel Patry <pierre-emmanuel.pa...@embecosm.com>
Date:   Tue Apr 1 16:08:37 2025 +0200

    gccrs: Remove unused error constructor and getter
    
    These constructor for eroneous state are not in use anymore since we
    replaced this error state with an optional in the parent nodes.
    
    gcc/rust/ChangeLog:
    
            * ast/rust-expr.h: Remove error getter and constructor.
    
    Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.pa...@embecosm.com>

Diff:
---
 gcc/rust/ast/rust-expr.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h
index 3ce78c643c73..e6cfa2709f93 100644
--- a/gcc/rust/ast/rust-expr.h
+++ b/gcc/rust/ast/rust-expr.h
@@ -31,11 +31,6 @@ public:
   {}
 
   // Returns whether the LoopLabel is in an error state.
-  bool is_error () const { return label.is_error (); }
-
-  // Creates an error state LoopLabel.
-  static LoopLabel error () { return LoopLabel (Lifetime::error ()); }
-
   location_t get_locus () const { return locus; }
 
   Lifetime &get_lifetime () { return label; }

Reply via email to