@@ -115,11 +115,6 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
115115 ImplSource :: Builtin ( BuiltinImplSource :: Misc , data)
116116 }
117117
118- PointerLikeCandidate => {
119- let data = self . confirm_pointer_like_candidate ( obligation) ;
120- ImplSource :: Builtin ( BuiltinImplSource :: Misc , data)
121- }
122-
123118 TraitAliasCandidate => {
124119 let data = self . confirm_trait_alias_candidate ( obligation) ;
125120 ImplSource :: Builtin ( BuiltinImplSource :: Misc , data)
@@ -638,25 +633,6 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
638633 Ok ( nested)
639634 }
640635
641- fn confirm_pointer_like_candidate (
642- & mut self ,
643- obligation : & PolyTraitObligation < ' tcx > ,
644- ) -> PredicateObligations < ' tcx > {
645- debug ! ( ?obligation, "confirm_pointer_like_candidate" ) ;
646- let placeholder_predicate = self . infcx . enter_forall_and_leak_universe ( obligation. predicate ) ;
647- let self_ty = self . infcx . shallow_resolve ( placeholder_predicate. self_ty ( ) ) ;
648- let ty:: Pat ( base, _) = * self_ty. kind ( ) else { bug ! ( ) } ;
649- let cause = obligation. derived_cause ( ObligationCauseCode :: BuiltinDerived ) ;
650-
651- self . collect_predicates_for_types (
652- obligation. param_env ,
653- cause,
654- obligation. recursion_depth + 1 ,
655- placeholder_predicate. def_id ( ) ,
656- vec ! [ base] ,
657- )
658- }
659-
660636 fn confirm_trait_alias_candidate (
661637 & mut self ,
662638 obligation : & PolyTraitObligation < ' tcx > ,
0 commit comments