Fix ICE in probe::confirm::extract_existential_trait_ref with raw pointer self
This commit is contained in:
parent
cb9f552b7c
commit
8aac984e40
@ -276,6 +276,7 @@ impl<'a, 'gcx, 'tcx> ConfirmContext<'a, 'gcx, 'tcx> {
|
|||||||
// FIXME: this feels, like, super dubious
|
// FIXME: this feels, like, super dubious
|
||||||
self.fcx
|
self.fcx
|
||||||
.autoderef(self.span, self_ty)
|
.autoderef(self.span, self_ty)
|
||||||
|
.include_raw_pointers()
|
||||||
.filter_map(|(ty, _)| {
|
.filter_map(|(ty, _)| {
|
||||||
match ty.sty {
|
match ty.sty {
|
||||||
ty::TyDynamic(ref data, ..) => data.principal().map(|p| closure(self, ty, p)),
|
ty::TyDynamic(ref data, ..) => data.principal().map(|p| closure(self, ty, p)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user