Skip to content

Commit 95d2452

Browse files
committed
rustc_hir_typeck: match all ty kinds in probe
1 parent a78f9aa commit 95d2452

File tree

1 file changed

+15
-1
lines changed
  • compiler/rustc_hir_typeck/src/method

1 file changed

+15
-1
lines changed

compiler/rustc_hir_typeck/src/method/probe.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,21 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
805805
| ty::Tuple(..) => {
806806
self.assemble_inherent_candidates_for_incoherent_ty(raw_self_ty, receiver_steps)
807807
}
808-
_ => {}
808+
809+
ty::Alias(..)
810+
| ty::Bound(..)
811+
| ty::Closure(..)
812+
| ty::Coroutine(..)
813+
| ty::CoroutineClosure(..)
814+
| ty::CoroutineWitness(..)
815+
| ty::Dynamic(..)
816+
| ty::Error(..)
817+
| ty::FnDef(..)
818+
| ty::FnPtr(..)
819+
| ty::Infer(..)
820+
| ty::Pat(..)
821+
| ty::Placeholder(..)
822+
| ty::UnsafeBinder(..) => {}
809823
}
810824
}
811825

0 commit comments

Comments
 (0)