From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E0CDDFF5136 for ; Tue, 7 Apr 2026 19:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zfB2Vo9vdLlwf+b5CQXtw7Z//lquULPDQoRNbd6Zh9Y=; b=r0xKvCeg5sZHSc/abQKIA+BxOs IXoFp430xVCuK7hvguxkLHbZK8o5k2GJAJC1/dy0lH/xqb7H8YrtFZV+u58vgpYLLCfHYKZcNcYGj hse3zbTWYiLS3YBUTiKKPun9md5We6Z/X0EMdK0wcMYnBEhyz9hPRYjR8aoFY5sryklYevWLjba1H y6jLodcqgp2lxHXR3f/ag28zIsvGY3SZatvouWXYX+AiKRWlvoTBmOc97M0EsojJWHZPQeSZmaeXJ Vf/9MYGPJFljOmf4vgdSp7/xb7TwL615OqS4JDtfQvjAYPIroYZAUsZy9N95TjmOngaUJ9+PNLRxv wGahXdHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wACHO-00000007ITq-0pRj; Tue, 07 Apr 2026 19:40:06 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wACHM-00000007IQq-0ZmG; Tue, 07 Apr 2026 19:40:04 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 3BB9C60139; Tue, 7 Apr 2026 19:40:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20F94C2BC9E; Tue, 7 Apr 2026 19:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775590802; bh=G6kWDg5ZKjWvzVWKZlcYhQ5fam5iGV3sa+XLqVTs0uY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sDMsUKs11clmLqRSYOHdYemC/6eCCuTs/nd+pMdQ4HYBrZ2RMECvxE6SXi3Cq7Qt2 Vq2KJvfW5GfXXZgHejEo9PnFH8x8Op63ZSvbJ0vvCU+be1qdWGNKDkx6MVC2iXkJUM qJwNyNeAg2v+RkrnDQoXDazkT2Endo1x/TFg5/uKx/qUeKnEug+ZIa1nMoI5aLlOEY qeo71REji+J04wTIEZliW+iwogjU+a6RnJJQAR1UJJBmXx/1Uxx/C0aQtgyu1LZY3r MsOztoq00b7hebIqtbESUzLc+vPI1CSIyx11Yg+4g+gy6/+6M0uFALPOC0AaMDWpzZ Kfy0Fs+ExLZRQ== Date: Tue, 7 Apr 2026 21:39:30 +0200 From: Nicolas Schier To: Miguel Ojeda Cc: Nathan Chancellor , Danilo Krummrich , Andreas Hindborg , Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Courbot , David Airlie , Simona Vetter , Brendan Higgins , David Gow , Greg Kroah-Hartman , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Christian Brauner , Carlos Llamas , Alice Ryhl , Jonathan Corbet , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Trevor Gross , rust-for-linux@vger.kernel.org, linux-kbuild@vger.kernel.org, Lorenzo Stoakes , Vlastimil Babka , "Liam R . Howlett" , Uladzislau Rezki , linux-block@vger.kernel.org, moderated for non-subscribers , Alexandre Ghiti , linux-riscv@lists.infradead.org, nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Rae Moar , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Nick Desaulniers , Bill Wendling , Justin Stitt , llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Shuah Khan , linux-doc@vger.kernel.org Subject: Re: [PATCH v2 01/33] rust: kbuild: remove `--remap-path-prefix` workarounds Message-ID: Mail-Followup-To: Nicolas Schier , Miguel Ojeda , Nathan Chancellor , Danilo Krummrich , Andreas Hindborg , Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Courbot , David Airlie , Simona Vetter , Brendan Higgins , David Gow , Greg Kroah-Hartman , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Christian Brauner , Carlos Llamas , Alice Ryhl , Jonathan Corbet , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Trevor Gross , rust-for-linux@vger.kernel.org, linux-kbuild@vger.kernel.org, Lorenzo Stoakes , Vlastimil Babka , "Liam R . Howlett" , Uladzislau Rezki , linux-block@vger.kernel.org, moderated for non-subscribers , Alexandre Ghiti , linux-riscv@lists.infradead.org, nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Rae Moar , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Nick Desaulniers , Bill Wendling , Justin Stitt , llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Shuah Khan , linux-doc@vger.kernel.org References: <20260405235309.418950-1-ojeda@kernel.org> <20260405235309.418950-2-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260405235309.418950-2-ojeda@kernel.org> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Apr 06, 2026 at 01:52:37AM +0200, Miguel Ojeda wrote: > Commit 8cf5b3f83614 ("Revert "kbuild, rust: use -fremap-path-prefix > to make paths relative"") removed `--remap-path-prefix` from the build > system, so the workarounds are not needed anymore. > > Thus remove them. > > Note that the flag has landed again in parallel in this cycle in > commit dda135077ecc ("rust: build: remap path to avoid absolute path"), > together with `--remap-path-scope=macro` [1]. However, they are gated on > `rustc-option-yn, --remap-path-scope=macro`, which means they are both > only passed starting with Rust 1.95.0 [2]: > > `--remap-path-scope` is only stable in Rust 1.95, so use `rustc-option` > to detect its presence. This feature has been available as > `-Zremap-path-scope` for all versions that we support; however due to > bugs in the Rust compiler, it does not work reliably until 1.94. I opted > to not enable it for 1.94 as it's just a single version that we missed. > > In turn, that means the workarounds removed here should not be needed > again (even with the flag added again above), since: > > - `rustdoc` now recognizes the `--remap-path-prefix` flag since Rust > 1.81.0 [3] (even if it is still an unstable feature [4]). > > - The Internal Compiler Error [5] that the comment mentions was fixed in > Rust 1.87.0 [6]. We tested that was the case in a previous version > of this series by making the workaround conditional [7][8]. > > ...which are both older versions than Rust 1.95.0. > > We will still need to skip `--remap-path-scope` for `rustdoc` though, > since `rustdoc` does not support that one yet [4]. > > Link: https://github.com/rust-lang/rust/issues/111540 [1] > Link: https://github.com/rust-lang/rust/pull/147611 [2] > Link: https://github.com/rust-lang/rust/pull/107099 [3] > Link: https://doc.rust-lang.org/nightly/rustdoc/unstable-features.html#--remap-path-prefix-remap-source-code-paths-in-output [4] > Link: https://github.com/rust-lang/rust/issues/138520 [5] > Link: https://github.com/rust-lang/rust/pull/138556 [6] > Link: https://lore.kernel.org/rust-for-linux/20260401114540.30108-9-ojeda@kernel.org/ [7] > Link: https://lore.kernel.org/rust-for-linux/20260401114540.30108-10-ojeda@kernel.org/ [8] > Signed-off-by: Miguel Ojeda > --- > rust/Makefile | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > Acked-by: Nicolas Schier -- Nicolas