File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Expand file tree Collapse file tree 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> {
5757 /// type).
5858 CyclicTy ( Ty < ' tcx > ) ,
5959 ProjectionMismatched ( ExpectedFound < DefId > ) ,
60- ProjectionBoundsLength ( ExpectedFound < usize > ) ,
6160 ExistentialMismatch ( ExpectedFound < & ' tcx ty:: List < ty:: ExistentialPredicate < ' tcx > > > ) ,
6261 ObjectUnsafeCoercion ( DefId ) ,
6362 ConstMismatch ( ExpectedFound < & ' tcx ty:: Const < ' tcx > > ) ,
@@ -174,13 +173,6 @@ impl<'tcx> fmt::Display for TypeError<'tcx> {
174173 tcx. def_path_str( values. found)
175174 )
176175 } ) ,
177- ProjectionBoundsLength ( ref values) => write ! (
178- f,
179- "expected {} associated type binding{}, found {}" ,
180- values. expected,
181- pluralize!( values. expected) ,
182- values. found
183- ) ,
184176 ExistentialMismatch ( ref values) => report_maybe_different (
185177 f,
186178 & format ! ( "trait `{}`" , values. expected) ,
@@ -216,7 +208,6 @@ impl<'tcx> TypeError<'tcx> {
216208 | RegionsPlaceholderMismatch
217209 | Traits ( _)
218210 | ProjectionMismatched ( _)
219- | ProjectionBoundsLength ( _)
220211 | ExistentialMismatch ( _)
221212 | ConstMismatch ( _)
222213 | 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> {
655655 VariadicMismatch ( x) => VariadicMismatch ( x) ,
656656 CyclicTy ( t) => return tcx. lift ( & t) . map ( |t| CyclicTy ( t) ) ,
657657 ProjectionMismatched ( x) => ProjectionMismatched ( x) ,
658- ProjectionBoundsLength ( x) => ProjectionBoundsLength ( x) ,
659658 Sorts ( ref x) => return tcx. lift ( x) . map ( Sorts ) ,
660659 ExistentialMismatch ( ref x) => return tcx. lift ( x) . map ( ExistentialMismatch ) ,
661660 ConstMismatch ( ref x) => return tcx. lift ( x) . map ( ConstMismatch ) ,
You can’t perform that action at this time.
0 commit comments