Skip to content

Commit 788d8ce

Browse files
committed
Rustup to rustc 1.35.0-nightly (52e885628 2019-03-15)
1 parent 06c109a commit 788d8ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/common.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub fn clif_type_from_ty<'a, 'tcx: 'a>(
6464
return None;
6565
}
6666
}
67-
ty::Param(_) => bug!("{:?}: {:?}", ty, ty.sty),
67+
ty::Param(_) => bug!("ty param {:?}", ty),
6868
_ => return None,
6969
})
7070
}
@@ -335,7 +335,7 @@ impl<'a, 'tcx: 'a> CPlace<'tcx> {
335335
// &'a T -> &'b T is allowed
336336
}
337337
(ty::Ref(_, _, MutImmutable), ty::Ref(_, _, MutMutable)) => {
338-
panic!("Cant assign value of type {} to place of type {}", from_ty.sty, to_ty.sty)
338+
panic!("Cant assign value of type {} to place of type {}", from_ty, to_ty)
339339
}
340340
(ty::FnPtr(_), ty::FnPtr(_)) => {
341341
let from_sig = fx.tcx.normalize_erasing_late_bound_regions(
@@ -374,8 +374,8 @@ impl<'a, 'tcx: 'a> CPlace<'tcx> {
374374
from_ty,
375375
to_ty,
376376
"Can't write value with incompatible type {:?} to place with type {:?}\n\n{:#?}",
377-
from_ty.sty,
378-
to_ty.sty,
377+
from_ty,
378+
to_ty,
379379
fx,
380380
);
381381
}

0 commit comments

Comments
 (0)