move fallback_if_possible
and friends to fallback.rs
Along the way, simplify and document the logic more clearly.
This commit is contained in:
parent
faf84263f2
commit
60cc00f540
5 changed files with 127 additions and 125 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue