diff options
Diffstat (limited to 'devel/electron39/files/patch-build_rust_allocator_lib.rs')
| -rw-r--r-- | devel/electron39/files/patch-build_rust_allocator_lib.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/electron39/files/patch-build_rust_allocator_lib.rs b/devel/electron39/files/patch-build_rust_allocator_lib.rs new file mode 100644 index 000000000000..233a8358dd82 --- /dev/null +++ b/devel/electron39/files/patch-build_rust_allocator_lib.rs @@ -0,0 +1,15 @@ +--- build/rust/allocator/lib.rs.orig 2025-10-21 20:19:54 UTC ++++ 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. + #[rustc_std_internal_symbol] + #[allow(non_upper_case_globals)] |
