Dont report CTFE errors that are due to references-error layouts
This commit is contained in:
parent
77fa702b63
commit
d45eb41c50
1 changed files with 4 additions and 1 deletions
|
@ -138,7 +138,10 @@ where
|
|||
err_inval!(Layout(LayoutError::Unknown(_))) | err_inval!(TooGeneric) => {
|
||||
ErrorHandled::TooGeneric
|
||||
}
|
||||
err_inval!(AlreadyReported(error_reported)) => ErrorHandled::Reported(error_reported),
|
||||
err_inval!(AlreadyReported(guar)) => ErrorHandled::Reported(guar),
|
||||
err_inval!(Layout(LayoutError::ReferencesError(guar))) => {
|
||||
ErrorHandled::Reported(guar.into())
|
||||
}
|
||||
err_inval!(Layout(layout_error @ LayoutError::SizeOverflow(_))) => {
|
||||
// We must *always* hard error on these, even if the caller wants just a lint.
|
||||
// The `message` makes little sense here, this is a more serious error than the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue