File chromium-142-rust-revert_should_panic.patch of Package chromium

--- chromium-142.0.7444.34/build/rust/allocator/lib.rs	2025/10/22 22:02:11	1.1
+++ chromium-142.0.7444.34/build/rust/allocator/lib.rs	2025/10/22 22:02:46
@@ -102,6 +102,12 @@
     #[linkage = "weak"]
     static __rust_no_alloc_shim_is_unstable: u8 = 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)]
openSUSE Build Service is sponsored by