From: Arthur Cohen <[email protected]>

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.

Tested on x86_64-pc-linux-gnu.

---
 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 ee27e9674ef..7b0da58c5cb 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;
 
-- 
2.55.0

Reply via email to