remove PredicatePolarity
and BoundConstness
relate impls
Also removes `TypeError::ConstnessMismatch`. It is unused.
This commit is contained in:
parent
196fdf144f
commit
00266eeaa5
3 changed files with 11 additions and 40 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue