-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Names in expected compiler error messages are sometimes qualified and sometimes not #236
Comments
I cannot reproduce a difference in qualified-ness. For me, locally and in GitHub Actions, using a 1.69.0 toolchain, paths in the error are always unqualified. My best guess is your CI was not using the toolchain you thought it was. |
I confirmed that the hash you gave (9f2088a063) passes I also confirmed that UI tests on your current |
David, Thanks for looking into this. I now wonder if UI tests that compare complicated error messages are practical. In the hope that things would just start working, I tried again. According to "rustc --version" both my local Windows (and Ubuntu) and GitHub CI are running: rustc 1.70.0 (90c541806 2023-05-31), but the error output is just a little different:
https://github.com/CarlKCarlK/range-set-blaze/actions/runs/5459393103/jobs/9935353753#step:7:1229 I don't see any way to figure out the cause of the difference, so I'll just leave UI tests off for now. (Thanks for all the great tools that you've created.)
|
I think that difference would be from the In CI: - uses: dtolnay/rust-toolchain@stable
with:
components: rust-src |
Thanks! Adding (I've also updated an article that recommended UI testing with a note to mind the toolchain.) |
When I run
on my local machine's Windows and WSL Ubuntu, I get an expected compiler error message such as:
When I run on GitHub actions or when another dev runs on their machine the error message becomes qualified with (for example) "range_set_blaze::":
This also happens with
Iter
vsstd::slice::Iter
. I think all the machines are running rustc 1.69.0.Any ideas on what could be making the compiler slightly give different error messages?
Thanks,
Carl
p.s. In case someone wants a repro:
Should say "1 passed"
The text was updated successfully, but these errors were encountered: