File tree 2 files changed +4
-9
lines changed
compiler/rustc_trait_selection/src
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>(
161
161
ty : Ty < ' tcx > ,
162
162
) -> Result < Vec < Ty < ' tcx > > , NoSolution > {
163
163
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 ! [ ] ) ,
168
165
169
166
// Implementations are provided in core
170
167
ty:: Uint ( _)
171
168
| ty:: Int ( _)
169
+ | ty:: Infer ( ty:: IntVar ( _) | ty:: FloatVar ( _) )
172
170
| ty:: Bool
173
171
| ty:: Float ( _)
174
172
| ty:: Char
Original file line number Diff line number Diff line change @@ -2118,14 +2118,11 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
2118
2118
use self :: BuiltinImplConditions :: { Ambiguous , None , Where } ;
2119
2119
2120
2120
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 ( ) ) ) ,
2126
2122
2127
2123
ty:: Uint ( _)
2128
2124
| ty:: Int ( _)
2125
+ | ty:: Infer ( ty:: IntVar ( _) | ty:: FloatVar ( _) )
2129
2126
| ty:: Bool
2130
2127
| ty:: Float ( _)
2131
2128
| ty:: Char
You can’t perform that action at this time.
0 commit comments