about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Hewson <michael@michaelhewson.ca>2017-12-11 18:17:50 +0100
committerMichael Hewson <michael@michaelhewson.ca>2017-12-17 10:13:09 +0100
commit8aac984e408272cb3bd40c7cdda41c4842b7edad (patch)
treea13320401b9c8c59fbf7a96e8a340d5257403cab
parentcb9f552b7c1b2e7a13d4d8419e39ed186a26c80d (diff)
downloadrust-8aac984e408272cb3bd40c7cdda41c4842b7edad.tar.gz
rust-8aac984e408272cb3bd40c7cdda41c4842b7edad.zip
Fix ICE in probe::confirm::extract_existential_trait_ref with raw pointer self
-rw-r--r--src/librustc_typeck/check/method/confirm.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_typeck/check/method/confirm.rs b/src/librustc_typeck/check/method/confirm.rs
index 17ed0aaa30b..3a9c4e1901d 100644
--- a/src/librustc_typeck/check/method/confirm.rs
+++ b/src/librustc_typeck/check/method/confirm.rs
@@ -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)),