diff options
Diffstat (limited to 'gcc/rust/parse/rust-parse.h')
-rw-r--r-- | gcc/rust/parse/rust-parse.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/parse/rust-parse.h b/gcc/rust/parse/rust-parse.h index fa88f8e..d799a56 100644 --- a/gcc/rust/parse/rust-parse.h +++ b/gcc/rust/parse/rust-parse.h @@ -662,7 +662,7 @@ private: public: // Construct parser with specified "managed" token source. - Parser (ManagedTokenSource tokenSource) : lexer (std::move (tokenSource)) {} + Parser (ManagedTokenSource &tokenSource) : lexer (tokenSource) {} // Parse items without parsing an entire crate. This function is the main // parsing loop of AST::Crate::parse_crate(). @@ -689,7 +689,7 @@ public: private: // The token source (usually lexer) associated with the parser. - ManagedTokenSource lexer; + ManagedTokenSource &lexer; // The error list. std::vector<Error> error_table; // The names of inline modules while parsing. |