Rustup to rustc 1.35.0-nightly (52e885628 2019-03-15)

This commit is contained in:
bjorn3 2019-03-16 10:54:02 +01:00
parent 06c109a0e2
commit 788d8cec93

View File

@ -64,7 +64,7 @@ pub fn clif_type_from_ty<'a, 'tcx: 'a>(
return None;
}
}
ty::Param(_) => bug!("{:?}: {:?}", ty, ty.sty),
ty::Param(_) => bug!("ty param {:?}", ty),
_ => return None,
})
}
@ -335,7 +335,7 @@ impl<'a, 'tcx: 'a> CPlace<'tcx> {
// &'a T -> &'b T is allowed
}
(ty::Ref(_, _, MutImmutable), ty::Ref(_, _, MutMutable)) => {
panic!("Cant assign value of type {} to place of type {}", from_ty.sty, to_ty.sty)
panic!("Cant assign value of type {} to place of type {}", from_ty, to_ty)
}
(ty::FnPtr(_), ty::FnPtr(_)) => {
let from_sig = fx.tcx.normalize_erasing_late_bound_regions(
@ -374,8 +374,8 @@ impl<'a, 'tcx: 'a> CPlace<'tcx> {
from_ty,
to_ty,
"Can't write value with incompatible type {:?} to place with type {:?}\n\n{:#?}",
from_ty.sty,
to_ty.sty,
from_ty,
to_ty,
fx,
);
}