[gccrs COMMIT] parse: Remove unused gating_errors field and accessor
gerris.rs@gmail.com
gerris.rs@gmail.com
Fri Sep 18 17:16:56 GMT 2026
From: Arthur Cohen <arthur.cohen@opensrcsec.com>
This vector was previously used by the parser but this is no longer the
case.
gcc/rust/ChangeLog:
* parse/rust-parse.h: Remove field and associated method for
retrieving the errors.
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.
Commit on github: https://github.com/Rust-GCC/gccrs/commit/d53db1aaddcf746e73859b6082c37093d1870550
The commit has NOT been mentioned in any issue.
The commit has been mentioned in the following pull-request(s):
- https://github.com/Rust-GCC/gccrs/pull/4910
gcc/rust/parse/rust-parse.h | 7 -------
1 file changed, 7 deletions(-)
diff --git a/gcc/rust/parse/rust-parse.h b/gcc/rust/parse/rust-parse.h
index ee27e9674..7b0da58c5 100644
--- a/gcc/rust/parse/rust-parse.h
+++ b/gcc/rust/parse/rust-parse.h
@@ -896,12 +896,6 @@ public:
// Get a reference to the list of errors encountered
std::vector<Error> &get_errors () { return error_table; }
- std::vector<std::pair<Feature::Name, Error>> &
- get_potential_feature_gate_errors ()
- {
- return gating_errors;
- }
-
const ManagedTokenSource &get_token_source () const { return lexer; }
const_TokenPtr peek_current_token () { return lexer.peek_token (0); }
@@ -913,7 +907,6 @@ private:
// The error list.
std::vector<Error> error_table;
- std::vector<std::pair<Feature::Name, Error>> gating_errors;
// The names of inline modules while parsing.
std::vector<std::string> inline_module_stack;
base-commit: ae002f71251b6e04abb542390e0262e86f6772c1
--
2.55.0
More information about the Gcc-rust
mailing list