Upgrade to rustc 1.28.0-nightly (524ad9b9e 2018-05-29)

Fixes https://github.com/servo/servo/issues/20844
This commit is contained in:
Anthony Ramine 2018-05-24 11:28:20 +02:00 committed by Simon Sapin
parent 11a89bcc47
commit a553964123
10 changed files with 9 additions and 16 deletions

View file

@ -17,7 +17,7 @@ pub use platform::*;
mod platform {
extern crate jemalloc_sys as ffi;
use std::alloc::{GlobalAlloc, Layout, Opaque, System};
use std::alloc::{GlobalAlloc, Layout, Opaque};
use std::os::raw::{c_int, c_void};
/// Get the size of a heap block.
@ -94,11 +94,6 @@ mod platform {
let flags = layout_to_flags(layout.align(), new_size);
ffi::rallocx(ptr as *mut _, new_size, flags) as *mut Opaque
}
#[inline]
fn oom(&self) -> ! {
System.oom()
}
}
}