Files
ports/devel/electron42/files/patch-build_rust_allocator_lib.rs
2026-10-04 04:07:15 +00:00

16 lines
549 B
Rust

--- build/rust/allocator/lib.rs.orig 2026-01-07 00:52:53 UTC
+++ build/rust/allocator/lib.rs
@@ -108,6 +108,12 @@ mod both_allocators {
0
}
+ // TODO(crbug.com/440481922): Remove this after rolling past https://github.com/rust-lang/rust/pull/143387
+ #[rustc_std_internal_symbol]
+ #[allow(non_upper_case_globals)]
+ #[linkage = "weak"]
+ static __rust_alloc_error_handler_should_panic: u8 = 0;
+
// Mangle the symbol name as rustc expects.
#[rustc_std_internal_symbol]
#[allow(non_upper_case_globals)]