diff options
| author | Michael Hewson <michael@michaelhewson.ca> | 2017-12-11 18:17:50 +0100 |
|---|---|---|
| committer | Michael Hewson <michael@michaelhewson.ca> | 2017-12-17 10:13:09 +0100 |
| commit | 8aac984e408272cb3bd40c7cdda41c4842b7edad (patch) | |
| tree | a13320401b9c8c59fbf7a96e8a340d5257403cab | |
| parent | cb9f552b7c1b2e7a13d4d8419e39ed186a26c80d (diff) | |
| download | rust-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.rs | 1 |
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)), |
