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
|
||||
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)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user