1
Fork 0

Allow const eval failures if the cause is a type layout issue

This commit is contained in:
Oli Scherer 2024-04-29 11:53:23 +00:00
parent 301c8decce
commit 4cf34cb752
7 changed files with 48 additions and 28 deletions

View file

@ -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 {