have better explanation for relate_types
This commit is contained in:
parent
6f0c5ee2d4
commit
5d753abb30
13 changed files with 40 additions and 34 deletions
|
@ -716,11 +716,9 @@ impl<'a, 'b, 'tcx> TypeVerifier<'a, 'b, 'tcx> {
|
|||
}
|
||||
PlaceTy::from_ty(fty)
|
||||
}
|
||||
ProjectionElem::Subtype(_) => PlaceTy::from_ty(Ty::new_error_with_message(
|
||||
tcx,
|
||||
self.last_span,
|
||||
"ProjectionElem::Subtype shouldn't exist in borrowck",
|
||||
)),
|
||||
ProjectionElem::Subtype(_) => {
|
||||
bug!("ProjectionElem::Subtype shouldn't exist in borrowck")
|
||||
}
|
||||
ProjectionElem::OpaqueCast(ty) => {
|
||||
let ty = self.sanitize_type(place, ty);
|
||||
let ty = self.cx.normalize(ty, location);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue