-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid-module-declaration.rs
test regression
#53352
Comments
I've spent a little bit of time looking into this and I'm not convinced that it is a problem. It seems like the error got changed in #46531 but the error patterns weren't updated (because they weren't being checked and therefore weren't causing an error). I think what this currently tests is correct and while there exists a branch of the code today that has the error expected by the patterns, I don't think it's possible to make that error happen (at least, I couldn't work out a way to). |
It seems this issue is 100% irrelevant now; this test no longer has these declarations, and seems to be working as expected. Closing! |
As part of #53196,
compile-fail
tests were migrated toui
tests. In doing this, it was discovered that error patterns were not being applied toui
tests (#52531). invalid-module-declaration.rs is a test that regressed due to this and that regression was not noticed.The error patterns previously on
invalid-module-declaration.rs
expected the following errors:In particular, these check for duplicate module declaration errors - which should arise as the
auxiliary
folder contains modules that have the same name as those being defined within the test code. However, these errors had not been occuring, and a lack of error pattern assertions meant this wasn't noticed.At some point in a previous commit these did work, as evidenced by old
.stderr
files for this test. In #53196, the error pattern annotations were removed in order to get it passing so that PR could land.The text was updated successfully, but these errors were encountered: