move fallback_if_possible and friends to fallback.rs
Along the way, simplify and document the logic more clearly.
This commit is contained in:
committed by
Mark Rousskov
parent
faf84263f2
commit
60cc00f540
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user