aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-03-01 10:04:04 +0100
committerCohenArthur <arthur.cohen@embecosm.com>2023-03-02 13:51:12 +0000
commit35ab5e3dffa21cba757ff8d128726e80fe588057 (patch)
treeb194ad5d8ff623dfce0332fce8a13116b646f92a /gcc
parent724d3e824d6f9f9efb7847b0d53704bf7cb33811 (diff)
downloadgcc-35ab5e3dffa21cba757ff8d128726e80fe588057.zip
gcc-35ab5e3dffa21cba757ff8d128726e80fe588057.tar.gz
gcc-35ab5e3dffa21cba757ff8d128726e80fe588057.tar.bz2
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.h5
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 63e425e..15effaa 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.