https://gcc.gnu.org/g:75b7b7c210c62405a29068826d5ebb67ac6d6d68

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

    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