Skip to content

Commit

Permalink
Fix ICE in probe::confirm::extract_existential_trait_ref with raw poi…
Browse files Browse the repository at this point in the history
…nter self
  • Loading branch information
mikeyhew committed Dec 17, 2017
1 parent cb9f552 commit 8aac984
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_typeck/check/method/confirm.rs
Expand Up @@ -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)),
Expand Down

0 comments on commit 8aac984

Please sign in to comment.