Bump to 1.31.0 and bootstrap from 1.30 beta

This commit is contained in:
Josh Stone
2018-09-26 14:26:46 -07:00
parent 7d52cbce6d
commit ce034951fb
71 changed files with 63 additions and 540 deletions

View File

@@ -151,14 +151,12 @@ pub mod __default_lib_allocator {
// ABI
#[rustc_std_internal_symbol]
#[cfg_attr(stage0, no_mangle)]
pub unsafe extern fn __rdl_alloc(size: usize, align: usize) -> *mut u8 {
let layout = Layout::from_size_align_unchecked(size, align);
System.alloc(layout)
}
#[rustc_std_internal_symbol]
#[cfg_attr(stage0, no_mangle)]
pub unsafe extern fn __rdl_dealloc(ptr: *mut u8,
size: usize,
align: usize) {
@@ -166,7 +164,6 @@ pub mod __default_lib_allocator {
}
#[rustc_std_internal_symbol]
#[cfg_attr(stage0, no_mangle)]
pub unsafe extern fn __rdl_realloc(ptr: *mut u8,
old_size: usize,
align: usize,
@@ -176,7 +173,6 @@ pub mod __default_lib_allocator {
}
#[rustc_std_internal_symbol]
#[cfg_attr(stage0, no_mangle)]
pub unsafe extern fn __rdl_alloc_zeroed(size: usize, align: usize) -> *mut u8 {
let layout = Layout::from_size_align_unchecked(size, align);
System.alloc_zeroed(layout)