This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
compiler/rustc_trait_selection/src Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -161,14 +161,12 @@ pub(in crate::solve) fn instantiate_constituent_tys_for_copy_clone_trait<'tcx>(
161161 ty : Ty < ' tcx > ,
162162) -> Result < Vec < Ty < ' tcx > > , NoSolution > {
163163 match * ty. kind ( ) {
164- ty:: Infer ( ty:: IntVar ( _) | ty:: FloatVar ( _) )
165- | ty:: FnDef ( ..)
166- | ty:: FnPtr ( _)
167- | ty:: Error ( _) => Ok ( vec ! [ ] ) ,
164+ ty:: FnDef ( ..) | ty:: FnPtr ( _) | ty:: Error ( _) => Ok ( vec ! [ ] ) ,
168165
169166 // Implementations are provided in core
170167 ty:: Uint ( _)
171168 | ty:: Int ( _)
169+ | ty:: Infer ( ty:: IntVar ( _) | ty:: FloatVar ( _) )
172170 | ty:: Bool
173171 | ty:: Float ( _)
174172 | ty:: Char
Original file line number Diff line number Diff line change @@ -2118,14 +2118,11 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
21182118 use self :: BuiltinImplConditions :: { Ambiguous , None , Where } ;
21192119
21202120 match * self_ty. kind ( ) {
2121- ty:: Infer ( ty:: IntVar ( _) )
2122- | ty:: Infer ( ty:: FloatVar ( _) )
2123- | ty:: FnDef ( ..)
2124- | ty:: FnPtr ( _)
2125- | ty:: Error ( _) => Where ( ty:: Binder :: dummy ( Vec :: new ( ) ) ) ,
2121+ ty:: FnDef ( ..) | ty:: FnPtr ( _) | ty:: Error ( _) => Where ( ty:: Binder :: dummy ( Vec :: new ( ) ) ) ,
21262122
21272123 ty:: Uint ( _)
21282124 | ty:: Int ( _)
2125+ | ty:: Infer ( ty:: IntVar ( _) | ty:: FloatVar ( _) )
21292126 | ty:: Bool
21302127 | ty:: Float ( _)
21312128 | ty:: Char
You can’t perform that action at this time.
0 commit comments