From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC1B02C11CF; Sat, 13 Jun 2026 14:04:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781359498; cv=none; b=WaG+XWck5mRo3yG4+ez0lmY6Sbm/T3x8rj6T4Y8fQooPqzHS5SIUQxSi9UucKtk3uEfF97zUpda+HLb+RRtU8uxZ36N9li8OVp1jC3QFp87j/YzNoqKrs9kboA2Qakm1LhyaSNAYslheQvg8pCkFElMrFOStNoaD2EHPX2Fj30Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781359498; c=relaxed/simple; bh=M+4VbbtxE38GZWAyRS87cysoap9fmgXD60xaw7q38zA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=i5m78iYyCUvwSMM5DWPQ9XyurO94pYfSxgfwFpgwJL9i3D6oc8zqtHTbyirAHpJT1fq0WTVe+MiddM4xZx/D5FN2CPHTRfRg06pZWeeJ71Tn6zU1TngvAPPCodSKAL14CZ4iuhSthGlfTdpitUxvF9WScWeKqEYkyPoGc+g3xdo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mG/n99od; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mG/n99od" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55E831F000E9; Sat, 13 Jun 2026 14:04:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781359497; bh=cmCR729d0FJUz5zZnROGmCDP3hSzFPkAwgLDlQxVKxE=; h=From:To:Cc:Subject:Date:Reply-To; b=mG/n99odgYxfurlJweNFomapVcbKOsvLlNIvEOhpyIKyreAjDBPFDGdUvOPr8ilh8 bRdhQmNp9d06MWMSKF2LVk1Nl5jO6kLGtWBCQsGp3jD1CY7kXeRoDyNOQDs2FC/06P nMHHbyUzcTOoiLvjYVsVf0mMopoPXsGlZZjIiBIWvd1wLmu4U3wxaRg0V/onhGKAT7 Kz2/arHwP1g+ZGofR5DFi2b6yM5wokERcAPAG17iEEES+QC1XPiwVnZJ4CSzzKTRka c8uVZfkcRZCh8r7uJz93vAHG+5woIP8LNK+1AaQ7XXnFExiG1Xow1iRCX/apDMoIPr nvu2+mv+3BNpg== From: Gary Guo To: Brendan Higgins , David Gow , Rae Moar , Miguel Ojeda , Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Greg Kroah-Hartman , Igor Korotin Cc: rust-for-linux@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] rust: doctest: fix incorrect pattern in replacement Date: Sat, 13 Jun 2026 15:04:29 +0100 Message-ID: <20260613140431.232471-1-gary@kernel.org> X-Mailer: git-send-email 2.54.0 Reply-To: Gary Guo Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Gary Guo The `-> Result<(), impl core::fmt::Debug>` string is generated by rustdoc and by adding "::" into the string it no longer finds anything, and making the line useless. Remove the "::" in the pattern (but keep it in the replacement result). Fixes: de7cd3e4d638 ("rust: use absolute paths in macros referencing core and kernel") Signed-off-by: Gary Guo --- scripts/rustdoc_test_builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rustdoc_test_builder.rs b/scripts/rustdoc_test_builder.rs index f7540bcf595a..2b1f9ba01839 100644 --- a/scripts/rustdoc_test_builder.rs +++ b/scripts/rustdoc_test_builder.rs @@ -49,7 +49,7 @@ fn main() { // Qualify `Result` to avoid the collision with our own `Result` coming from the prelude. let body = body.replace( - &format!("{rustdoc_function_name}() -> Result<(), impl ::core::fmt::Debug> {{"), + &format!("{rustdoc_function_name}() -> Result<(), impl core::fmt::Debug> {{"), &format!( "{rustdoc_function_name}() -> ::core::result::Result<(), impl ::core::fmt::Debug> {{" ), base-commit: abe651837cb394f76d738a7a747322fca3bf17ba -- 2.54.0