fix ICE on type error in promoted
This commit is contained in:
parent
9c707a8b76
commit
ed8ee39930
25 changed files with 78 additions and 213 deletions
|
|
@ -170,7 +170,7 @@ where
|
|||
let reported = if allowed_in_infallible {
|
||||
ReportedErrorInfo::allowed_in_infallible(g)
|
||||
} else {
|
||||
ReportedErrorInfo::from(g)
|
||||
ReportedErrorInfo::const_eval_error(g)
|
||||
};
|
||||
ErrorHandled::Reported(reported, span)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue