From patchwork Wed Apr 5 14:03:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 79711 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp360491vqo; Wed, 5 Apr 2023 07:43:47 -0700 (PDT) X-Google-Smtp-Source: AKy350bosZ5m6y/qcZVxOfqIxuzCp311LPQ0TIrniRrWhpxGuI6rIv3wjBgDcG/mcXYJjKuOcweG X-Received: by 2002:a05:6402:654:b0:502:3ff1:2fcc with SMTP id u20-20020a056402065400b005023ff12fccmr2242300edx.35.1680705826846; Wed, 05 Apr 2023 07:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680705826; cv=none; d=google.com; s=arc-20160816; b=UFLuJb4K6JIz2speb2aFl9+DlY3hVeTHKpst7a4iMATJH/vQ5Wg2EyPEV8Fuwu9DXp 32tM90rccRXorSIk913tsYD+MUbInShW8Was7QeEu1keQhXC2b2u3Ds+tkmBPoCJLgEj B0aJ3vFIZZymWL4xOdXSpcifwD5QOgGZx6vy9CPHZLMxJ6Znd+9AwRcaB/67vAow0XrY s2OgRb4Mcr+qZSwzrmZu8F9MTzYjQKRm+HJ5J/nu+6/NWscuyomaPtI6YdQbI0SyP46A PJUjaRANPK0xzmo/0fA/7b+hl++FLZ+MSMiZ8tg3AWuiUMR8mN6V0kW8TZzL03Yq+SKf h5lg== 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=Mb5qvdVslh7GngkFDLyFsB3O6jm5Rm0uvdDwzPQkvXY=; b=n55kftgXp4HGaU0OmJvPXe5xgRtjej2FsLD+vXsp5mDSBl2PzlcXROmMxH3egP448r Avm+LrcDIRiUOfic1yipShZ/IU51DxeziBWc9pj9xasKb/ErVbgKIOPcyTbEoszBciwO jD9xfnQaWCKE4ekc7m03x//pxy63cvswOz4RfYJHRHZZktU8ZvRof72LAEyMeC6G6kHr eeLMqZ0GP6LO+6196AMvwit4trJSah0POhDU7OoJt5iNwjMrTvUrIJKoMrqU+pkDlwj3 XXj8Am3izxJTs6yVGqZz5BF7eqAkarlNEwvAPFqH/1zU/OpixfeunL8ZZCv7BWGdxLB2 AB3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=MrxeTN41; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id d21-20020a50fb15000000b0050245e74178si4945564edq.541.2023.04.05.07.43.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 07:43:46 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=MrxeTN41; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 4DB6539579C1 for ; Wed, 5 Apr 2023 14:15:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org 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 0679E3850417 for ; Wed, 5 Apr 2023 14:06:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0679E3850417 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-x32c.google.com with SMTP id s13so20939968wmr.4 for ; Wed, 05 Apr 2023 07:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1680703562; 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=Mb5qvdVslh7GngkFDLyFsB3O6jm5Rm0uvdDwzPQkvXY=; b=MrxeTN41UukDiD/bGIQYq47p6T2UonxbST7aCbSKSykbvacc49oeHV8ZGuDj6r4W4d LP6U/Wy5e2FI8DBErx/0yzLVw4ZINrdMDpN9M4wczSBQvnSkjJUi7e2q+rZla2AmxSuQ 4dq8eOXDiCet2nYCKwCPCH8NXHB4icqNIlJcjJ9lOLfHNgym03YfRKvTtlICpAH0Ftfm e4TcSia4zMquCEfd3ye1KlayxWfhlmZbpTrgDJJf+w1aqUmAqebCYztY76uECG/BIQ0I MZyi6zLwhAnUk2Hs3Sv78bFll/jMzIKt2Z0dEQOOJZwdMWkXNemuRhYW5HDqT1KB0QGw HAnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680703562; 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=Mb5qvdVslh7GngkFDLyFsB3O6jm5Rm0uvdDwzPQkvXY=; b=IGfYCh9OKn0PzOnNZVckOO2l8IJ88WPBFlKYViyUQfptvfTCU7eDUMQdBNnBgJ2BPW 9xRGt4BakGog+i8fv5eMG/2laH3aIo6DjOquMT+2RQsA5FQWodbeP0e0UWlqJEqrDFVm kEFzhK3F8sHh4kAMTub3f1Zeg5tkDX8RpI/mOt/ucjoHTka3Saz4tKzCp1BIvHllwh7Y WJpGbnMglxcmU4exPbr7wZ0MG6AUaBGfCsCFLC77X/POCI7gtrrkCvY2xdcfZ1lWQmyQ yvHBrEnwuHClQ9qNDC6q3Tx3cIGaXq/XEWyAWAP+K3+7zTaVsFHVxtrG30vL8tOY5xbr 4apg== X-Gm-Message-State: AAQBX9c5QXRUVtBU2WlIKaN6Fp8rwy7E1MLmyyTzvoNdRmn3K3b1CZ5H ATyZTyvLkra9w/MubYpQlolqXzFTj79Oz4epcg== X-Received: by 2002:a05:600c:290b:b0:3ed:4627:ed09 with SMTP id i11-20020a05600c290b00b003ed4627ed09mr4584920wmd.28.1680703562436; Wed, 05 Apr 2023 07:06:02 -0700 (PDT) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id ay8-20020a05600c1e0800b003edddae1068sm2330150wmb.9.2023.04.05.07.06.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 07:06:02 -0700 (PDT) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Philip Herron Subject: [committed 48/88] gccrs: Add missing param subst callback Date: Wed, 5 Apr 2023 16:03:32 +0200 Message-Id: <20230405140411.3016563-49-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 X-Spam-Status: No, score=-14.6 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: arthur.cohen@embecosm.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762347793473211242?= X-GMAIL-MSGID: =?utf-8?q?1762347793473211242?= From: Philip Herron Signed-off-by: Philip Herron gcc/rust/ChangeLog: * typecheck/rust-tyty-subst.cc: add missing callback --- gcc/rust/typecheck/rust-tyty-subst.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/rust/typecheck/rust-tyty-subst.cc b/gcc/rust/typecheck/rust-tyty-subst.cc index 0e181efb359..7f5bb22687d 100644 --- a/gcc/rust/typecheck/rust-tyty-subst.cc +++ b/gcc/rust/typecheck/rust-tyty-subst.cc @@ -141,6 +141,7 @@ SubstitutionParamMapping::fill_param_ty ( bound.handle_substitions (subst_mappings); param->set_ty_ref (type.get_ref ()); + subst_mappings.on_param_subst (*param, arg); } return true;