diff --git a/compiler/rustc_hir_typeck/src/method/probe.rs b/compiler/rustc_hir_typeck/src/method/probe.rs index a9e36d4142c9..f3abfb60fa97 100644 --- a/compiler/rustc_hir_typeck/src/method/probe.rs +++ b/compiler/rustc_hir_typeck/src/method/probe.rs @@ -768,6 +768,8 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> { self.receiver_trait_derefs = step.autoderefs; self.assemble_probe(&step.self_ty); } + // FIXME this isn't good + self.receiver_trait_derefs = 0; } #[instrument(level = "debug", skip(self))]