Skip to content

Conversation

j-hui
Copy link
Contributor

@j-hui j-hui commented Oct 2, 2025

When the diagnostic verifier encounters a fatal error, it reports:

<unknown>:0: error: fatal error encountered while in -verify mode

If we capture this, and fail to match this against an expected-error, the diagnostic verifier complains:

<unknown>:0: error: unexpected error produced: fatal error encountered while in -verify mode
<unknown>:0: error: diagnostic produced elsewhere: fatal error encountered while in -verify mode

The current workaround is to use -verify-ignore-unknown, but that in turn may mask actual errors coming from unknown source locations. Ignoring these errors about errors removes the need for that workaround.

When the diagnostic verifier encounters a fatal error, it reports:

    <unknown>:0: error: fatal error encountered while in -verify mode

If we capture this, and fail to match this against an expected-error,
the diagnostic verifier complains:

    <unknown>:0: error: unexpected error produced: fatal error encountered while in -verify mode
    <unknown>:0: error: diagnostic produced elsewhere: fatal error encountered while in -verify mode

The current workaround is to use -verify-ignore-unknown, but that in
turn may mask actual errors coming from unknown source locations.
Ignoring these errors about errors removes the need for that workaround.
@j-hui j-hui requested review from artemcm and tshortli as code owners October 2, 2025 01:18
@j-hui
Copy link
Contributor Author

j-hui commented Oct 2, 2025

@swift-ci please test

@j-hui j-hui requested a review from hnrklssn October 2, 2025 01:19
@j-hui j-hui merged commit e97fa24 into swiftlang:main Oct 2, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants