Skip to content

Commit acd4818

Browse files
committed
remove unused TypeError::ProjectionBoundsLength
1 parent a9ece00 commit acd4818

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/librustc_middle/ty/error.rs

-9
Original file line numberDiff line numberDiff 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

src/librustc_middle/ty/structural_impls.rs

-1
Original file line numberDiff line numberDiff 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),

0 commit comments

Comments
 (0)