1
Fork 0

move fallback_if_possible and friends to fallback.rs

Along the way, simplify and document the logic more clearly.
This commit is contained in:
Niko Matsakis 2020-11-22 06:10:50 -05:00 committed by Mark Rousskov
parent faf84263f2
commit 60cc00f540
5 changed files with 127 additions and 125 deletions

View file

@ -71,12 +71,6 @@ pub enum TypeError<'tcx> {
TargetFeatureCast(DefId),
}
pub enum UnconstrainedNumeric {
UnconstrainedFloat,
UnconstrainedInt,
Neither,
}
/// Explains the source of a type err in a short, human readable way. This is meant to be placed
/// in parentheses after some larger message. You should also invoke `note_and_explain_type_err()`
/// afterwards to present additional details, particularly when it comes to lifetime-related