diff options
| author | Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com> | 2025-03-27 02:06:07 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-27 13:41:58 +0000 |
| commit | 01dbb30d39cf1e7ad534b22ccf81ef018e18f621 (patch) | |
| tree | 8a3745044987d8e2776a390865611406c72c7bee /meta/recipes-devtools/rust/files | |
| parent | 28a077b4aa20760ba0354c04af78017df0bd4d68 (diff) | |
| download | poky-01dbb30d39cf1e7ad534b22ccf81ef018e18f621.tar.gz | |
rust: Oe-selftest changes for rust v1.84.1
Ignore the failing unit test.
The tidy check failed due to a typo, which was already reported and
fixed in the Rust upstream.
Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/8e7734978245522cbbd14e53e08e888faf031ded]
(From OE-Core rev: 94a244a14075ead1b3b5e966c0fe713cd448cad8)
Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust/files')
| -rw-r--r-- | meta/recipes-devtools/rust/files/fix-tidy-check-failure.patch | 19 | ||||
| -rw-r--r-- | meta/recipes-devtools/rust/files/rust-oe-selftest.patch | 12 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/files/fix-tidy-check-failure.patch b/meta/recipes-devtools/rust/files/fix-tidy-check-failure.patch new file mode 100644 index 0000000000..54b4ee690b --- /dev/null +++ b/meta/recipes-devtools/rust/files/fix-tidy-check-failure.patch | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | fix a comment with uneven number of backticks in rustc_mir_build | ||
| 2 | |||
| 3 | Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/8e7734978245522cbbd14e53e08e888faf031ded] | ||
| 4 | |||
| 5 | Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com> | ||
| 6 | --- | ||
| 7 | diff --git a/compiler/rustc_mir_build/src/build/expr/as_rvalue.rs b/compiler/rustc_mir_build/src/build/expr/as_rvalue.rs | ||
| 8 | index 3f89e33778..c66af11845 100644 | ||
| 9 | --- a/compiler/rustc_mir_build/src/build/expr/as_rvalue.rs | ||
| 10 | +++ b/compiler/rustc_mir_build/src/build/expr/as_rvalue.rs | ||
| 11 | @@ -231,7 +231,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> { | ||
| 12 | if range.start <= range.end { BinOp::BitAnd } else { BinOp::BitOr }; | ||
| 13 | |||
| 14 | let mut comparer = |range: u128, bin_op: BinOp| -> Place<'tcx> { | ||
| 15 | - // We can use `ty::TypingEnv::fully_monomorphized()`` here | ||
| 16 | + // We can use `ty::TypingEnv::fully_monomorphized()` here | ||
| 17 | // as we only need it to compute the layout of a primitive. | ||
| 18 | let range_val = Const::from_bits( | ||
| 19 | this.tcx, | ||
diff --git a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch index dd22ced57d..7e5854a62a 100644 --- a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch +++ b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch | |||
| @@ -469,3 +469,15 @@ index 14e6013f96..b670f27ab4 100644 | |||
| 469 | #[cfg_attr(miri, ignore)] | 469 | #[cfg_attr(miri, ignore)] |
| 470 | fn $test_fn_name() { | 470 | fn $test_fn_name() { |
| 471 | $crate::sort::tests::$test_fn_name::<$sort_impl>(); | 471 | $crate::sort::tests::$test_fn_name::<$sort_impl>(); |
| 472 | diff --git a/compiler/rustc_data_structures/src/vec_cache/tests.rs b/compiler/rustc_data_structures/src/vec_cache/tests.rs | ||
| 473 | index a05f274136..0e69b4cb98 100644 | ||
| 474 | --- a/compiler/rustc_data_structures/src/vec_cache/tests.rs | ||
| 475 | +++ b/compiler/rustc_data_structures/src/vec_cache/tests.rs | ||
| 476 | @@ -17,6 +17,7 @@ fn vec_cache_insert_and_check() { | ||
| 477 | } | ||
| 478 | |||
| 479 | #[test] | ||
| 480 | +#[ignore] | ||
| 481 | fn sparse_inserts() { | ||
| 482 | let cache: VecCache<u32, u8, u32> = VecCache::default(); | ||
| 483 | let end = if cfg!(target_pointer_width = "64") && cfg!(target_os = "linux") { | ||
