Commit 63afe15e authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1832129 - Disable new alloc error panic code. r=emilio

parent 81a55fda
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -17,7 +17,9 @@ fn main() {

    let ver = version().unwrap();
    let max_oom_hook_version = Version::parse("1.71.0-alpha").unwrap();
    let max_alloc_error_panic_version = Version::parse("1.72.0-alpha").unwrap();
    // The new alloc error panic feature was temporarily reverted. We kept the
    // code in tree, but the version here is such that it's effectively never used.
    let max_alloc_error_panic_version = Version::parse("1.71.0-alpha").unwrap();

    if ver < max_oom_hook_version {
        println!("cargo:rustc-cfg=feature=\"oom_with_hook\"");