summaryrefslogtreecommitdiff
path: root/www-client/chromium/files/chromium-142-rust-1.8x.patch
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2025-09-09 23:39:18 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2025-09-09 23:39:18 -0400
commitcc1dea333322680d136299d2c12aa58622e26251 (patch)
tree76f9b7b30e5ba0bd4c2a2f4178cc5ecda6ebb462 /www-client/chromium/files/chromium-142-rust-1.8x.patch
parent5e9134aa05f5ec31d8aa55861da7873637ebcd6b (diff)
downloadppo-cc1dea333322680d136299d2c12aa58622e26251.tar.xz
chromium-142.0.7393.6?
Diffstat (limited to 'www-client/chromium/files/chromium-142-rust-1.8x.patch')
-rw-r--r--www-client/chromium/files/chromium-142-rust-1.8x.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/www-client/chromium/files/chromium-142-rust-1.8x.patch b/www-client/chromium/files/chromium-142-rust-1.8x.patch
new file mode 100644
index 0000000..e964482
--- /dev/null
+++ b/www-client/chromium/files/chromium-142-rust-1.8x.patch
@@ -0,0 +1,17 @@
+diff --git a/build/rust/allocator/lib.rs b/build/rust/allocator/lib.rs
+index a7fa7a470f..742688567c 100644
+--- a/build/rust/allocator/lib.rs
++++ b/build/rust/allocator/lib.rs
+@@ -96,6 +96,12 @@ mod both_allocators {
+ 0
+ }
+
++ // TODO(crbug.com/422538133) Remove after rolling past
++ // https://github.com/rust-lang/rust/pull/141061
++ #[no_mangle]
++ #[linkage = "weak"]
++ static __rust_no_alloc_shim_is_unstable: u8 = 0;
++
+ // Mangle the symbol name as rustc expects.
+ // TODO(crbug.com/440481922): Remove this after rolling past https://github.com/rust-lang/rust/pull/143387
+ #[rustc_std_internal_symbol]