--- 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)]