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>
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.