From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id C759A3858003 for ; Tue, 30 Jan 2024 12:11:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C759A3858003 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 C759A3858003 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706616688; cv=none; b=f6wnoLExsTGY8LXmfqcPuCUmXLXsEEaGDxSusov9lGRuAUAj2bQ2ri55r2NvNDB9Eu3yXI08auVOSa/mBIKks6Ad897xDPPQl5EO9o1ExAd9/mKld0Ew01rQNV7RDWq0AyUswqm9lpX9M4NljxSfmK11wvwJSM3isb7j2SURMlk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706616688; c=relaxed/simple; bh=2UimXqWmNKzhiEE4P+mEnnZsCj90XNplJmJyfnom6qk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=HhnJFiD5nShZK6X5rxQ6z2svQwxejAWlKnr4aMg9kEJuqDbWQCi9Ez/IAO1yW8EKHqY4gJ321w8gWrDdJHewNbolQrmqDiwRk35LQ6gnNyKFIELUrMhWUJq+GGdUZYjVrNuuo+ko8P7r0KbkSW2bvbFhogkHkH16UY9/MSxq0WQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40eacb6067dso52376075e9.1 for ; Tue, 30 Jan 2024 04:11:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1706616674; x=1707221474; 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=E+qMo473AEZ3fsPP5ymBE7WjR7rVHNv82oxqYkfediU=; b=fziryMWRZmqkQKPe1A8t+YJ30DORzLuugy1zkTcRuHv/C0frz1Sk5dxuea0qHIMQse YjZJsR4a4e9j0FCGxjiWH0JXpgzY6LarqRD+8gRxF/4WOSY4a3TV4+Y0ayAJfCvn8gei U+/Sz5MO36oNI/PEBHFma+9RPSiJ8egUGXUdn0jXg3Vu6CUo4oI3HS4qp+eU8dRSRWXW aHCP94GlKkHKPbk9UOVqVXaK/G80qhsJn0GYiEILgJkIgM0hX6GSRxtBPgwxwgjgB2A2 JCYHztLkmoWSOAulyEnAune6pW7FR3dODrx4AW0JMr3bJoep9rk1NND0ky3IZZrVtTMm 52Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706616674; x=1707221474; 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=E+qMo473AEZ3fsPP5ymBE7WjR7rVHNv82oxqYkfediU=; b=D6AuKCsih1/MPccIFHN6PyljPCafxlCiAjjPI9Zr6QRohYg9JBpmLYfKZAXTrhPrMN CBhKblDd70XmCfTX+huG61MSIbI850oxqUkEJJf46V5XWLqnXS0gSV7DFVnzn+YzBeKC oqoPeNiq4vMa3mI+icFDYm+StJ22k/JAnF73xe0N6CEr/LPX/91dE7G8EoJab+SOYVvO xBnfFVixyaF6tGtG0217+fuOq1b/x6sX/dxAi/60NadoJqrH2bNMSPce4gMOnlvRbPMk wZs7HhGxd3B6ZrPwjmyZZ06EXVJvrJT2Bid56+jmttCnNVpEF24EWdCYvlf5NXt2yuGl 9vJw== X-Gm-Message-State: AOJu0Yyu+6kA/XvxQb2YIDS5Xf42KccYFLX+N/T/VjWtSZmo7XhOlrU5 i4EoDD5tMhN1gixrf2y6zSqlTPnZ+SdAOv8obK1bXA/r6X1tSXe6zS93XAc7mQ== X-Google-Smtp-Source: AGHT+IGUszuSSNgwkKyYUno9bXT3O0Z3WpLtHhmiNG9zLV/LvqypXcJBp8lNhpRmu8n9y+y3HlZfPw== X-Received: by 2002:adf:f2c5:0:b0:33a:e525:e91b with SMTP id d5-20020adff2c5000000b0033ae525e91bmr6743182wrp.19.1706616674611; Tue, 30 Jan 2024 04:11:14 -0800 (PST) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id f9-20020a056000036900b00339307d9d31sm10569894wrf.112.2024.01.30.04.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 04:11:14 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Arthur Cohen Subject: [COMMITTED 033/101] gccrs: ctx: Add Labels ForeverStack to the resolver. Date: Tue, 30 Jan 2024 13:06:49 +0100 Message-ID: <20240130121026.807464-36-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20240130121026.807464-2-arthur.cohen@embecosm.com> References: <20240130121026.807464-2-arthur.cohen@embecosm.com> Reply-To: arthur.cohen@embecosm.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,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: Arthur Cohen Not sure if dealing with "labels" is the proper way of doing so, so we might eventually change this to use `resolver.values` later on. gcc/rust/ChangeLog: * resolve/rust-name-resolution-context.h: Add a Labels stack. --- gcc/rust/resolve/rust-name-resolution-context.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/rust/resolve/rust-name-resolution-context.h b/gcc/rust/resolve/rust-name-resolution-context.h index 64db5d1a580..6d14be35986 100644 --- a/gcc/rust/resolve/rust-name-resolution-context.h +++ b/gcc/rust/resolve/rust-name-resolution-context.h @@ -173,6 +173,7 @@ public: ForeverStack values; ForeverStack types; ForeverStack macros; + ForeverStack labels; }; } // namespace Resolver2_0 -- 2.42.1