File tree 2 files changed +0
-10
lines changed
2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ pub enum TypeError<'tcx> {
57
57
/// type).
58
58
CyclicTy ( Ty < ' tcx > ) ,
59
59
ProjectionMismatched ( ExpectedFound < DefId > ) ,
60
- ProjectionBoundsLength ( ExpectedFound < usize > ) ,
61
60
ExistentialMismatch ( ExpectedFound < & ' tcx ty:: List < ty:: ExistentialPredicate < ' tcx > > > ) ,
62
61
ObjectUnsafeCoercion ( DefId ) ,
63
62
ConstMismatch ( ExpectedFound < & ' tcx ty:: Const < ' tcx > > ) ,
@@ -174,13 +173,6 @@ impl<'tcx> fmt::Display for TypeError<'tcx> {
174
173
tcx. def_path_str( values. found)
175
174
)
176
175
} ) ,
177
- ProjectionBoundsLength ( ref values) => write ! (
178
- f,
179
- "expected {} associated type binding{}, found {}" ,
180
- values. expected,
181
- pluralize!( values. expected) ,
182
- values. found
183
- ) ,
184
176
ExistentialMismatch ( ref values) => report_maybe_different (
185
177
f,
186
178
& format ! ( "trait `{}`" , values. expected) ,
@@ -216,7 +208,6 @@ impl<'tcx> TypeError<'tcx> {
216
208
| RegionsPlaceholderMismatch
217
209
| Traits ( _)
218
210
| ProjectionMismatched ( _)
219
- | ProjectionBoundsLength ( _)
220
211
| ExistentialMismatch ( _)
221
212
| ConstMismatch ( _)
222
213
| IntrinsicCast
Original file line number Diff line number Diff line change @@ -655,7 +655,6 @@ impl<'a, 'tcx> Lift<'tcx> for ty::error::TypeError<'a> {
655
655
VariadicMismatch ( x) => VariadicMismatch ( x) ,
656
656
CyclicTy ( t) => return tcx. lift ( & t) . map ( |t| CyclicTy ( t) ) ,
657
657
ProjectionMismatched ( x) => ProjectionMismatched ( x) ,
658
- ProjectionBoundsLength ( x) => ProjectionBoundsLength ( x) ,
659
658
Sorts ( ref x) => return tcx. lift ( x) . map ( Sorts ) ,
660
659
ExistentialMismatch ( ref x) => return tcx. lift ( x) . map ( ExistentialMismatch ) ,
661
660
ConstMismatch ( ref x) => return tcx. lift ( x) . map ( ConstMismatch ) ,
You can’t perform that action at this time.
0 commit comments