diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2025-04-01 16:08:37 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-04-08 10:17:17 +0200 |
commit | a3148850a5ac0640b0b352a387e6df5c958861a9 (patch) | |
tree | fb7c1dd0695e738a36a9f838da591c3b4cda17bb /gcc | |
parent | ff04ba261afe95ae7dc20099aab599de11480589 (diff) | |
download | gcc-a3148850a5ac0640b0b352a387e6df5c958861a9.zip gcc-a3148850a5ac0640b0b352a387e6df5c958861a9.tar.gz gcc-a3148850a5ac0640b0b352a387e6df5c958861a9.tar.bz2 |
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.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-expr.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index 3ce78c6..e6cfa27 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; } |