From patchwork Fri Dec 4 18:00:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: auh@yoctoproject.org X-Patchwork-Id: 107358 Received: from a27-192.smtp-out.us-west-2.amazonses.com (a27-192.smtp-out.us-west-2.amazonses.com [54.240.27.192]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.3175.1796407237584779216 for ; Fri, 04 Dec 2026 10:00:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@yoctoproject.org header.s=lvjh2tk576v2ro5mi6k4dt3mc6wpqbky header.b=NACnNT8O; dkim=pass header.i=@amazonses.com header.s=hsbnp7p3ensaochzwyq5wwmceodymuwv header.b=GB4OjLW3; spf=pass (domain: us-west-2.amazonses.com, ip: 54.240.27.192, mailfrom: 010101a2423718bc-068d0f50-3feb-4523-a549-c7f3bc0a5b60-000000@us-west-2.amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=lvjh2tk576v2ro5mi6k4dt3mc6wpqbky; d=yoctoproject.org; t=1796407237; h=Content-Type:MIME-Version:From:To:Cc:Subject:Message-Id:Date; bh=4I6OKqXOgIx+xn90RTpWFqOX73Mh6yKXxMui0JwzNcs=; b=NACnNT8OLMXt4E9Y9XMhC2CiuHL2N1OM0YihXZHzYTMG4y6KTasIKdJhaS3SJZRX cysVDwmV8Xj0f1NWDdDbGyNjtFhyeigf+0ni1sE1sQhvHxntRdsQ6uLzXqjmcRhHuz2 pzzwoklz8EBsQxLX3Y1lIwUxbuwZX+v4n7A3z5Mw= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=hsbnp7p3ensaochzwyq5wwmceodymuwv; d=amazonses.com; t=1796407237; h=Content-Type:MIME-Version:From:To:Cc:Subject:Message-Id:Date:Feedback-ID; bh=4I6OKqXOgIx+xn90RTpWFqOX73Mh6yKXxMui0JwzNcs=; b=GB4OjLW3Cwi18IelKAP78N3mJHRxwovW1A4UDPvacuWhqJkL+TOUhBq/BL/9Uf60 +0t5Nk5GGyQDf05BXGO3CzDydAT0fPSTQhnbQC2n7BVK8Vsa7VhnO+UesNLPQtB0OKN InTQ7sU/kjqGeE2SzHfZ8Wi7yWuMbeGlMQSnlHCY= MIME-Version: 1.0 From: auh@yoctoproject.org To: Deepesh Varatharajan Cc: openembedded-core@lists.openembedded.org Subject: [AUH] rust-source-1.100.0: upgrading to 1.100.1 FAILED Message-ID: <010101a2423718bc-068d0f50-3feb-4523-a549-c7f3bc0a5b60-000000@us-west-2.amazonses.com> Date: Fri, 4 Dec 2026 18:00:36 +0000 Feedback-ID: ::1.us-west-2.9np3MYPs3fEaOBysGKSlUD4KtcmPijcmS9Az2Hwf7iQ=:AmazonSES X-SES-Outgoing: 2026.12.04-54.240.27.192 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 18:00:40 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/252019 Hello, this email is a notification from the Auto Upgrade Helper that the automatic attempt to upgrade the recipe(s) *rust-source-1.100.0* to *1.100.1* has Failed (devtool error). Detailed error information: The following devtool command failed: finish -f rust-source-1.100.0 /srv/pokybuild/yocto-worker/auh/build/layers/openembedded-core/meta/recipes-devtools/rust NOTE: Reconnecting to bitbake server... Loading cache...done. Loaded 2021 entries from dependency cache. Parsing recipes...done. Parsing of 965 .bb files complete (964 cached, 1 parsed). 2022 targets, 42 skipped, 0 masked, 0 errors. Removing 1 recipes from the x86-64-v3 sysroot...done. WARNING: Specified layer is not currently enabled in bblayers.conf, you will need to add it before this bbappend will be active NOTE: Writing append file /srv/pokybuild/yocto-worker/auh/build/layers/openembedded-core/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source_%.bbappend NOTE: Copying rust-oe-selftest.patch to /srv/pokybuild/yocto-worker/auh/build/layers/openembedded-core/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/rust-oe-selftest.patch NOTE: Copying cc-hash-object-names-relative-to-source-roots.patch to /srv/pokybuild/yocto-worker/auh/build/layers/openembedded-core/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/cc-hash-object-names-relative-to-source-roots.patch NOTE: Copying 0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch to /srv/pokybuild/yocto-worker/auh/build/layers/openembedded-core/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch NOTE: Copying 0002-Fix-rust-build-failure-with-unstable-options.patch to /srv/pokybuild/yocto-worker/auh/build/layers/openembedded-core/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0002-Fix-rust-build-failure-with-unstable-options.patch NOTE: Copying 0003-cargo-omit-host-triple-from-unit-metadata-hash.patch to /srv/pokybuild/yocto-worker/auh/build/layers/openembedded-core/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0003-cargo-omit-host-triple-from-unit-metadata-hash.patch NOTE: Copying 0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch to /srv/pokybuild/yocto-worker/auh/build/layers/openembedded-core/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch NOTE: Copying 0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch to /srv/pokybuild/yocto-worker/auh/build/layers/openembedded-core/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch NOTE: Copying 0006-alloctests-use-thread-local-in-c_str_alloc_error.patch to /srv/pokybuild/yocto-worker/auh/build/layers/openembedded-core/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch INFO: Cleaning sysroot for recipe rust-source-1.100.0... ERROR: Command 'bitbake -c clean rust-source-1.100.0' failed, output: NOTE: Reconnecting to bitbake server... Loading cache...done. Loaded 2022 entries from dependency cache. Parsing recipes... Summary: There were 2 ERROR messages, returning a non-zero exit code. If you wish, you may specify -n/--no-clean to skip running this command when resetting Next steps: - apply the patch: git am 0001-rust-source-1.100.0-upgrade-1.100.0-1.100.1.patch - check the changes to upstream patches and summarize them in the commit message, - compile an image that contains the package - perform some basic sanity tests - amend the patch and sign it off: git commit -s --reset-author --amend - send it to the appropriate mailing list Alternatively, if you believe the recipe should not be upgraded at this time, you can fill RECIPE_NO_UPDATE_REASON in respective recipe file so that automatic upgrades would no longer be attempted. Please review the attached files for further information and build/update failures. Any problem please file a bug at https://bugzilla.yoctoproject.org/enter_bug.cgi?product=Automated%20Update%20Handler Regards, The Upgrade Helper -- >8 -- From db10c2fde4c9c698db5be0f21413c87a8b783fc3 Mon Sep 17 00:00:00 2001 From: Upgrade Helper Date: Fri, 4 Dec 2026 10:59:38 +0000 Subject: [PATCH] rust-source-1.100.0: upgrade 1.100.0 -> 1.100.1 Version 1.100.1 (2026-11-27) ========================== - [library: fix regression where some types were not inferred as having `Iterator` impls]( ) - This backports a change to the unstable `const` version of `Iterator`, which unintentionally caused existing code to not be seen as implementing `Iterator` when a valid implementation was present. - [`Box::into_raw_with_allocator`](https://doc.rust- lang.org/stable/std/boxed/struct.Box.html#method.into_raw_with_allocator) - [`Vec::from_parts_in`](https://doc.rust- lang.org/stable/std/vec/struct.Vec.html#method.from_parts_in) --- ...teps-tool.rs-switch-off-lto-for-rust.patch | 6 +- ...-build-failure-with-unstable-options.patch | 25 +- ...-host-triple-from-unit-metadata-hash.patch | 14 +- ...ess-tests-adjust-for-new-Cargo-lints.patch | 37 +- ...native-sysroot-L-when-cross-building.patch | 4 +- ...se-thread-local-in-c_str_alloc_error.patch | 14 +- ...bject-names-relative-to-source-roots.patch | 8 +- .../rust-oe-selftest.patch | 366 ++++++++++-------- .../rust/rust-source_%.bbappend | 2 + meta/recipes-devtools/rust/rust-snapshot.inc | 70 ---- meta/recipes-devtools/rust/rust-source.inc | 22 -- .../rust/rust-source_1.100.0.bb | 128 ------ 12 files changed, 252 insertions(+), 444 deletions(-) rename meta/recipes-devtools/rust/{files => recipes-devtools/rust/rust-source-1.100.0}/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch (96%) rename meta/recipes-devtools/rust/{files => recipes-devtools/rust/rust-source-1.100.0}/0002-Fix-rust-build-failure-with-unstable-options.patch (82%) rename meta/recipes-devtools/rust/{files => recipes-devtools/rust/rust-source-1.100.0}/0003-cargo-omit-host-triple-from-unit-metadata-hash.patch (88%) rename meta/recipes-devtools/rust/{files => recipes-devtools/rust/rust-source-1.100.0}/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch (93%) rename meta/recipes-devtools/rust/{files => recipes-devtools/rust/rust-source-1.100.0}/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch (95%) rename meta/recipes-devtools/rust/{files => recipes-devtools/rust/rust-source-1.100.0}/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch (87%) rename meta/recipes-devtools/rust/{files => recipes-devtools/rust/rust-source-1.100.0}/cc-hash-object-names-relative-to-source-roots.patch (98%) rename meta/recipes-devtools/rust/{files => recipes-devtools/rust/rust-source-1.100.0}/rust-oe-selftest.patch (80%) create mode 100644 meta/recipes-devtools/rust/recipes-devtools/rust/rust-source_%.bbappend delete mode 100644 meta/recipes-devtools/rust/rust-snapshot.inc delete mode 100644 meta/recipes-devtools/rust/rust-source.inc delete mode 100644 meta/recipes-devtools/rust/rust-source_1.100.0.bb diff --git a/meta/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch similarity index 96% rename from meta/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch rename to meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch index 7482c2a295..0a56645c9e 100644 --- a/meta/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch +++ b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch @@ -1,4 +1,4 @@ -From ce68809d41291f671b440abce41f8f71c95428aa Mon Sep 17 00:00:00 2001 +From a03db2fc50ca155294e7fc7349201478e75aa62a Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Mon, 3 Feb 2025 20:06:46 +0100 Subject: [PATCH] src/core/build_steps/tool.rs: switch off lto for rustdoc @@ -23,7 +23,7 @@ Signed-off-by: Deepesh Varatharajan 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core/build_steps/tool.rs -index c4fae69..7c4e230 100644 +index c4fae69645..7c4e2308bb 100644 --- a/src/bootstrap/src/core/build_steps/tool.rs +++ b/src/bootstrap/src/core/build_steps/tool.rs @@ -13,16 +13,16 @@ use std::ffi::OsStr; @@ -70,7 +70,7 @@ index c4fae69..7c4e230 100644 let pgo_config = match self.path { "src/tools/rustdoc" => Some(&builder.config.rustdoc_pgo), diff --git a/src/bootstrap/src/core/builder/mod.rs b/src/bootstrap/src/core/builder/mod.rs -index c221a97..4af0fda 100644 +index c221a976b2..4af0fda4f9 100644 --- a/src/bootstrap/src/core/builder/mod.rs +++ b/src/bootstrap/src/core/builder/mod.rs @@ -13,7 +13,7 @@ use clap::ValueEnum; diff --git a/meta/recipes-devtools/rust/files/0002-Fix-rust-build-failure-with-unstable-options.patch b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0002-Fix-rust-build-failure-with-unstable-options.patch similarity index 82% rename from meta/recipes-devtools/rust/files/0002-Fix-rust-build-failure-with-unstable-options.patch rename to meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0002-Fix-rust-build-failure-with-unstable-options.patch index 24a22f65ee..18b0f22406 100644 --- a/meta/recipes-devtools/rust/files/0002-Fix-rust-build-failure-with-unstable-options.patch +++ b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0002-Fix-rust-build-failure-with-unstable-options.patch @@ -1,4 +1,7 @@ -Fix build issues seen with Rust-1.95.0 +From 2262242c111767d6cfcadbf1159ed8b95bd8222a Mon Sep 17 00:00:00 2001 +From: Deepesh Varatharajan +Date: Thu, 14 May 2026 23:16:40 -0700 +Subject: [PATCH] Fix build issues seen with Rust-1.95.0 Remove the check that errors out when -Zunstable-options is not provided for custom targets. @@ -10,11 +13,14 @@ this patch only targets the specific enforcement logic without affecting the res Upstream-Status: Inappropriate [Reported at https://github.com/rust-lang/rust/issues/155963] Signed-off-by: Deepesh Varatharajan --- + compiler/rustc_target/src/spec/mod.rs | 15 +++------------ + 1 file changed, 3 insertions(+), 12 deletions(-) + diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs -index b1a9c4b3cde..25a26a9fb12 100644 +index 2d7cd049eb..71a67a6f53 100644 --- a/compiler/rustc_target/src/spec/mod.rs +++ b/compiler/rustc_target/src/spec/mod.rs -@@ -3707,7 +3707,7 @@ impl Target { +@@ -2933,19 +2933,13 @@ impl Target { pub fn search( target_tuple: &TargetTuple, sysroot: &Path, @@ -22,8 +28,8 @@ index b1a9c4b3cde..25a26a9fb12 100644 + _unstable_options: bool, ) -> Result<(Target, TargetWarnings), String> { use std::{env, fs}; - -@@ -3715,12 +3715,6 @@ fn load_file( + + fn load_file( path: &Path, - unstable_options: bool, ) -> Result<(Target, TargetWarnings), String> { @@ -35,8 +41,7 @@ index b1a9c4b3cde..25a26a9fb12 100644 let contents = fs::read_to_string(path).map_err(|e| e.to_string())?; Target::from_json(&contents) } - -@@ -3737,7 +3737,7 @@ impl Target { +@@ -2969,7 +2963,7 @@ impl Target { for dir in env::split_paths(&target_path) { let p = dir.join(&path); if p.is_file() { @@ -44,15 +49,15 @@ index b1a9c4b3cde..25a26a9fb12 100644 + return load_file(&p); } } - -@@ -3750,14 +3750,11 @@ impl Target { + +@@ -2982,14 +2976,11 @@ impl Target { Path::new("target.json"), ]); if p.is_file() { - return load_file(&p, unstable_options); + return load_file(&p); } - + Err(format!("could not find specification for target {target_tuple:?}")) } - TargetTuple::TargetJson { ref contents, .. } if !unstable_options => { diff --git a/meta/recipes-devtools/rust/files/0003-cargo-omit-host-triple-from-unit-metadata-hash.patch b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0003-cargo-omit-host-triple-from-unit-metadata-hash.patch similarity index 88% rename from meta/recipes-devtools/rust/files/0003-cargo-omit-host-triple-from-unit-metadata-hash.patch rename to meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0003-cargo-omit-host-triple-from-unit-metadata-hash.patch index ebd2757e6f..fab5d8f6f4 100644 --- a/meta/recipes-devtools/rust/files/0003-cargo-omit-host-triple-from-unit-metadata-hash.patch +++ b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0003-cargo-omit-host-triple-from-unit-metadata-hash.patch @@ -1,4 +1,4 @@ -From 5c4fd7d8b85f4de5be387777a782fc3ddd1227d8 Mon Sep 17 00:00:00 2001 +From 9e15f4feccef2fd719e58a797584b7f9d14e33c5 Mon Sep 17 00:00:00 2001 From: Alejandro Enedino Hernandez Samaniego Date: Tue, 15 Sep 2026 17:05:36 +0530 Subject: [PATCH] rust: keep the build host triple out of cargo unit metadata @@ -20,14 +20,14 @@ Upstream-Status: Inappropriate [OE-specific] Signed-off-by: Alejandro Enedino Hernandez Samaniego Signed-off-by: Sunil Dora --- - .../core/compiler/build_runner/compilation_files.rs | 10 ++-------- + .../src/compiler/build_runner/compilation_files.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/tools/cargo/src/compiler/build_runner/compilation_files.rs b/src/tools/cargo/src/compiler/build_runner/compilation_files.rs -index 88cab85..9dbd203 100644 +index ee2b6601d3..23d980f40a 100644 --- a/src/tools/cargo/src/compiler/build_runner/compilation_files.rs +++ b/src/tools/cargo/src/compiler/build_runner/compilation_files.rs -@@ -877,7 +877,7 @@ fn has_remap_path_prefix(args: &[String]) -> bool { +@@ -904,7 +904,7 @@ fn has_remap_path_prefix(args: &[String]) -> bool { } /// Hash the version of rustc being used during the build process. @@ -36,7 +36,7 @@ index 88cab85..9dbd203 100644 let vers = &bcx.rustc().version; if vers.pre.is_empty() || bcx.gctx.cli_unstable().separate_nightlies { // For stable, keep the artifacts separate. This helps if someone is -@@ -886,7 +886,7 @@ fn hash_rustc_version(bcx: &BuildContext<'_, '_>, hasher: &mut StableHasher, uni +@@ -913,7 +913,7 @@ fn hash_rustc_version(bcx: &BuildContext<'_, '_>, hasher: &mut StableHasher, uni // omitted since rustc should produce the same output for each target // regardless of the host. for line in bcx.rustc().verbose_version.lines() { @@ -45,7 +45,7 @@ index 88cab85..9dbd203 100644 line.hash(hasher); } } -@@ -899,12 +899,6 @@ fn hash_rustc_version(bcx: &BuildContext<'_, '_>, hasher: &mut StableHasher, uni +@@ -926,12 +926,6 @@ fn hash_rustc_version(bcx: &BuildContext<'_, '_>, hasher: &mut StableHasher, uni // This assumes that the first segment is the important bit ("nightly", // "beta", "dev", etc.). Skip other parts like the `.3` in `-beta.3`. vers.pre.split('.').next().hash(hasher); @@ -58,5 +58,3 @@ index 88cab85..9dbd203 100644 // None of the other lines are important. Currently they are: // binary: rustc <-- or "rustdoc" // commit-hash: 38114ff16e7856f98b2b4be7ab4cd29b38bed59a --- -2.43.0 diff --git a/meta/recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch similarity index 93% rename from meta/recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch rename to meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch index 6580b53af0..6c3d501d3d 100644 --- a/meta/recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch +++ b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch @@ -1,4 +1,4 @@ -From daa24324904fa6aa460a22de733068c8dcb0323d Mon Sep 17 00:00:00 2001 +From 97dd280f05ec0c65b93dab8ad758b031079c1065 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Tue, 29 Sep 2026 08:13:20 -0400 Subject: [PATCH] Re-bless tests / adjust for new Cargo lints @@ -36,6 +36,7 @@ Signed-off-by: Hemanth Kumar M D 18 files changed, 45 insertions(+), 11 deletions(-) diff --git a/compiler/rustc/src/main.rs b/compiler/rustc/src/main.rs +index def8bf4494..e33730d473 100644 --- a/compiler/rustc/src/main.rs +++ b/compiler/rustc/src/main.rs @@ -1,7 +1,7 @@ @@ -48,7 +49,7 @@ diff --git a/compiler/rustc/src/main.rs b/compiler/rustc/src/main.rs #[allow(unused_imports)] use std::process::ExitCode; diff --git a/library/alloc/Cargo.toml b/library/alloc/Cargo.toml -index b32e5e991cc74..a1071d2cde5f0 100644 +index b32e5e991c..a1071d2cde 100644 --- a/library/alloc/Cargo.toml +++ b/library/alloc/Cargo.toml @@ -31,3 +31,7 @@ check-cfg = [ @@ -60,7 +61,7 @@ index b32e5e991cc74..a1071d2cde5f0 100644 +# compiler-builtins is claimed unused? +unused_dependencies = "allow" diff --git a/library/panic_unwind/Cargo.toml b/library/panic_unwind/Cargo.toml -index 72c1041b46795..3b7805a205492 100644 +index 72c1041b46..3b7805a205 100644 --- a/library/panic_unwind/Cargo.toml +++ b/library/panic_unwind/Cargo.toml @@ -18,3 +18,6 @@ unwind = { path = "../unwind" } @@ -71,7 +72,7 @@ index 72c1041b46795..3b7805a205492 100644 +[lints.cargo] +unused_dependencies = "allow" diff --git a/library/std/Cargo.toml b/library/std/Cargo.toml -index 1d35b42a53947..67eebd820ca59 100644 +index 1d35b42a53..67eebd820c 100644 --- a/library/std/Cargo.toml +++ b/library/std/Cargo.toml @@ -167,3 +167,7 @@ check-cfg = [ @@ -83,7 +84,7 @@ index 1d35b42a53947..67eebd820ca59 100644 +# panic_abort is not directly used but must be linked in +unused_dependencies = "allow" diff --git a/library/std_detect/Cargo.toml b/library/std_detect/Cargo.toml -index a6785bb20555d..c03fff827d5cd 100644 +index a6785bb205..c03fff827d 100644 --- a/library/std_detect/Cargo.toml +++ b/library/std_detect/Cargo.toml @@ -24,3 +24,7 @@ libc = { version = "0.2.0", default-features = false } @@ -95,7 +96,7 @@ index a6785bb20555d..c03fff827d5cd 100644 +# libc is definitely used in code but the lint doesn't realize that (unclear why) +unused_dependencies = "allow" diff --git a/library/sysroot/Cargo.toml b/library/sysroot/Cargo.toml -index 10562389d62d3..cef5532857b5e 100644 +index 10562389d6..cef5532857 100644 --- a/library/sysroot/Cargo.toml +++ b/library/sysroot/Cargo.toml @@ -32,3 +32,8 @@ optimize_for_size = ["std/optimize_for_size"] @@ -108,7 +109,7 @@ index 10562389d62d3..cef5532857b5e 100644 +# just an aggregator crate. +unused_dependencies = "allow" diff --git a/src/tools/clippy/clippy_test_deps/Cargo.toml b/src/tools/clippy/clippy_test_deps/Cargo.toml -index 880df6599c1e4..c3d236a17e1bb 100644 +index 880df6599c..c3d236a17e 100644 --- a/src/tools/clippy/clippy_test_deps/Cargo.toml +++ b/src/tools/clippy/clippy_test_deps/Cargo.toml @@ -18,3 +18,7 @@ itertools = "0.15" @@ -120,7 +121,7 @@ index 880df6599c1e4..c3d236a17e1bb 100644 +# Not all tests use all of the above dependencies +unused_dependencies = "allow" diff --git a/src/tools/miri/tests/deps/Cargo.toml b/src/tools/miri/tests/deps/Cargo.toml -index a377141f98aaf..6b6d4a9e2f443 100644 +index a377141f98..6b6d4a9e2f 100644 --- a/src/tools/miri/tests/deps/Cargo.toml +++ b/src/tools/miri/tests/deps/Cargo.toml @@ -37,3 +37,7 @@ windows-sys = { version = "0.61", features = [ @@ -132,7 +133,7 @@ index a377141f98aaf..6b6d4a9e2f443 100644 +# Not all tests use all of the above dependencies +unused_dependencies = "allow" diff --git a/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml b/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml -index 1f9fc93cd5237..ca6818dc0fe25 100644 +index 1f9fc93cd5..ca6818dc0f 100644 --- a/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml +++ b/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml @@ -5,3 +5,7 @@ edition = "2021" @@ -144,7 +145,7 @@ index 1f9fc93cd5237..ca6818dc0fe25 100644 +# panic_abort is not directly used but must be linked in +unused_dependencies = "allow" diff --git a/src/tools/rust-analyzer/Cargo.toml b/src/tools/rust-analyzer/Cargo.toml -index d77e89df45e44..54e82148665b6 100644 +index d77e89df45..54e8214866 100644 --- a/src/tools/rust-analyzer/Cargo.toml +++ b/src/tools/rust-analyzer/Cargo.toml @@ -68,10 +68,8 @@ parser = { path = "./crates/parser", version = "0.0.0" } @@ -169,7 +170,7 @@ index d77e89df45e44..54e82148665b6 100644 # remember to update RUSTFLAGS in ci.yml if you add something here diff --git a/src/tools/rust-analyzer/crates/macros/Cargo.toml b/src/tools/rust-analyzer/crates/macros/Cargo.toml -index 8184cc6d1c03d..b0d0000268588 100644 +index 8184cc6d1c..b0d0000268 100644 --- a/src/tools/rust-analyzer/crates/macros/Cargo.toml +++ b/src/tools/rust-analyzer/crates/macros/Cargo.toml @@ -17,3 +17,6 @@ proc-macro2 = "1" @@ -180,7 +181,7 @@ index 8184cc6d1c03d..b0d0000268588 100644 +[lints] +workspace = true diff --git a/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml b/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml -index 78630ddb4d7d8..668188340e5c8 100644 +index 78630ddb4d..668188340e 100644 --- a/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml +++ b/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml @@ -11,3 +11,6 @@ doctest = false @@ -191,7 +192,7 @@ index 78630ddb4d7d8..668188340e5c8 100644 +[lints] +workspace = true diff --git a/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml b/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml -index 0fa08bbbd0485..f17587e3f556c 100644 +index 0fa08bbbd0..f17587e3f5 100644 --- a/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml +++ b/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml @@ -10,3 +10,6 @@ edition = "2024" @@ -202,7 +203,7 @@ index 0fa08bbbd0485..f17587e3f556c 100644 +[lints] +workspace = true diff --git a/tests/ui/array-slice-vec/vec-res-add.stderr b/tests/ui/array-slice-vec/vec-res-add.stderr -index 6d5ad1d3c9694..4e13dbd0366d0 100644 +index 6d5ad1d3c9..4e13dbd036 100644 --- a/tests/ui/array-slice-vec/vec-res-add.stderr +++ b/tests/ui/array-slice-vec/vec-res-add.stderr @@ -8,7 +8,6 @@ LL | let k = i + j; @@ -214,7 +215,7 @@ index 6d5ad1d3c9694..4e13dbd0366d0 100644 = note: `Vec` is defined in another crate diff --git a/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr b/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr -index ab823c8fc73b9..38440af675feb 100644 +index ab823c8fc7..38440af675 100644 --- a/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr +++ b/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr @@ -123,7 +123,6 @@ LL | V => {} @@ -250,7 +251,7 @@ index ab823c8fc73b9..38440af675feb 100644 = note: `Vec<()>` is not usable in patterns | diff --git a/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr b/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr -index c03137fcc4151..7c176162ad184 100644 +index c03137fcc4..7c176162ad 100644 --- a/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr +++ b/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr @@ -8,7 +8,6 @@ LL | EMPTY => {} @@ -262,7 +263,7 @@ index c03137fcc4151..7c176162ad184 100644 = note: `Vec<()>` is not usable in patterns | diff --git a/tests/ui/pattern/issue-115599.stderr b/tests/ui/pattern/issue-115599.stderr -index 280516deba14b..f776623ff75b2 100644 +index 280516deba..f776623ff7 100644 --- a/tests/ui/pattern/issue-115599.stderr +++ b/tests/ui/pattern/issue-115599.stderr @@ -8,7 +8,6 @@ LL | if let CONST_STRING = empty_str {} @@ -274,7 +275,7 @@ index 280516deba14b..f776623ff75b2 100644 = note: `Vec` is not usable in patterns | diff --git a/tests/ui/pattern/pattern-tyvar-2.stderr b/tests/ui/pattern/pattern-tyvar-2.stderr -index 4761a4e829b85..6676d5129872b 100644 +index 4761a4e829..6676d51298 100644 --- a/tests/ui/pattern/pattern-tyvar-2.stderr +++ b/tests/ui/pattern/pattern-tyvar-2.stderr @@ -8,7 +8,6 @@ LL | fn foo(t: Bar) -> isize { match t { Bar::T1(_, Some(x)) => { return x * 3; diff --git a/meta/recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch similarity index 95% rename from meta/recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch rename to meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch index 8fd17c18f4..01bab937c6 100644 --- a/meta/recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch +++ b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch @@ -1,4 +1,4 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From 75a378f2517a7aeda65bd49c2e269afd742a3d30 Mon Sep 17 00:00:00 2001 From: Hemanth Kumar M D Date: Mon, 16 Nov 2026 03:14:17 -0800 Subject: [PATCH] rustc_llvm: drop native sysroot -L when cross-building @@ -30,7 +30,7 @@ Signed-off-by: Hemanth Kumar M D 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs -index 450b98f..05ff9dc 100644 +index 450b98f20c..05ff9dc5d0 100644 --- a/compiler/rustc_llvm/build.rs +++ b/compiler/rustc_llvm/build.rs @@ -452,7 +452,12 @@ fn main() { diff --git a/meta/recipes-devtools/rust/files/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch similarity index 87% rename from meta/recipes-devtools/rust/files/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch rename to meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch index f213220157..a2c5d60264 100644 --- a/meta/recipes-devtools/rust/files/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch +++ b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch @@ -1,13 +1,16 @@ -From a292cb16d5cfc32923be91c86afaf727682a38dc Mon Sep 17 00:00:00 2001 +From 4b286516e365056eba4831d98a8e4cf696f66495 Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Mon, 16 Nov 2026 09:24:03 -0500 Subject: [PATCH] alloctests: use thread-local in `c_str_alloc_error` Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/a292cb16d5cfc32923be91c86afaf727682a38dc] Signed-off-by: Deepesh Varatharajan +--- + library/alloctests/tests/c_str_alloc_error.rs | 14 ++++++++------ + 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/library/alloctests/tests/c_str_alloc_error.rs b/library/alloctests/tests/c_str_alloc_error.rs -index 1e7d54d75b3..fc572169583 100644 +index 669a783645..0858cb5b87 100644 --- a/library/alloctests/tests/c_str_alloc_error.rs +++ b/library/alloctests/tests/c_str_alloc_error.rs @@ -15,20 +15,22 @@ @@ -36,7 +39,7 @@ index 1e7d54d75b3..fc572169583 100644 return core::ptr::null_mut(); } unsafe { System.alloc(layout) } -@@ -39,7 +41,7 @@ unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { +@@ -39,7 +41,7 @@ unsafe impl GlobalAlloc for OneShotFailingAlloc { } unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { @@ -45,7 +48,7 @@ index 1e7d54d75b3..fc572169583 100644 return core::ptr::null_mut(); } unsafe { System.realloc(ptr, layout, new_size) } -@@ -59,11 +61,11 @@ fn clone_into_alloc_failure_leaves_target_valid() { +@@ -57,11 +59,11 @@ fn clone_into_alloc_failure_leaves_target_valid() { let src = CString::new("a fairly long value").unwrap(); let mut target = CString::new("x").unwrap(); @@ -59,6 +62,3 @@ index 1e7d54d75b3..fc572169583 100644 if cfg!(miri) { assert!(res.is_err(), "clone_into should have unwound on the alloc failure"); --- -2.49.0 - diff --git a/meta/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/cc-hash-object-names-relative-to-source-roots.patch similarity index 98% rename from meta/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch rename to meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/cc-hash-object-names-relative-to-source-roots.patch index e0218bf5ad..379c219d71 100644 --- a/meta/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch +++ b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source-1.100.0/cc-hash-object-names-relative-to-source-roots.patch @@ -1,4 +1,4 @@ -From afb2b50f588cc02042f50aadbd1c28f19bbcd586 Mon Sep 17 00:00:00 2001 +From f6f3a3c21de13d4d978d3c473d86757277c028b5 Mon Sep 17 00:00:00 2001 From: Sunil Dora Date: Tue, 15 Sep 2026 17:05:37 +0530 Subject: [PATCH] cc: hash object names relative to the root the source came @@ -28,7 +28,7 @@ Signed-off-by: Sunil Dora 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/vendor/cc-1.4.3/.cargo-checksum.json b/vendor/cc-1.4.3/.cargo-checksum.json -index cc4144e..a8ab1fc 100644 +index cc4144e63b..a8ab1fc5d9 100644 --- a/vendor/cc-1.4.3/.cargo-checksum.json +++ b/vendor/cc-1.4.3/.cargo-checksum.json @@ -1 +1 @@ @@ -37,7 +37,7 @@ index cc4144e..a8ab1fc 100644 +{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"067dd1727a66bb81a833e7ff9ed732d0a26c4dfb6f78600884cf20cc766b379e",".tombi.toml":"93f57361f60b03b6c14ede301446e5e2658abaa98cac39a4a96be0966b6b851a","CHANGELOG.md":"7e2c9bec874d564ceeedfa88587ab86f45d8a3d3df4a6f6ef19ad3db3997d74e","Cargo.lock":"f309ad15b2b17d7ff090e11005112ad2ed04495da92d8d11f758adb69c87d273","Cargo.toml":"c424f930665aa062f43c448c2837c98f9aad434a95cce4400605b0f2af7c820e","Cargo.toml.orig":"d1fc79a63899b64a816fe5595b403c27ade4612ea58c0e88556c05d307b431f0","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"cc952a506dc726eed3e128d47d62defbac4470bbb0e465f6a043ae8bf0c96d19","clippy.toml":"cf46251b0953d1a3c7a4f8f8941a08d8a416d5fc348dfe3f3c520eb93fcc18ea","src/command_ helpers.rs":"f878c574ad193473ef07d9b41afe4f7c27b735cc33492615a53c7a454aee3cc9","src/detect_compiler_family.c":"97ca4b021495611e828becea6187add37414186a16dfedd26c2947cbce6e8b2f","src/flags.rs":"1a80855f51db6808cdcb5c0e6bd1c0973e86463014082ef7ed1d0fbe7b89cf93","src/lib.rs":"61391623eed3591d6d06977867b7a772348daa1385c1fefd8e82ab8e9adbc71b","src/parallel/async_executor.rs":"4ce24435fff6b6555b43fee042c16bd65d4150d0346567f246b9190d85b45983","src/parallel/command_runner.rs":"1d17d9a037de93b31cc7ee6a914a1e1f6c1ac156cf8619f0014dcbaca6a0b215","src/parallel/job_token.rs":"1aa1ecc639e09845eea0f1e11a76c39ad2604eaac3268059652f56add8890089","src/parallel/mod.rs":"bf156170790d40a76015a8c78cc2a391cbe1b60bb96c1fac1d047d26e342386a","src/parallel/stderr.rs":"b68d728087667fd568921d61cd40d0dc6b56c59bde6e671cb50cb0c43dcdf56d","src/target.rs":"a9d2d347a3a08015531f00b32bc8a7478f5636822cc8e0237ea9efa3f07d4cd4","src/target/apple.rs":"da9411b2c4db419e0fa39f765ee53b8665b3837fb39827679a53238734a4a1c1","src/targe t/generated.rs":"f93008829c57e9da3f5d6ac84643c04d8438a319fe9517533604dfe47e9cb8d7","src/target/llvm.rs":"525680a605fb57e038c3103d3efc9201c1af7b99162adf5dbc399da1d5007efe","src/target/parser.rs":"5ea311fc57b6a6d1aecd7e5433ee5f79b403b58e40be18650fdd81cf514614cb","src/tempfile.rs":"77963fe55b63d3a30cccae46f763b8d61ed722247fe208e8485858770f6a67f7","src/tool.rs":"52a7bc134154fde7fecb1ef691f0179eb617e2f17a10d71dfa71afbcb061555b","src/utilities.rs":"ebb59ac01fb9588bcea0d0ee786e5d5a5696b4284a1245657625db03e830b72e"},"package":"509591b7bcd67f4ef775afad7662703b4935daaa6ec0e5605cfb1090b32a2b6d"} \ No newline at end of file diff --git a/vendor/cc-1.4.3/src/command_helpers.rs b/vendor/cc-1.4.3/src/command_helpers.rs -index 57c49f4..da92b69 100644 +index 57c49f434e..da92b6933b 100644 --- a/vendor/cc-1.4.3/src/command_helpers.rs +++ b/vendor/cc-1.4.3/src/command_helpers.rs @@ -308,9 +308,21 @@ pub(crate) fn objects_from_files(files: &[Arc], dst: &Path) -> Result +Date: Thu, 8 Aug 2024 03:00:33 -0700 +Subject: [PATCH] oeqa/selftest: Add rust selftests + Add "[ignore]" tags to the failing unit tests to ignore them during rust oe-selftest. @@ -8,22 +13,89 @@ Signed-off-by: Yash Shinde Signed-off-by: Peter Tatrai Signed-off-by: Deepesh Varatharajan --- + compiler/rustc/src/main.rs | 3 +++ + compiler/rustc_data_structures/src/tagged_ptr/tests.rs | 1 + + compiler/rustc_data_structures/src/vec_cache/tests.rs | 1 + + compiler/rustc_errors/src/markdown/tests/term.rs | 1 + + compiler/rustc_interface/src/tests.rs | 4 ++++ + library/alloctests/tests/sort/tests.rs | 2 ++ + library/coretests/benches/num/int_log/mod.rs | 1 + + library/std/tests/sync/mutex.rs | 2 ++ + library/std/tests/sync/rwlock.rs | 7 +++++++ + library/std/tests/thread_local/tests.rs | 1 + + library/std_detect/src/detect/os/linux/aarch64/tests.rs | 3 +++ + library/test/src/tests.rs | 1 + + tests/ui/abi/rust-cold-works-with-rustic-args.rs | 1 + + tests/ui/c-variadic/same-program-multiple-abis-arm.rs | 1 + + tests/ui/linking/executable-no-mangle-strip.rs | 2 ++ + tests/ui/no_std/simple-runs.rs | 1 + + 16 files changed, 32 insertions(+) + +diff --git a/compiler/rustc/src/main.rs b/compiler/rustc/src/main.rs +index 17f768f6dc..def8bf4494 100644 +--- a/compiler/rustc/src/main.rs ++++ b/compiler/rustc/src/main.rs +@@ -3,6 +3,7 @@ + // Several crates are depended upon but unused so that they are present in the sysroot + #![expect(unused_crate_dependencies)] + ++#[allow(unused_imports)] + use std::process::ExitCode; + + // A note about jemalloc: rustc uses jemalloc when built for CI and +@@ -33,8 +34,10 @@ use std::process::ExitCode; + // to compare their performance, see + // https://github.com/rust-lang/rust/commit/b90cfc887c31c3e7a9e6d462e2464db1fe506175#diff-43914724af6e464c1da2171e4a9b6c7e607d5bc1203fa95c0ab85be4122605ef + // for an example of how to do so. ++#[cfg(not(test))] + rustc_driver::override_c_allocator_in_binary!(); + ++#[cfg(not(test))] + fn main() -> ExitCode { + rustc_driver::main() + } +diff --git a/compiler/rustc_data_structures/src/tagged_ptr/tests.rs b/compiler/rustc_data_structures/src/tagged_ptr/tests.rs +index e3bbce3e42..e53b476c3e 100644 +--- a/compiler/rustc_data_structures/src/tagged_ptr/tests.rs ++++ b/compiler/rustc_data_structures/src/tagged_ptr/tests.rs +@@ -43,6 +43,7 @@ impl StableHash for Tag2 { + } + + #[test] ++#[ignore] + fn smoke() { + let value = 12u32; + let reference = &value; +diff --git a/compiler/rustc_data_structures/src/vec_cache/tests.rs b/compiler/rustc_data_structures/src/vec_cache/tests.rs +index f12937ad56..68c4855ba7 100644 +--- a/compiler/rustc_data_structures/src/vec_cache/tests.rs ++++ b/compiler/rustc_data_structures/src/vec_cache/tests.rs +@@ -53,6 +53,7 @@ fn vec_cache_insert_and_check() { + } + + #[test] ++#[ignore] + fn sparse_inserts() { + let cache: VecCache = VecCache::default(); + let end = if cfg!(target_pointer_width = "64") && cfg!(target_os = "linux") { diff --git a/compiler/rustc_errors/src/markdown/tests/term.rs b/compiler/rustc_errors/src/markdown/tests/term.rs +index d4cbb8c214..4981d2ffa7 100644 --- a/compiler/rustc_errors/src/markdown/tests/term.rs +++ b/compiler/rustc_errors/src/markdown/tests/term.rs @@ -60,6 +60,7 @@ fn test_wrapping_write() { } - + #[test] +#[ignore] fn test_output() { // Capture `--bless` when run via ./x let bless = std::env::var_os("RUSTC_BLESS").is_some_and(|v| v != "0"); diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs +index 0d584be4ad..f851927dc3 100644 --- a/compiler/rustc_interface/src/tests.rs +++ b/compiler/rustc_interface/src/tests.rs @@ -144,6 +144,7 @@ fn assert_non_crate_hash_different(x: &Options, y: &Options) { - + // When the user supplies --test we should implicitly supply --cfg test #[test] +#[ignore] @@ -31,7 +103,7 @@ diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/sr sess_and_cfg(&["--test"], |_sess, cfg| { assert!(cfg.contains(&(sym::test, None))); @@ -152,6 +153,7 @@ fn test_switch_implies_cfg_test() { - + // When the user supplies --test and --cfg test, don't implicitly add another --cfg test #[test] +#[ignore] @@ -40,17 +112,76 @@ diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/sr let mut test_items = cfg.iter().filter(|&&(name, _)| name == sym::test); @@ -161,6 +163,7 @@ fn test_switch_implies_cfg_test_unless_cfg_test() { } - + #[test] +#[ignore] fn test_can_print_warnings() { sess_and_cfg(&["-Awarnings"], |sess, _cfg| { assert!(!sess.dcx().can_emit_warnings()); +@@ -179,6 +182,7 @@ fn test_can_print_warnings() { + // storing the absolute cwd there invalidates the incremental cache across build + // directories (see #132132). It must instead be applied via `file_path_mapping`. + #[test] ++#[ignore] + fn test_remap_cwd_prefix_not_in_remap_path_prefix() { + sess_and_cfg( + &["--remap-path-prefix=/explicit=mapped", "-Zremap-cwd-prefix=cwd-mapped"], +diff --git a/library/alloctests/tests/sort/tests.rs b/library/alloctests/tests/sort/tests.rs +index ec4c4fa619..50740fa20a 100644 +--- a/library/alloctests/tests/sort/tests.rs ++++ b/library/alloctests/tests/sort/tests.rs +@@ -929,12 +929,14 @@ gen_sort_test_fns_with_default_patterns_3_ty!( + macro_rules! instantiate_sort_test_inner { + ($sort_impl:ty, miri_yes, $test_fn_name:ident) => { + #[test] ++ #[ignore] + fn $test_fn_name() { + $crate::sort::tests::$test_fn_name::<$sort_impl>(); + } + }; + ($sort_impl:ty, miri_no, $test_fn_name:ident) => { + #[test] ++ #[ignore] + #[cfg_attr(miri, ignore)] + fn $test_fn_name() { + $crate::sort::tests::$test_fn_name::<$sort_impl>(); +diff --git a/library/coretests/benches/num/int_log/mod.rs b/library/coretests/benches/num/int_log/mod.rs +index 171d7e31cd..20f6576d41 100644 +--- a/library/coretests/benches/num/int_log/mod.rs ++++ b/library/coretests/benches/num/int_log/mod.rs +@@ -98,6 +98,7 @@ macro_rules! int_log_bench { + } + + #[bench] ++ #[ignore] + fn $geometric(bench: &mut Bencher) { + let bases: [$t; 16] = [2, 3, 4, 5, 7, 8, 9, 15, 16, 17, 31, 32, 33, 63, 64, 65]; + let base_and_numbers: Vec<($t, Vec<$t>)> = bases +diff --git a/library/std/tests/sync/mutex.rs b/library/std/tests/sync/mutex.rs +index 75a6bf6460..4d555df17e 100644 +--- a/library/std/tests/sync/mutex.rs ++++ b/library/std/tests/sync/mutex.rs +@@ -440,6 +440,7 @@ fn test_mutex_arc_poison() { + + #[test] + #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] ++#[ignore] + fn test_mutex_arc_poison_mapped() { + let arc = Arc::new(Mutex::new(1)); + assert!(!arc.is_poisoned()); +@@ -456,6 +457,7 @@ fn test_mutex_arc_poison_mapped() { + + #[test] + #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] ++#[ignore] + fn panic_while_mapping_unlocked_poison() { + let lock = Mutex::new(()); + diff --git a/library/std/tests/sync/rwlock.rs b/library/std/tests/sync/rwlock.rs -index 1a9d3d3f12f..0a9cfc48806 100644 +index 311866dab4..805a5171a1 100644 --- a/library/std/tests/sync/rwlock.rs +++ b/library/std/tests/sync/rwlock.rs -@@ -605,6 +605,7 @@ +@@ -605,6 +605,7 @@ fn test_replace_poison() { #[test] #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] @@ -58,7 +189,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 fn test_rw_arc_poison_wr() { let arc = Arc::new(RwLock::new(1)); let arc2 = arc.clone(); -@@ -618,6 +619,7 @@ +@@ -618,6 +619,7 @@ fn test_rw_arc_poison_wr() { #[test] #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] @@ -66,7 +197,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 fn test_rw_arc_poison_mapped_w_r() { let arc = Arc::new(RwLock::new(1)); let arc2 = arc.clone(); -@@ -632,6 +634,7 @@ +@@ -632,6 +634,7 @@ fn test_rw_arc_poison_mapped_w_r() { #[test] #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] @@ -74,7 +205,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 fn test_rw_arc_poison_ww() { let arc = Arc::new(RwLock::new(1)); assert!(!arc.is_poisoned()); -@@ -646,6 +649,7 @@ +@@ -646,6 +649,7 @@ fn test_rw_arc_poison_ww() { } #[test] @@ -82,7 +213,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] fn test_rw_arc_poison_mapped_w_w() { let arc = Arc::new(RwLock::new(1)); -@@ -662,6 +666,7 @@ +@@ -662,6 +666,7 @@ fn test_rw_arc_poison_mapped_w_w() { #[test] #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] @@ -90,7 +221,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 fn test_rw_arc_no_poison_rr() { let arc = Arc::new(RwLock::new(1)); let arc2 = arc.clone(); -@@ -691,6 +696,7 @@ +@@ -691,6 +696,7 @@ fn test_rw_arc_no_poison_mapped_r_r() { #[test] #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] @@ -98,7 +229,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 fn test_rw_arc_no_poison_rw() { let arc = Arc::new(RwLock::new(1)); let arc2 = arc.clone(); -@@ -794,6 +800,7 @@ +@@ -794,6 +800,7 @@ fn panic_while_mapping_read_unlocked_no_poison() { #[test] #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] @@ -106,105 +237,60 @@ index 1a9d3d3f12f..0a9cfc48806 100644 fn panic_while_mapping_write_unlocked_poison() { let lock = RwLock::new(()); -diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs ---- a/library/test/src/tests.rs -+++ b/library/test/src/tests.rs -@@ -414,6 +414,7 @@ - } - +diff --git a/library/std/tests/thread_local/tests.rs b/library/std/tests/thread_local/tests.rs +index df9b99ef0a..a428652d6e 100644 +--- a/library/std/tests/thread_local/tests.rs ++++ b/library/std/tests/thread_local/tests.rs +@@ -370,6 +370,7 @@ fn join_orders_after_tls_destructors() { + // ** musl: https://github.com/kraj/musl/blob/1880359b54ff7dd9f5016002bfdae4b136007dde/src/thread/pthread_key_create.c#L87 + #[cfg(target_thread_local)] #[test] +#[ignore] - fn test_time_options_threshold() { - let unit = TimeThreshold::new(Duration::from_millis(50), Duration::from_millis(100)); - let integration = TimeThreshold::new(Duration::from_millis(500), Duration::from_millis(1000)); -diff --git a/library/std/tests/sync/mutex.rs b/library/std/tests/sync/mutex.rs ---- a/library/std/tests/sync/mutex.rs -+++ b/library/std/tests/sync/mutex.rs -@@ -440,6 +440,7 @@ + fn thread_current_in_dtor() { + use std::thread::Builder; - #[test] - #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] -+#[ignore] - fn test_mutex_arc_poison_mapped() { - let arc = Arc::new(Mutex::new(1)); - assert!(!arc.is_poisoned()); -@@ -456,6 +457,7 @@ +diff --git a/library/std_detect/src/detect/os/linux/aarch64/tests.rs b/library/std_detect/src/detect/os/linux/aarch64/tests.rs +index 4d7c9a419d..d3ceaaf8f7 100644 +--- a/library/std_detect/src/detect/os/linux/aarch64/tests.rs ++++ b/library/std_detect/src/detect/os/linux/aarch64/tests.rs +@@ -23,6 +23,7 @@ fn baseline_hwcaps() -> AtHwcap { + } #[test] - #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] +#[ignore] - fn panic_while_mapping_unlocked_poison() { - let lock = Mutex::new(()); - -diff --git a/library/coretests/benches/num/int_log/mod.rs b/library/coretests/benches/num/int_log/mod.rs -index 3807cd5d76c..018c5c04456 100644 ---- a/library/coretests/benches/num/int_log/mod.rs -+++ b/library/coretests/benches/num/int_log/mod.rs -@@ -98,6 +98,7 @@ fn $random_small(bench: &mut Bencher) { - } - - #[bench] -+ #[ignore] - fn $geometric(bench: &mut Bencher) { - let bases: [$t; 16] = [2, 3, 4, 5, 7, 8, 9, 15, 16, 17, 31, 32, 33, 63, 64, 65]; - let base_and_numbers: Vec<($t, Vec<$t>)> = bases -diff --git a/compiler/rustc_data_structures/src/tagged_ptr/tests.rs b/compiler/rustc_data_structures/src/tagged_ptr/tests.rs -index 160af8a65d..686f4607bb 100644 ---- a/compiler/rustc_data_structures/src/tagged_ptr/tests.rs -+++ b/compiler/rustc_data_structures/src/tagged_ptr/tests.rs -@@ -43,6 +43,7 @@ use crate::stable_hasher::{HashStable, StableHasher}; + fn linux_empty_hwcap2_aarch64() { + let file = concat!( + env!("CARGO_MANIFEST_DIR"), +@@ -35,6 +36,7 @@ fn linux_empty_hwcap2_aarch64() { + assert_eq!(AtHwcap::from(v), baseline_hwcaps()); } - #[test] +#[ignore] - fn smoke() { - let value = 12u32; - let reference = &value; -diff --git a/library/std/tests/thread_local/tests.rs b/library/std/tests/thread_local/tests.rs -index 9d4f52a092..d425e5f7b7 100644 ---- a/library/std/tests/thread_local/tests.rs -+++ b/library/std/tests/thread_local/tests.rs -@@ -363,6 +363,7 @@ fn join_orders_after_tls_destructors() { - // ** musl: https://github.com/kraj/musl/blob/1880359b54ff7dd9f5016002bfdae4b136007dde/src/thread/pthread_key_create.c#L87 - #[cfg(target_thread_local)] + fn linux_no_hwcap2_aarch64() { + let file = + concat!(env!("CARGO_MANIFEST_DIR"), "/src/detect/test_data/linux-no-hwcap2-aarch64.auxv"); +@@ -45,6 +47,7 @@ fn linux_no_hwcap2_aarch64() { + assert_eq!(AtHwcap::from(v), baseline_hwcaps()); + } #[test] +#[ignore] - fn thread_current_in_dtor() { - use std::thread::Builder; - -diff --git a/library/alloctests/tests/sort/tests.rs b/library/alloctests/tests/sort/tests.rs -index 14e6013f96..b670f27ab4 100644 ---- a/library/alloctests/tests/sort/tests.rs -+++ b/library/alloctests/tests/sort/tests.rs -@@ -929,12 +929,14 @@ gen_sort_test_fns_with_default_patterns_3_ty!( - macro_rules! instantiate_sort_test_inner { - ($sort_impl:ty, miri_yes, $test_fn_name:ident) => { - #[test] -+ #[ignore] - fn $test_fn_name() { - $crate::sort::tests::$test_fn_name::<$sort_impl>(); - } - }; - ($sort_impl:ty, miri_no, $test_fn_name:ident) => { - #[test] -+ #[ignore] - #[cfg_attr(miri, ignore)] - fn $test_fn_name() { - $crate::sort::tests::$test_fn_name::<$sort_impl>(); -diff --git a/compiler/rustc_data_structures/src/vec_cache/tests.rs b/compiler/rustc_data_structures/src/vec_cache/tests.rs -index a05f274136..0e69b4cb98 100644 ---- a/compiler/rustc_data_structures/src/vec_cache/tests.rs -+++ b/compiler/rustc_data_structures/src/vec_cache/tests.rs -@@ -53,6 +53,7 @@ fn vec_cache_insert_and_check() { + fn linux_hwcap2_aarch64() { + let file = + concat!(env!("CARGO_MANIFEST_DIR"), "/src/detect/test_data/linux-hwcap2-aarch64.auxv"); +diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs +index 95fd18e483..4572717c22 100644 +--- a/library/test/src/tests.rs ++++ b/library/test/src/tests.rs +@@ -423,6 +423,7 @@ fn test_exec_time(millis: u64) -> TestExecTime { } - + #[test] +#[ignore] - fn sparse_inserts() { - let cache: VecCache = VecCache::default(); - let end = if cfg!(target_pointer_width = "64") && cfg!(target_os = "linux") { + fn test_time_options_threshold() { + let unit = TimeThreshold::new(Duration::from_millis(50), Duration::from_millis(100)); + let integration = TimeThreshold::new(Duration::from_millis(500), Duration::from_millis(1000)); diff --git a/tests/ui/abi/rust-cold-works-with-rustic-args.rs b/tests/ui/abi/rust-cold-works-with-rustic-args.rs -index 551485469d3..575db924968 100644 +index 94227f71a3..5d996293b9 100644 --- a/tests/ui/abi/rust-cold-works-with-rustic-args.rs +++ b/tests/ui/abi/rust-cold-works-with-rustic-args.rs @@ -1,6 +1,7 @@ @@ -215,8 +301,19 @@ index 551485469d3..575db924968 100644 // We used to not handle all "rustic" ABIs in a (relatively) uniform way, // so we failed to fix up arguments for actually passing through the ABI... #![feature(rust_cold_cc)] +diff --git a/tests/ui/c-variadic/same-program-multiple-abis-arm.rs b/tests/ui/c-variadic/same-program-multiple-abis-arm.rs +index d8209ec016..00e1a72b21 100644 +--- a/tests/ui/c-variadic/same-program-multiple-abis-arm.rs ++++ b/tests/ui/c-variadic/same-program-multiple-abis-arm.rs +@@ -1,5 +1,6 @@ + //@ run-pass + //@ only-arm ++//@ ignore-arm + //@ ignore-thumb (this test uses arm assembly) + //@ only-eabihf (the assembly below requires float hardware support) + diff --git a/tests/ui/linking/executable-no-mangle-strip.rs b/tests/ui/linking/executable-no-mangle-strip.rs -index cc283dc53..73cbab9c0 100644 +index 240c16af67..17085e7d4b 100644 --- a/tests/ui/linking/executable-no-mangle-strip.rs +++ b/tests/ui/linking/executable-no-mangle-strip.rs @@ -1,6 +1,8 @@ @@ -228,36 +325,8 @@ index cc283dc53..73cbab9c0 100644 // Regression test for . // Functions in the binary marked with no_mangle should be GC-ed if they -diff --git a/library/std_detect/src/detect/os/linux/aarch64/tests.rs b/library/std_detect/src/detect/os/linux/aarch64/tests.rs -index a3562f2fd93..d4e52ed91be 100644 ---- a/library/std_detect/src/detect/os/linux/aarch64/tests.rs -+++ b/library/std_detect/src/detect/os/linux/aarch64/tests.rs -@@ -23,6 +23,7 @@ fn baseline_hwcaps() -> AtHwcap { - } - - #[test] -+#[ignore] - fn linux_empty_hwcap2_aarch64() { - let file = concat!( - env!("CARGO_MANIFEST_DIR"), -@@ -35,6 +36,7 @@ fn linux_empty_hwcap2_aarch64() { - assert_eq!(AtHwcap::from(v), baseline_hwcaps()); - } - #[test] -+#[ignore] - fn linux_no_hwcap2_aarch64() { - let file = - concat!(env!("CARGO_MANIFEST_DIR"), "/src/detect/test_data/linux-no-hwcap2-aarch64.auxv"); -@@ -45,6 +47,7 @@ fn linux_no_hwcap2_aarch64() { - assert_eq!(AtHwcap::from(v), baseline_hwcaps()); - } - #[test] -+#[ignore] - fn linux_hwcap2_aarch64() { - let file = - concat!(env!("CARGO_MANIFEST_DIR"), "/src/detect/test_data/linux-hwcap2-aarch64.auxv"); diff --git a/tests/ui/no_std/simple-runs.rs b/tests/ui/no_std/simple-runs.rs -index af44dfe..e6674e5 100644 +index af44dfec31..e6674e5259 100644 --- a/tests/ui/no_std/simple-runs.rs +++ b/tests/ui/no_std/simple-runs.rs @@ -2,6 +2,7 @@ @@ -268,48 +337,3 @@ index af44dfe..e6674e5 100644 //@ ignore-wasm different `main` convention #![feature(lang_items)] -diff --git a/compiler/rustc/src/main.rs b/compiler/rustc/src/main.rs -index 89c61cd..144ea0e 100644 ---- a/compiler/rustc/src/main.rs -+++ b/compiler/rustc/src/main.rs -@@ -3,6 +3,7 @@ - // Several crates are depended upon but unused so that they are present in the sysroot - #![expect(unused_crate_dependencies)] - -+#[allow(unused_imports)] - use std::process::ExitCode; - - // A note about jemalloc: rustc uses jemalloc when built for CI and -@@ -34,8 +34,10 @@ - // to compare their performance, see - // https://github.com/rust-lang/rust/commit/b90cfc887c31c3e7a9e6d462e2464db1fe506175#diff-43914724af6e464c1da2171e4a9b6c7e607d5bc1203fa95c0ab85be4122605ef - // for an example of how to do so. -+#[cfg(not(test))] - rustc_driver::override_c_allocator_in_binary!(); - -+#[cfg(not(test))] - fn main() -> ExitCode { - rustc_driver::main() - } -diff --git a/tests/ui/c-variadic/same-program-multiple-abis-arm.rs b/tests/ui/c-variadic/same-program-multiple-abis-arm.rs -index fbc5573..f259529 100644 ---- a/tests/ui/c-variadic/same-program-multiple-abis-arm.rs -+++ b/tests/ui/c-variadic/same-program-multiple-abis-arm.rs -@@ -1,4 +1,5 @@ - //@ run-pass - //@ only-arm -+//@ ignore-arm - //@ ignore-thumb (this test uses arm assembly) - //@ only-eabihf (the assembly below requires float hardware support) -diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs -index ab69cf5..f0e3fd3 100644 ---- a/compiler/rustc_interface/src/tests.rs -+++ b/compiler/rustc_interface/src/tests.rs -@@ -182,6 +182,7 @@ fn test_can_print_warnings() { - // storing the absolute cwd there invalidates the incremental cache across build - // directories (see #132132). It must instead be applied via `file_path_mapping`. - #[test] -+#[ignore] - fn test_remap_cwd_prefix_not_in_remap_path_prefix() { - sess_and_cfg( - &["--remap-path-prefix=/explicit=mapped", "-Zremap-cwd-prefix=cwd-mapped"], diff --git a/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source_%.bbappend b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source_%.bbappend new file mode 100644 index 0000000000..1b6c91265f --- /dev/null +++ b/meta/recipes-devtools/rust/recipes-devtools/rust/rust-source_%.bbappend @@ -0,0 +1,2 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + diff --git a/meta/recipes-devtools/rust/rust-snapshot.inc b/meta/recipes-devtools/rust/rust-snapshot.inc deleted file mode 100644 index 1082c0d72a..0000000000 --- a/meta/recipes-devtools/rust/rust-snapshot.inc +++ /dev/null @@ -1,70 +0,0 @@ -## This is information on the rust-snapshot (binary) used to build our current release. -## snapshot info is taken from rust/src/stage0 -## Rust is self-hosting and bootstraps itself with a pre-built previous version of itself. -## The exact (previous) version that has been used is specified in the source tarball. -## The version is replicated here. - -SNAPSHOT_VERSION = "1.99.0" - -SRC_URI[rustc-snapshot-aarch64.sha256sum] = "89c0f1a3a44df63c95e5d5f2ba093d0a12c5f5f57f8635f8a7a0ce50cf86600e" -SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "1cf7e2ef58ed1cfa6f1adea18e155cbf254c1951f39e5f5e3376879f55fd64a4" -SRC_URI[cargo-snapshot-aarch64.sha256sum] = "113229fcc16cc1ba004923a4cc275fbf3281dafaaf8b97269f9c00189d497fd4" -SRC_URI[clippy-snapshot-aarch64.sha256sum] = "42e49dc02d29949395c0c072585961f6c9b5408110236087828d4e2f94ca96ef" - -SRC_URI[rustc-snapshot-i686.sha256sum] = "17d94ac00b3a5ae896022aabd9e73fb56f01881c9bd3d5095e08d9c9e608f4ac" -SRC_URI[rust-std-snapshot-i686.sha256sum] = "b13902a225a6109588de09167831da111c70a30bedb2d9b9754d9fb13dc6e558" -SRC_URI[cargo-snapshot-i686.sha256sum] = "a6cdcfd06454695375a3aa89c37b0431b5146d55b1111fc323ac92a15d1d087a" -SRC_URI[clippy-snapshot-i686.sha256sum] = "e3295d8f8fc7658e8135a3fdad3a9f7d7dc34d38540f4efc720502dcf952fc86" - -SRC_URI[rustc-snapshot-loongarch64.sha256sum] = "70e0b964f64c462ebb0b9ef1c4e08c3a87a724fbae16b1ca866127e68d4f5e7d" -SRC_URI[rust-std-snapshot-loongarch64.sha256sum] = "31418c9492c57eff5893f7d80d6cf776d968dfcfe1750be8c2bf2c05b19689d9" -SRC_URI[cargo-snapshot-loongarch64.sha256sum] = "dd5901c5668513c0640fff626aa7fce42d33ceb18afecc91e1163063ea859cd1" -SRC_URI[clippy-snapshot-loongarch64.sha256sum] = "ef24b5ed352469eb5efd9eed4e68928ff684682865a70c5e74c372b5d356f034" - -SRC_URI[rustc-snapshot-powerpc.sha256sum] = "ad672e3d515cfbb33e8e05d4fb15a5dfa745988b9699f5b62d1cb9ba13dde81c" -SRC_URI[rust-std-snapshot-powerpc.sha256sum] = "f2ce1424fc9272a64f358f8d28c72f277f7fa626c256f115daae0ecfa12a8999" -SRC_URI[cargo-snapshot-powerpc.sha256sum] = "a511dd7f315fe6097a12de73c1b4041ae6b5c2880e88ed2afba2b36d79074bf7" -SRC_URI[clippy-snapshot-powerpc.sha256sum] = "bfc3191f0086878a7e72b3362f8a36ccd9bb9a88ad14c122334443b16eb39f28" - -SRC_URI[rustc-snapshot-powerpc64.sha256sum] = "fd891495f63d0aa1168875f8a0160ec1587d2ef6bb83979f03e9aa7c21ca8362" -SRC_URI[rust-std-snapshot-powerpc64.sha256sum] = "8b9ac17c3410a1ca895c2280c839fd1d1df7adcb6435137eb3030bb255ee69cf" -SRC_URI[cargo-snapshot-powerpc64.sha256sum] = "18134aecb63ee24aa980c9843cf24bdaeb9c2dd8aeca832ae5b88ca5d8856981" -SRC_URI[clippy-snapshot-powerpc64.sha256sum] = "388e0748e40ec77ab799806e1f48b615ab8e65220d3c9a6838dfa172bea8b4a0" - -SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "308c82f4c4ba93e7614a27660347ed6b419f3570c5bc1046f73d840b7728dbc9" -SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "8c1a6857ba1be316ff453efc4d2aefd43756ecdb6d549a3d64be7351c4a55bdd" -SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "bbdf0aa56ce2dd7347e9a06861f9bd2d8015e2dadcf80edcb843892efc68174a" -SRC_URI[clippy-snapshot-powerpc64le.sha256sum] = "4ce616ff452ec0491876d00fe1c89fab786b6ce7fd0289c0e0f47da1bfac7039" - -SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "80db2efdcf26ba75b1c38c6da896ff332d1bb6d0fbde6b1d2336a7ea475c6e40" -SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "646847eb1d0b58c55118390a2b1a6af871e4bc581651b5047dcbdfd0a24629f9" -SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "999311c0ee828b3988f16abcd586d1189ebab6d37081197d89a9883c4b7d2134" -SRC_URI[clippy-snapshot-riscv64gc.sha256sum] = "c4ae4e5e03e3ce8c2f2b93a4b59e2f3c8f47a1647de29458f8e26e76079b0d61" - -SRC_URI[rustc-snapshot-s390x.sha256sum] = "b598d8f89ac024fa9839de2393787eb85bed071528236f0a282e8100d852cb4a" -SRC_URI[rust-std-snapshot-s390x.sha256sum] = "ec386455256a3ef1d16bccb02a040cbb6978af565f716fdc26684054b19dd0d0" -SRC_URI[cargo-snapshot-s390x.sha256sum] = "c6f4d75baf64f08a449d89d1f5cacb4e14a3be40a8623a00ea1530a6e3fa9d9e" -SRC_URI[clippy-snapshot-s390x.sha256sum] = "ad97b001f4c73442307434176fc97cdcf7a80820d728f48bebfb31237ca8b55c" - -SRC_URI[rustc-snapshot-x86_64.sha256sum] = "77171ba2a0345fdf2abc4fedda55d6de078dae7a68527c28be8c77dcc9604bd5" -SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "3e58dff2d0b72196b5ea4e90536e174d400de88564a52694686b81e091169933" -SRC_URI[cargo-snapshot-x86_64.sha256sum] = "d7674918d28093097614cd9728b6ca60db9ea3038f640f0bd1e9a4188c7568ce" -SRC_URI[clippy-snapshot-x86_64.sha256sum] = "982442e32ad8dd3f0bb3a30db74038da5f71fd9bf1a865cc71da8ea5d4ec71ec" - -SRC_URI[rust-std-snapshot-i586.sha256sum] = "0d2e0687934fd8f79e75a092e9a4c1240ca8346b61aa22dae0921a3d66274b18" - -SRC_URI[rust-std-snapshot-riscv64a23.sha256sum] = "e63bf434820d6a2f95396428d1659dac8ef915bc1432d730091ae399518d5fbe" - -SRC_URI[rust-std-snapshot-sparc64.sha256sum] = "ef4399ed88f527bb71b937583a7e5bf36177d83fb55b8c58973ae146579c5ed6" - -SRC_URI += " \ - ${RUST_DIST_SERVER}/dist/${RUST_STD_SNAPSHOT}.tar.xz;name=rust-std-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \ - ${RUST_DIST_SERVER}/dist/${RUSTC_SNAPSHOT}.tar.xz;name=rustc-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \ - ${RUST_DIST_SERVER}/dist/${CARGO_SNAPSHOT}.tar.xz;name=cargo-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \ -" - -RUST_DIST_SERVER = "https://static.rust-lang.org" - -RUST_STD_SNAPSHOT = "rust-std-${SNAPSHOT_VERSION}-${RUST_BUILD_ARCH}-unknown-linux-gnu" -RUSTC_SNAPSHOT = "rustc-${SNAPSHOT_VERSION}-${RUST_BUILD_ARCH}-unknown-linux-gnu" -CARGO_SNAPSHOT = "cargo-${SNAPSHOT_VERSION}-${RUST_BUILD_ARCH}-unknown-linux-gnu" diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc deleted file mode 100644 index 94a20a5350..0000000000 --- a/meta/recipes-devtools/rust/rust-source.inc +++ /dev/null @@ -1,22 +0,0 @@ -RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}" - -SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust \ - file://rust-oe-selftest.patch;patchdir=${RUSTSRC} \ - file://cc-hash-object-names-relative-to-source-roots.patch;patchdir=${RUSTSRC} \ - file://0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch;patchdir=${RUSTSRC} \ - file://0002-Fix-rust-build-failure-with-unstable-options.patch;patchdir=${RUSTSRC} \ - file://0003-cargo-omit-host-triple-from-unit-metadata-hash.patch;patchdir=${RUSTSRC} \ - file://0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch;patchdir=${RUSTSRC} \ - file://0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch;patchdir=${RUSTSRC} \ - file://0006-alloctests-use-thread-local-in-c_str_alloc_error.patch;patchdir=${RUSTSRC} \ -" -SRC_URI[rust.sha256sum] = "90dab90b8084eb57c35ae2b1d0b70c8e5138ace6023b22c60a5a400f586f63b2" - -# Point UNPACKDIR into the work-shared location so rust-source.bb and all -# consumers (via S/RUSTSRC) reference a single shared source tree. -UNPACKDIR = "${TMPDIR}/work-shared/rust-source-${PV}-${PR}/sources" -RUSTSRC = "${UNPACKDIR}/rustc-${PV}-src" -S = "${RUSTSRC}" - -UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html" -UPSTREAM_CHECK_REGEX = "rustc-(?P\d+(\.\d+)+)-src" diff --git a/meta/recipes-devtools/rust/rust-source_1.100.0.bb b/meta/recipes-devtools/rust/rust-source_1.100.0.bb deleted file mode 100644 index 5649c3e937..0000000000 --- a/meta/recipes-devtools/rust/rust-source_1.100.0.bb +++ /dev/null @@ -1,128 +0,0 @@ -# rust-source_${PN}.bb - Shared source recipe for the Rust toolchain -# -# This recipe fetches, unpacks, and patches the rustc source tree into a -# work-shared location so that rust, cargo, libstd-rs, and their native/nativesdk -# variants all share a single copy of the source. This eliminates duplication -# (up to 11 copies of the ~4.2 GB source tree in multilib + nativesdk builds) -# and significantly reduces disk usage (~46.2 GB -> ~4.2 GB for rustc-src). -# -# Only do_fetch, do_unpack, and do_patch are meaningful here. All other -# tasks are disabled since this recipe exists solely to provide sources. - -SUMMARY = "Rust sources" -HOMEPAGE = "http://www.rust-lang.org" -SECTION = "devel" -LICENSE = "Unicode-3.0 AND (Apache-2.0 OR MIT)" -LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=11a3899825f4376896e438c8c753f8dc" - -# This recipe only provides source; disable build/install/packaging tasks -deltask do_configure -deltask do_compile -deltask do_install -deltask do_populate_sysroot -deltask do_populate_lic - -# Prevent rm_work from removing the shared source tree -RM_WORK_EXCLUDE += "${PN}" - -require rust-source.inc -require rust-snapshot.inc - -inherit allarch nopackages - -PN = "rust-source-${PV}" -BPN = "rust-source" - -# Place WORKDIR under work-shared so all consumers reference the same location -WORKDIR = "${TMPDIR}/work-shared/rust-source-${PV}-${PR}" -SSTATE_SWSPEC = "sstate:rust-source::${PV}:${PR}::${SSTATE_VERSION}:" - -# Use work-shared stamp directory so sstate is shared across all architectures -STAMP = "${STAMPS_DIR}/work-shared/rust-source-${PV}-${PR}" -STAMPCLEAN = "${STAMPS_DIR}/work-shared/rust-source-${PV}-*" - -DEPENDS = "" -PACKAGES = "" -baselib = "lib" -PACKAGE_ARCH = "all" - -B = "${WORKDIR}/build" - -# rust-source.bb does not inherit rust-common.bbclass (it is allarch/nopackages -# and has no toolchain dependencies), so we define RUST_BUILD_ARCH locally for -# snapshot URL resolution in rust-snapshot.inc. -RUST_BUILD_ARCH = "${@{'ppc': 'powerpc', 'ppc64': 'powerpc64', 'ppc64le': 'powerpc64le', 'riscv64': 'riscv64gc'}.get(d.getVar('BUILD_ARCH'), d.getVar('BUILD_ARCH'))}" - -EXCLUDE_FROM_WORLD = "1" - -addtask do_update_snapshot after do_patch -do_update_snapshot[nostamp] = "1" - -# Run with `bitbake rust-source-${PV} -c update_snapshot` to update `rust-snapshot.inc` -# with the checksums for the rust snapshot associated with this rustc-src tarball. -python do_update_snapshot() { - import json - import re - import sys - - from collections import defaultdict - - key_value_pairs = {} - with open(os.path.join(d.getVar("S"), "src", "stage0")) as f: - for line in f: - # Skip empty lines or comments - if not line.strip() or line.startswith("#"): - continue - # Split the line into key and value using '=' as separator - match = re.match(r'(\S+)\s*=\s*(\S+)', line.strip()) - if match: - key = match.group(1) - value = match.group(2) - key_value_pairs[key] = value - # Extract the required values from key_value_pairs - config_dist_server = key_value_pairs.get('dist_server', '') - compiler_date = key_value_pairs.get('compiler_date', '') - compiler_version = key_value_pairs.get('compiler_version', '') - - src_uri = defaultdict(list) - # Assuming checksums_sha256 is now a key-value pair like: checksum_key = checksum_value - for k, v in key_value_pairs.items(): - # Match the pattern for checksums - if "dist" in k and "tar.xz" in k: - m = re.search(f"dist/{compiler_date}/(?P.*)-{compiler_version}-(?P.*)-unknown-linux-gnu\\.tar\\.xz", k) - if m: - component = m.group('component') - arch = m.group('arch') - src_uri[arch].append(f"SRC_URI[{component}-snapshot-{arch}.sha256sum] = \"{v}\"") - # Create the snapshot string with the extracted values - snapshot = """\ -## This is information on the rust-snapshot (binary) used to build our current release. -## snapshot info is taken from rust/src/stage0 -## Rust is self-hosting and bootstraps itself with a pre-built previous version of itself. -## The exact (previous) version that has been used is specified in the source tarball. -## The version is replicated here. - -SNAPSHOT_VERSION = "%s" - -""" % compiler_version - # Add the checksum components to the snapshot - for arch, components in src_uri.items(): - snapshot += "\n".join(components) + "\n\n" - # Add the additional snapshot URIs - snapshot += """\ -SRC_URI += " \\ - ${RUST_DIST_SERVER}/dist/${RUST_STD_SNAPSHOT}.tar.xz;name=rust-std-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \\ - ${RUST_DIST_SERVER}/dist/${RUSTC_SNAPSHOT}.tar.xz;name=rustc-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \\ - ${RUST_DIST_SERVER}/dist/${CARGO_SNAPSHOT}.tar.xz;name=cargo-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \\ -" - -RUST_DIST_SERVER = "%s" - -RUST_STD_SNAPSHOT = "rust-std-${SNAPSHOT_VERSION}-${RUST_BUILD_ARCH}-unknown-linux-gnu" -RUSTC_SNAPSHOT = "rustc-${SNAPSHOT_VERSION}-${RUST_BUILD_ARCH}-unknown-linux-gnu" -CARGO_SNAPSHOT = "cargo-${SNAPSHOT_VERSION}-${RUST_BUILD_ARCH}-unknown-linux-gnu" -""" % config_dist_server - # Write the updated snapshot information to the rust-snapshot.inc file - with open(os.path.join(d.getVar("THISDIR"), "rust-snapshot.inc"), "w") as f: - f.write(snapshot) -}