Rustup to rustc 1.43.0-nightly (442ae7f04 2020-02-06)

This commit is contained in:
bjorn3 2020-02-07 13:49:48 +01:00
parent fbe36ad68a
commit 01f6f40ac2
4 changed files with 15 additions and 6 deletions

View File

@ -41,7 +41,7 @@ const MIN_ALIGN: usize = 8;
target_arch = "sparc64")))]
#[allow(dead_code)]
const MIN_ALIGN: usize = 16;
use core::alloc::{Alloc, GlobalAlloc, AllocErr, Layout};
use core::alloc::{AllocRef, GlobalAlloc, AllocErr, Layout};
use core::ptr::NonNull;
/// The default memory allocator provided by the operating system.
///
@ -70,7 +70,7 @@ use core::ptr::NonNull;
#[stable(feature = "alloc_system_type", since = "1.28.0")]
pub struct System;
#[unstable(feature = "allocator_api", issue = "32838")]
unsafe impl Alloc for System {
unsafe impl AllocRef for System {
#[inline]
unsafe fn alloc(&mut self, layout: Layout) -> Result<NonNull<u8>, AllocErr> {
NonNull::new(GlobalAlloc::alloc(self, layout)).ok_or(AllocErr)

View File

@ -1 +1 @@
nightly-2020-02-01
nightly-2020-02-07

View File

@ -329,6 +329,7 @@ impl<'tcx, B: Backend> BackendTypes for FunctionCx<'_, 'tcx, B> {
type Type = Type;
type Funclet = !;
type DIScope = !;
type DIVariable = !;
}
impl<'tcx, B: Backend + 'static> FunctionCx<'_, 'tcx, B> {

View File

@ -213,11 +213,19 @@ impl CodegenBackend for CraneliftCodegenBackend {
res
}
fn join_codegen_and_link(
fn join_codegen(
&self,
res: Box<dyn Any>,
sess: &Session,
ongoing_codegen: Box<dyn Any>,
_sess: &Session,
_dep_graph: &DepGraph,
) -> Result<Box<dyn Any>, ErrorReported> {
Ok(ongoing_codegen)
}
fn link(
&self,
sess: &Session,
res: Box<dyn Any>,
outputs: &OutputFilenames,
) -> Result<(), ErrorReported> {
use rustc_codegen_ssa::back::link::link_binary;