From patchwork Thu Aug 1 14:56:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 94988 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C7D383864808 for ; Thu, 1 Aug 2024 15:15:35 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by sourceware.org (Postfix) with ESMTPS id 3F0E0385DDFC for ; Thu, 1 Aug 2024 14:59:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3F0E0385DDFC 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 3F0E0385DDFC Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::52a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722524376; cv=none; b=b4fxtOvdUjwaKwAYC8DUKyrjo11N/AXSd1xAFdDjiTx5h/GPAswcv8Mvo/4b/cNim+nl/YUti56JmvL3d6jfI222PDyUJJ70EMxXTrA0SWeERb0X3AFOIfoPk7VplnUhusn6+xm783gYxjUVFMlzYS2jekHElzjkJ0glpO/L5Bs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722524376; c=relaxed/simple; bh=EkVBIRvu2DW4LQjgBBJ0zFhm5QYmsNCb3sveH6yIsGE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=TTufPnXeBP7SNZniY7Xe2tKrzbfCiJYLFEPrbR/j4AeVWaEEOqNbYaPOYRBPT0/waYEvC32tZSG3IM+ivQekZvPt5JuXDWfmH70YnrAbPStnMNqvmLypqM8n4d35JRnHcsZah6J8dm9jVtgucN1Q0kgKYe1uWT7CHP4WOVZ64XY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5a1c49632deso9485667a12.2 for ; Thu, 01 Aug 2024 07:59:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1722524348; x=1723129148; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=M2KIj1Bc/czTAMCxXEbvzc/gSXxJGBz9x7PL6bhQ9n4=; b=Nra2ZSErdW1HGT+/B3EnaWp4PNtP2vSjRv5CGEUxctAa6hoZ3FmLFqasuvunqU54Gf E6K0Q56xxetNZnpVHjfP8ZheEUZ0xJ1F3a2aukTul0rp6Fuo29eq9YBxPSOA3/iBoIov ujA4NNIbNzglQbq+fpmeu/FKm+b2qWrkX2+lknNmTmNmZi7BXQGHsKGB7knIb2J6WAk0 C9y+3KNulwocLPkExIVlkKE3mhQZXIQ3FzCtdlbX2DHefTxsjfxzsOtS+ra6yxNXjpJC SvqMGNrDAAUA+yNWwltIaoCkODPwqSWl/Cr5RDees7mZFi6kQwJXo4gB1VgrwntGBHtV 0gsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722524348; x=1723129148; h=content-transfer-encoding:mime-version: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=M2KIj1Bc/czTAMCxXEbvzc/gSXxJGBz9x7PL6bhQ9n4=; b=fF+mCcM9aI459m0fNepCspe7iEbgOYS8em+/j6c+hKqEs3+sLcgB/4RLfOvJeps8Hl kDV1QW0vT6GqRfAJeSdCRDmL2G+Fq1TSk3sGCgWAcmfriE2QTZDamd6HeqSPw/6LgPQr 2tdGL/Xc8lWXNlXQ2653rjBrcVPAn7EAc5bk0wdMK3Ywb9HG4LwaxICgLFZLAlizVnlV 3NjjsjY4QQ62Kd0kfUuHLtJrdvoBRk2PAQCYP3VCxhOLfSCTJsvSYtxEJneBde1y9kkt jJu4xPjzHVDGCTKaQ83f1DmxCVcs7sIFvJbwvKoUbMU6K9vu0M9x1Y2yVf1N5hPf1zaV 6keg== X-Gm-Message-State: AOJu0YzMaGOWJdLQ1CuI+wrbq/Y/yngc7wtUdnyYp3CYy3r1RdLEuG9j ANkA3tz8OE5ranfNFj0+hPms+/P36hv1KlqM5ZNsx6pOzq3IAwtpa7M6H9xeG1xC95uHAxmaQYU e7+Mf X-Google-Smtp-Source: AGHT+IEphSprE9WJgAO7w6Q9ijDz2xQUZPDj5IwW489ByDUCBR/yNbylNkcrO30gNrFTumzsMsAcgA== X-Received: by 2002:aa7:c692:0:b0:5a1:bda1:3e23 with SMTP id 4fb4d7f45d1cf-5b7f3cc7435mr474042a12.14.1722524347669; Thu, 01 Aug 2024 07:59:07 -0700 (PDT) Received: from platypus.lan ([2a04:cec2:9:dc84:3622:6733:ff49:ee91]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5ac63590592sm10252456a12.25.2024.08.01.07.59.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 07:59:07 -0700 (PDT) From: Arthur Cohen To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Arthur Cohen Subject: [PATCH 046/125] gccrs: macro: Use MacroInvocation's node_id in ExternalItem constructor. Date: Thu, 1 Aug 2024 16:56:42 +0200 Message-ID: <20240801145809.366388-48-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240801145809.366388-2-arthur.cohen@embecosm.com> References: <20240801145809.366388-2-arthur.cohen@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.1 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=ham 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org gcc/rust/ChangeLog: * ast/rust-macro.h: Use proper node id instead of the one in the base Expr class - which is uninitialized. --- gcc/rust/ast/rust-macro.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index 5b9ff3f22c8..507e595e379 100644 --- a/gcc/rust/ast/rust-macro.h +++ b/gcc/rust/ast/rust-macro.h @@ -727,7 +727,7 @@ private: {} MacroInvocation (const MacroInvocation &other) - : TraitItem (other.locus), ExternalItem (Expr::node_id), + : TraitItem (other.locus), ExternalItem (other.node_id), outer_attrs (other.outer_attrs), locus (other.locus), node_id (other.node_id), invoc_data (other.invoc_data), is_semi_coloned (other.is_semi_coloned), kind (other.kind),