@@ -153,36 +153,6 @@ impl<D: Copy + Debug + Eq> SimplifiedTypeGen<D> {
153
153
_ => None ,
154
154
}
155
155
}
156
-
157
- pub fn map_def < U , F > ( self , map : F ) -> SimplifiedTypeGen < U >
158
- where
159
- F : Fn ( D ) -> U ,
160
- U : Copy + Debug + Eq ,
161
- {
162
- match self {
163
- BoolSimplifiedType => BoolSimplifiedType ,
164
- CharSimplifiedType => CharSimplifiedType ,
165
- IntSimplifiedType ( t) => IntSimplifiedType ( t) ,
166
- UintSimplifiedType ( t) => UintSimplifiedType ( t) ,
167
- FloatSimplifiedType ( t) => FloatSimplifiedType ( t) ,
168
- AdtSimplifiedType ( d) => AdtSimplifiedType ( map ( d) ) ,
169
- ForeignSimplifiedType ( d) => ForeignSimplifiedType ( map ( d) ) ,
170
- StrSimplifiedType => StrSimplifiedType ,
171
- ArraySimplifiedType => ArraySimplifiedType ,
172
- SliceSimplifiedType => SliceSimplifiedType ,
173
- RefSimplifiedType ( m) => RefSimplifiedType ( m) ,
174
- PtrSimplifiedType ( m) => PtrSimplifiedType ( m) ,
175
- NeverSimplifiedType => NeverSimplifiedType ,
176
- MarkerTraitObjectSimplifiedType => MarkerTraitObjectSimplifiedType ,
177
- TupleSimplifiedType ( n) => TupleSimplifiedType ( n) ,
178
- TraitSimplifiedType ( d) => TraitSimplifiedType ( map ( d) ) ,
179
- ClosureSimplifiedType ( d) => ClosureSimplifiedType ( map ( d) ) ,
180
- GeneratorSimplifiedType ( d) => GeneratorSimplifiedType ( map ( d) ) ,
181
- GeneratorWitnessSimplifiedType ( n) => GeneratorWitnessSimplifiedType ( n) ,
182
- FunctionSimplifiedType ( n) => FunctionSimplifiedType ( n) ,
183
- PlaceholderSimplifiedType => PlaceholderSimplifiedType ,
184
- }
185
- }
186
156
}
187
157
188
158
/// Given generic arguments from an obligation and an impl,
0 commit comments