summaryrefslogtreecommitdiff
path: root/www-client/chromium/files/chromium-140-rust-1.8x.patch
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2025-07-18 01:43:23 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2025-07-18 01:43:23 -0400
commitc0442cb2498e445fe122b417bff59232eee6d81d (patch)
tree57572fb4803f2e7601960311119fb4b7cee635c2 /www-client/chromium/files/chromium-140-rust-1.8x.patch
parenta123c9a335af9efae13f7ae644ed643632ee1d3e (diff)
downloadppo-c0442cb2498e445fe122b417bff59232eee6d81d.tar.xz
Attempt 2HEADmaster
Diffstat (limited to 'www-client/chromium/files/chromium-140-rust-1.8x.patch')
-rw-r--r--www-client/chromium/files/chromium-140-rust-1.8x.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/www-client/chromium/files/chromium-140-rust-1.8x.patch b/www-client/chromium/files/chromium-140-rust-1.8x.patch
new file mode 100644
index 0000000..84a7ed8
--- /dev/null
+++ b/www-client/chromium/files/chromium-140-rust-1.8x.patch
@@ -0,0 +1,17 @@
+diff --git a/build/rust/allocator/lib.rs b/build/rust/allocator/lib.rs
+index 29b3af1274..142c6e6084 100644
+--- a/build/rust/allocator/lib.rs
++++ b/build/rust/allocator/lib.rs
+@@ -90,6 +90,12 @@ mod both_allocators {
+ #[linkage = "weak"]
+ fn __rust_no_alloc_shim_is_unstable_v2() {}
+
++ // 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.
+ #[rustc_std_internal_symbol]
+ #[allow(non_upper_case_globals)]