Skip to content

Commit 6e612c5

Browse files
committed
rustc_hir_typeck: match all ty kinds in probe
1 parent 4b9c62b commit 6e612c5

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
@@ -854,7 +854,21 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
854854
| ty::Tuple(..) => {
855855
self.assemble_inherent_candidates_for_incoherent_ty(raw_self_ty, receiver_steps)
856856
}
857-
_ => {}
857+
858+
ty::Alias(..)
859+
| ty::Bound(..)
860+
| ty::Closure(..)
861+
| ty::Coroutine(..)
862+
| ty::CoroutineClosure(..)
863+
| ty::CoroutineWitness(..)
864+
| ty::Dynamic(..)
865+
| ty::Error(..)
866+
| ty::FnDef(..)
867+
| ty::FnPtr(..)
868+
| ty::Infer(..)
869+
| ty::Pat(..)
870+
| ty::Placeholder(..)
871+
| ty::UnsafeBinder(..) => {}
858872
}
859873
}
860874

0 commit comments

Comments
 (0)