Allow const eval failures if the cause is a type layout issue
This commit is contained in:
parent
301c8decce
commit
4cf34cb752
7 changed files with 48 additions and 28 deletions
|
@ -66,6 +66,9 @@ impl ReportedErrorInfo {
|
|||
pub fn tainted_by_errors(error: ErrorGuaranteed) -> ReportedErrorInfo {
|
||||
ReportedErrorInfo { is_tainted_by_errors: true, error }
|
||||
}
|
||||
pub fn is_tainted_by_errors(&self) -> bool {
|
||||
self.is_tainted_by_errors
|
||||
}
|
||||
}
|
||||
|
||||
impl From<ErrorGuaranteed> for ReportedErrorInfo {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue