@@ -1883,7 +1883,7 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
18831883 | BuiltinCandidate { .. }
18841884 | TraitAliasCandidate
18851885 | ObjectCandidate ( _)
1886- | ProjectionCandidate ( .. ) ,
1886+ | ProjectionCandidate ( _ ) ,
18871887 ) => {
18881888 // We have a where clause so don't go around looking
18891889 // for impls. Arbitrarily give param candidates priority
@@ -1893,7 +1893,7 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
18931893 // here (see issue #50825).
18941894 DropVictim :: drop_if ( !is_global ( other_cand) )
18951895 }
1896- ( ObjectCandidate ( _) | ProjectionCandidate ( .. ) , ParamCandidate ( ref victim_cand) ) => {
1896+ ( ObjectCandidate ( _) | ProjectionCandidate ( _ ) , ParamCandidate ( ref victim_cand) ) => {
18971897 // Prefer these to a global where-clause bound
18981898 // (see issue #50825).
18991899 if is_global ( victim_cand) { DropVictim :: Yes } else { DropVictim :: No }
@@ -1921,20 +1921,20 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
19211921 )
19221922 }
19231923
1924- ( ProjectionCandidate ( i, _ ) , ProjectionCandidate ( j, _ ) )
1924+ ( ProjectionCandidate ( i) , ProjectionCandidate ( j) )
19251925 | ( ObjectCandidate ( i) , ObjectCandidate ( j) ) => {
19261926 // Arbitrarily pick the lower numbered candidate for backwards
19271927 // compatibility reasons. Don't let this affect inference.
19281928 DropVictim :: drop_if ( i < j && !has_non_region_infer)
19291929 }
1930- ( ObjectCandidate ( _) , ProjectionCandidate ( .. ) )
1931- | ( ProjectionCandidate ( .. ) , ObjectCandidate ( _) ) => {
1930+ ( ObjectCandidate ( _) , ProjectionCandidate ( _ ) )
1931+ | ( ProjectionCandidate ( _ ) , ObjectCandidate ( _) ) => {
19321932 bug ! ( "Have both object and projection candidate" )
19331933 }
19341934
19351935 // Arbitrarily give projection and object candidates priority.
19361936 (
1937- ObjectCandidate ( _) | ProjectionCandidate ( .. ) ,
1937+ ObjectCandidate ( _) | ProjectionCandidate ( _ ) ,
19381938 ImplCandidate ( ..)
19391939 | AutoImplCandidate
19401940 | ClosureCandidate { .. }
@@ -1964,7 +1964,7 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
19641964 | TraitUpcastingUnsizeCandidate ( _)
19651965 | BuiltinCandidate { .. }
19661966 | TraitAliasCandidate ,
1967- ObjectCandidate ( _) | ProjectionCandidate ( .. ) ,
1967+ ObjectCandidate ( _) | ProjectionCandidate ( _ ) ,
19681968 ) => DropVictim :: No ,
19691969
19701970 ( & ImplCandidate ( other_def) , & ImplCandidate ( victim_def) ) => {
0 commit comments