Dont report CTFE errors that are due to references-error layouts
This commit is contained in:
parent
77fa702b63
commit
d45eb41c50
@ -138,7 +138,10 @@ where
|
|||||||
err_inval!(Layout(LayoutError::Unknown(_))) | err_inval!(TooGeneric) => {
|
err_inval!(Layout(LayoutError::Unknown(_))) | err_inval!(TooGeneric) => {
|
||||||
ErrorHandled::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(_))) => {
|
err_inval!(Layout(layout_error @ LayoutError::SizeOverflow(_))) => {
|
||||||
// We must *always* hard error on these, even if the caller wants just a lint.
|
// 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
|
// The `message` makes little sense here, this is a more serious error than the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user