Fix ICE in probe::confirm::extract_existential_trait_ref with raw pointer self

This commit is contained in:
Michael Hewson 2017-12-11 18:17:50 +01:00
parent cb9f552b7c
commit 8aac984e40

View File

@ -276,6 +276,7 @@ impl<'a, 'gcx, 'tcx> ConfirmContext<'a, 'gcx, 'tcx> {
// FIXME: this feels, like, super dubious
self.fcx
.autoderef(self.span, self_ty)
.include_raw_pointers()
.filter_map(|(ty, _)| {
match ty.sty {
ty::TyDynamic(ref data, ..) => data.principal().map(|p| closure(self, ty, p)),