From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id E6C6B385829E for ; Wed, 7 Feb 2024 12:44:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E6C6B385829E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E6C6B385829E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::436 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707309852; cv=none; b=o0FF14+KTyGRq2oXl+/f3KkCpRaXawJZ6a07OvP7NirU1/nMM8Kkc7gbuem+nRU5YchWSXpJWOj+Aj7ihizrlHDhVeBu2/0ULbFRUN3xcwtp4vfYP2q/Nc1Kt/1a6BBzslDaAA/DnQDeEz+vBb4bFvYQGQHyEqGM8G4l/v6BXiw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707309852; c=relaxed/simple; bh=7jGlAiOuDhlRGxSgTLSbIG0OMXR0CF5Ru8NKYIXimM0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=QOcZUqPe3biBVd2ijQoci/xny9OxmFCgXCGqlPZbxju7BaQfQCCn8h0ehJFZli8ZHcRNcrNa3eosuiDNcwZg75pAkgbGHnUzdTqMP9/x0EVCp/FcBIdTzYlUjvpl0HLWbGm7YMo/diYZq7dOwdGW6LU7XXtinBHkpvwdnWqrVyQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-339289fead2so460812f8f.3 for ; Wed, 07 Feb 2024 04:44:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1707309843; x=1707914643; darn=gcc.gnu.org; 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=X2jb9ja5+yvg+Ef65ECxi3uNTJ4M7qvNglppHSvLG+4=; b=VXG21n90BuNFC6LTXEzq1/iTv3AufvpzvdFTMNx6797NLKK1HsV+2KsO4hYAJOOHhx v7pF5DJ6d085iMbg+ZNFNvZAT7NcZb9CHOOcCKnBs23d2KXePzEJNUN6elHvhl2BHeG0 GaOO++7fKJAz6oCYKMFwrURoAtAxQZMauBB54kXOYAgnwMXPcIt7EacqJEiaXURA/55i 9av7qyOja8TzJaEvG7lYglnb4ERsbpYELENms5IDR+4MQZRl0ulxQiT6OShElmTzLefE UD5pu+kdaQqqmSIR/ZNTmTM9d/60nqFXe0O1Nlx1X5Wph9j+T7y91tDYlxzGHsQopbep 548A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707309843; x=1707914643; 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=X2jb9ja5+yvg+Ef65ECxi3uNTJ4M7qvNglppHSvLG+4=; b=CfrhURxVjAYEsYknGjCvkRuDzg4ibqAWi/lqxd8Rb4RGaUwzanF8zVPbmspg4ouiwn LNscrC8b1qbgBH1ew4h3KX8jm57/TgWBk+fLE371iPh0Fia1QiwlKJdnTIpNVm1hbOCQ jT3YNbGdqjk+kJQ0Ts9fC609iWbOVa7IxK0FW6li/KHAayqMn5fQzb/pn9rDhKgftMuK 3vJG/KhyyCmSHsJR876BVpAjAIkghn0C4rpuwaq6LxmUxmyoBW0aa5Q1dk7yTRFZhNqq V8VC9oL8qI8vMr5sArNp7XKkbfVJ29EzFUAKU+06NczISAsZq6e4Iq1TFhZVauNvbQQY jtQQ== X-Gm-Message-State: AOJu0YwXB6iz8HjkXK8C+AagS6SUK7kz6jBKMO/m290KYDpOtOxo2pSs RK8SnHkuZXXy7FlqVwHz3iC1ny1tGzB3HyRVqeoSOocft16C/arphOlfvY0RozzyjRSJuedt6Yh BzA== X-Google-Smtp-Source: AGHT+IEBZ3rd70Sm2bEMSdfaZaGvOrrNesuZEXMpnXKxnQU4ofVv2TeieZ7sKW51Hrhhxs5v6fkyYg== X-Received: by 2002:adf:eed2:0:b0:33b:45f7:636b with SMTP id a18-20020adfeed2000000b0033b45f7636bmr3517916wrp.22.1707309843734; Wed, 07 Feb 2024 04:44:03 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUtLcOjoqFqDR6yKI1hmyab8FwEGKLrLIpiherK0tYW3NOi6Y7yfFHJdfykcK/oSRLQCOMglL6vzkJqyeJlxXP0RcE= Received: from platypus.sou.embecosm-corp.com ([212.69.42.53]) by smtp.gmail.com with ESMTPSA id x19-20020a05600c2a5300b0040fbdd6f69bsm5044188wme.33.2024.02.07.04.44.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 04:44:02 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Jakub Dupak Subject: [COMMITTED 05/25] gccrs: HIR: Add mising getter Date: Wed, 7 Feb 2024 12:43:51 +0100 Message-ID: <20240207114419.1100894-6-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20240207114419.1100894-2-arthur.cohen@embecosm.com> References: <20240207114419.1100894-2-arthur.cohen@embecosm.com> Reply-To: arthur.cohen@embecosm.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.4 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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: Jakub Dupak gcc/rust/ChangeLog: * hir/tree/rust-hir-item.h: Add missing getter Signed-off-by: Jakub Dupak --- gcc/rust/hir/tree/rust-hir-item.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/rust/hir/tree/rust-hir-item.h b/gcc/rust/hir/tree/rust-hir-item.h index 74450786e89..1d067fca5be 100644 --- a/gcc/rust/hir/tree/rust-hir-item.h +++ b/gcc/rust/hir/tree/rust-hir-item.h @@ -3062,6 +3062,11 @@ public: // Returns whether item has a where clause. bool has_where_clause () const { return !where_clause.is_empty (); } + WARN_UNUSED_RESULT const WhereClause &get_where_clause () const + { + return where_clause; + } + ExternalFunctionItem ( Analysis::NodeMapping mappings, Identifier item_name, std::vector> generic_params, -- 2.42.1