Skip to content

Commit

Permalink
remove unused TypeError::ProjectionBoundsLength
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Jun 30, 2020
1 parent 71b45b9 commit f632bd1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions src/librustc_middle/ty/error.rs
Expand Up @@ -57,7 +57,6 @@ pub enum TypeError<'tcx> {
/// type).
CyclicTy(Ty<'tcx>),
ProjectionMismatched(ExpectedFound<DefId>),
ProjectionBoundsLength(ExpectedFound<usize>),
ExistentialMismatch(ExpectedFound<&'tcx ty::List<ty::ExistentialPredicate<'tcx>>>),
ObjectUnsafeCoercion(DefId),
ConstMismatch(ExpectedFound<&'tcx ty::Const<'tcx>>),
Expand Down Expand Up @@ -174,13 +173,6 @@ impl<'tcx> fmt::Display for TypeError<'tcx> {
tcx.def_path_str(values.found)
)
}),
ProjectionBoundsLength(ref values) => write!(
f,
"expected {} associated type binding{}, found {}",
values.expected,
pluralize!(values.expected),
values.found
),
ExistentialMismatch(ref values) => report_maybe_different(
f,
&format!("trait `{}`", values.expected),
Expand Down Expand Up @@ -216,7 +208,6 @@ impl<'tcx> TypeError<'tcx> {
| RegionsPlaceholderMismatch
| Traits(_)
| ProjectionMismatched(_)
| ProjectionBoundsLength(_)
| ExistentialMismatch(_)
| ConstMismatch(_)
| IntrinsicCast
Expand Down
1 change: 0 additions & 1 deletion src/librustc_middle/ty/structural_impls.rs
Expand Up @@ -655,7 +655,6 @@ impl<'a, 'tcx> Lift<'tcx> for ty::error::TypeError<'a> {
VariadicMismatch(x) => VariadicMismatch(x),
CyclicTy(t) => return tcx.lift(&t).map(|t| CyclicTy(t)),
ProjectionMismatched(x) => ProjectionMismatched(x),
ProjectionBoundsLength(x) => ProjectionBoundsLength(x),
Sorts(ref x) => return tcx.lift(x).map(Sorts),
ExistentialMismatch(ref x) => return tcx.lift(x).map(ExistentialMismatch),
ConstMismatch(ref x) => return tcx.lift(x).map(ConstMismatch),
Expand Down

0 comments on commit f632bd1

Please sign in to comment.