From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id DFE9C3858C00; Sun, 5 Mar 2023 11:41:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFE9C3858C00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678016519; bh=2L1QPT5tr6FozD02JMTJ14Nbm9wEdIG67kZcqUCG/zo=; h=From:To:Subject:Date:From; b=adn6En/QrFAi/Ogr4aDPlSUFh9gQJGWCwHwRsxZPhOD9AzXAwc5Rm3+4M/qKc5bvm aUVneXYBN9g1E0GTvs8P0sMwrImF391WRvt3MzzTjM+e6P1+HKFRC0J5pqq53XTzlg Wx/Ujwt0MWy638U/BZSMNfUh5hZAP3r53EHEXqNs= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] fixup: parser: Fix bootstrap compile error X-Act-Checkin: gcc X-Git-Author: Pierre-Emmanuel Patry X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: 724d3e824d6f9f9efb7847b0d53704bf7cb33811 X-Git-Newrev: 35ab5e3dffa21cba757ff8d128726e80fe588057 Message-Id: <20230305114159.DFE9C3858C00@sourceware.org> Date: Sun, 5 Mar 2023 11:41:59 +0000 (GMT) List-Id: https://gcc.gnu.org/g:35ab5e3dffa21cba757ff8d128726e80fe588057 commit 35ab5e3dffa21cba757ff8d128726e80fe588057 Author: Pierre-Emmanuel Patry 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 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::parse_external_type_item (AST::Visibility vis, return nullptr; return std::unique_ptr ( - 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.