--- cargo-crates/v8-150.4.0/build/rust/allocator/lib.rs.orig 2006-07-24 01:21:28 UTC +++ cargo-crates/v8-150.4.0/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)]