https://gcc.gnu.org/g:efe483c825897f5b4820680d75a5db92bb7a5282
commit r17-5144-gefe483c825897f5b4820680d75a5db92bb7a5282 Author: Arthur Cohen <[email protected]> Date: Fri Sep 18 17:27:03 2026 +0200 gccrs: parse: Remove unused gating_errors field and accessor 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. Diff: --- 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 ee27e9674ef4..7b0da58c5cbb 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;
