public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] fixup: parser: Fix bootstrap compile error
@ 2023-03-05 11:41 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-03-05 11:41 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:35ab5e3dffa21cba757ff8d128726e80fe588057
commit 35ab5e3dffa21cba757ff8d128726e80fe588057
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date: Wed Mar 1 10:04:04 2023 +0100
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>
Diff:
---
gcc/rust/parse/rust-parse-impl.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h
index 63e425e5b83..15effaa1979 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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-05 11:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-05 11:41 [gcc/devel/rust/master] fixup: parser: Fix bootstrap compile error Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).