Message ID | 20230405140411.3016563-17-arthur.cohen@embecosm.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp343588vqo; Wed, 5 Apr 2023 07:19:14 -0700 (PDT) X-Google-Smtp-Source: AKy350YpNq0o6JNzFWmjtbr25+84nB/5XxIWqqqJat7FKbJby5EVsO14WuRbPZ616uydhslk+S/K X-Received: by 2002:a17:907:5c7:b0:928:796d:71e8 with SMTP id wg7-20020a17090705c700b00928796d71e8mr3880289ejb.3.1680704354424; Wed, 05 Apr 2023 07:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680704354; cv=none; d=google.com; s=arc-20160816; b=XwHckC9SRykIZMR2BZCtX0jVOr8TS9CtHxRdO1eWKy6aicRjH5FbgzusefGcRn+Wzr bgl1zCSwWLZnSuLDmyO0ZYy3ftlE/xTSzBhMuX33rQKuNk6L5HkCYGTm0R8Smw6nHqgl lsj/sJtB7GAnGpGjwOs7vGJnKXqCAx94GQshAFE2Yff3Ek2iYl2ERnGZdqsTE/9SsI8C Lb/DzptngirAajBukhkis+DznO/aA0uyApDfrH/QjC+LThg+ArchJ+dK9mpQl6AomD1t oqwIHSk/N++XTCuHyI7O04okyCpApSiVdS/Kwd1BnRlYbGCeNnA4kU/dFltqAN69Sedk s+5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dmarc-filter :delivered-to; bh=sMkoscIEeOuQXRmkTvqa/38owLhMvajHs7aIBsVJ9QA=; b=Fny0TPs5rQGxKW2OHfeC3+LyLOnVO5Z4SrWtHpsIUS+HgQHXov2CdQmdNYpvkpfu+Q xaOb2/zu2duQZRYtw66IdgCefmana0p4yHsMwnr4q5Yco2gUp4gXcejLA0elxq1V4uMO I9FF9ui0ZVfBp/QND0XErSQm6U7OFG+7P7KaxRi0T4wPK5p/I3A2CFcPpnOPZiOgH+EJ ZU8xy4muRSyJm/F7lTBUvjILlSahZmC04SQdiZorIA1Av1Cx4UKJ1oQ4N2+Qx6NqcU4h EMPAq03w4DTNb1ERFUbZbgBwzQ3N5SJTKchTcXCGqxBw6j9TWykgE027foAeRB+CcMoL 5LUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=fw41Lej8; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id a15-20020a1709063a4f00b00932f1463036si2105410ejf.283.2023.04.05.07.19.14 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 07:19:14 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=fw41Lej8; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D8A373AA941E for <ouuuleilei@gmail.com>; Wed, 5 Apr 2023 14:09:47 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by sourceware.org (Postfix) with ESMTPS id 726C93856941 for <gcc-patches@gcc.gnu.org>; Wed, 5 Apr 2023 14:05:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 726C93856941 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wm1-x32b.google.com with SMTP id l15-20020a05600c4f0f00b003ef6d684102so18505961wmq.3 for <gcc-patches@gcc.gnu.org>; Wed, 05 Apr 2023 07:05:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1680703539; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=sMkoscIEeOuQXRmkTvqa/38owLhMvajHs7aIBsVJ9QA=; b=fw41Lej8h732HYZ6AYZecvoOAXMVfANQao6UK/BScFO6nNkamo0p1oUuKvrKb+PTig qEb0PfcZBo3Wh5F4dwF+1bSq7XDm2MEY2X0CqUFM8ewcUvVq5llKAfFk6x4+zFnGfbct bt08fmwl4R+vRgA8fFbUQPCsjHQnLiBUj8V+78HvUnT638keBYrON7XdDMp8Ab4lEQ0a 3aXOOYHbFlOYuhLBZIIlW9J0LyGJ6eJXtOLPca+/5nPrXoTpmMrWInxHWlUY+xOHtxOJ 06hETBCFUx1MhnFX8zJiVfS5ugApqJ8jMoiIl2Rr4jM3Xqeh50GAuZXrhSs4VeD091o3 i7dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680703539; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sMkoscIEeOuQXRmkTvqa/38owLhMvajHs7aIBsVJ9QA=; b=Ltq5BsQlYxK7sd5QStb+bRP7UVbgEH7W9UHpoF2XXs1P5pJJbfTKINtu9lcPFdJB1e mUu67qYPe38X/+931j/bh4OyJzFfM4CACb2ncihgT5i+Q1OJAGflgPhGZQEDRHf3Frs2 /qpGDm1/9PiO48f+P0VarUbFhZvGK6y4v3f1QtBQIy5XoH57rqljm/hOUbxiAGj+kBIz Oh82AzYOqGCfD8S3MKHD6dIuokRBsL+oWyCOrRreAzlZPXEvfWsdm0TK8Zp4YADXXOLW eIDRhc6NUj5rZXFdqO6ydBjcmkR4SgLD3cruZ1nCzIFAsjFeCN0v3qg0qXdwLUoW3QvF 6t7A== X-Gm-Message-State: AAQBX9c8A586FgL6hbMxDabAcp8IEm5oJjbu0xBxXbKMIFZAyiRDODjX L7G7uXzrtU8hIxwYAx2qI6fOf4omN3n+s3eh9g== X-Received: by 2002:a05:600c:2202:b0:3eb:f59f:6daf with SMTP id z2-20020a05600c220200b003ebf59f6dafmr4786204wml.34.1680703538961; Wed, 05 Apr 2023 07:05:38 -0700 (PDT) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id ay8-20020a05600c1e0800b003edddae1068sm2330150wmb.9.2023.04.05.07.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 07:05:38 -0700 (PDT) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Owen Avery <powerboat9.gamer@gmail.com> Subject: [committed 16/88] gccrs: Add get_item method for HIR::GroupedPattern Date: Wed, 5 Apr 2023 16:03:00 +0200 Message-Id: <20230405140411.3016563-17-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230405140411.3016563-1-arthur.cohen@embecosm.com> References: <20230405140411.3016563-1-arthur.cohen@embecosm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-14.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Reply-To: arthur.cohen@embecosm.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762346249052411393?= X-GMAIL-MSGID: =?utf-8?q?1762346249052411393?= |
Series |
[committed,01/88] gccrs: fatal_error_flag: Fix typo in error message
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Arthur Cohen
April 5, 2023, 2:03 p.m. UTC
From: Owen Avery <powerboat9.gamer@gmail.com> gcc/rust/ChangeLog: * hir/tree/rust-hir-pattern.h: Add get_item method. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com> --- gcc/rust/hir/tree/rust-hir-pattern.h | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/gcc/rust/hir/tree/rust-hir-pattern.h b/gcc/rust/hir/tree/rust-hir-pattern.h index 80fa9b791a7..b7a230c526f 100644 --- a/gcc/rust/hir/tree/rust-hir-pattern.h +++ b/gcc/rust/hir/tree/rust-hir-pattern.h @@ -1269,6 +1269,12 @@ public: return PatternType::GROUPED; } + std::unique_ptr<Pattern> &get_item () { return pattern_in_parens; } + const std::unique_ptr<Pattern> &get_item () const + { + return pattern_in_parens; + } + protected: /* Use covariance to implement clone function as returning this object rather * than base */