diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-03-01 10:04:04 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:19:02 +0100 |
commit | 060652cdd8b1fda6d108c87f421e78a885d5c173 (patch) | |
tree | cdf28262c98b715dcb650bcea120ccf0974221f5 /gcc | |
parent | 2b6d2e1d5a57ce26c1cf65dfa8f099f2471d2fc7 (diff) | |
download | gcc-060652cdd8b1fda6d108c87f421e78a885d5c173.zip gcc-060652cdd8b1fda6d108c87f421e78a885d5c173.tar.gz gcc-060652cdd8b1fda6d108c87f421e78a885d5c173.tar.bz2 |
gccrs: fixup: parser: Fix bootstrap compile error
The recent changes in the parser bringing the parsing of extern type
items also brought a compilation error when boostrapping the compiler.
gcc/rust/ChangeLog:
* parse/rust-parse-impl.h (Parser::parse_external_type_item):
Fix compilation error due to unnecessary move.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/parse/rust-parse-impl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index 2317169..37b3244 100644 --- a/gcc/rust/parse/rust-parse-impl.h +++ b/gcc/rust/parse/rust-parse-impl.h @@ -4013,9 +4013,8 @@ Parser<ManagedTokenSource>::parse_external_type_item (AST::Visibility vis, return nullptr; return std::unique_ptr<AST::ExternalTypeItem> ( - new AST::ExternalTypeItem (std::move (alias_name_tok->get_str ()), - std::move (vis), std::move (outer_attrs), - std::move (locus))); + new AST::ExternalTypeItem (alias_name_tok->get_str (), std::move (vis), + std::move (outer_attrs), std::move (locus))); } // Parses a "type alias" (typedef) item. |