1
Fork 0

remove PredicatePolarity and BoundConstness relate impls

Also removes `TypeError::ConstnessMismatch`. It is unused.
This commit is contained in:
lcnr 2024-10-23 00:52:37 +02:00
parent 196fdf144f
commit 00266eeaa5
3 changed files with 11 additions and 40 deletions

View file

@ -35,9 +35,6 @@ impl<'tcx> TypeError<'tcx> {
TypeError::CyclicTy(_) => "cyclic type of infinite size".into(),
TypeError::CyclicConst(_) => "encountered a self-referencing constant".into(),
TypeError::Mismatch => "types differ".into(),
TypeError::ConstnessMismatch(values) => {
format!("expected {} bound, found {} bound", values.expected, values.found).into()
}
TypeError::PolarityMismatch(values) => {
format!("expected {} polarity, found {} polarity", values.expected, values.found)
.into()