-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Don't pass -Z unstable-options by default for UI tests #82639
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
3205303
to
65627db
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
- Pass it explicitly where appropriate - Update stderr files and warnings; it turns that unstable-options has far-reaching effects on diagnostics.
r=me with PR description updated (it notes this blocked a PR, but that PR is merged). Thanks for filing issues for the changes in outputs! |
@bors r=Mark-Simulacrum rollup=iffy |
📌 Commit 1cdc81b has been approved by |
⌛ Testing commit 1cdc81b with merge 33d9d6c539001c37692eaaadd4ee79f6203db092... |
@bors ping |
@bors retry |
@bors r=Mark-Simulacrum |
@bors ping |
@bors ping -Z unstable-options ...just kidding |
@bors r- |
@bors r=Mark-Simulacrum |
📌 Commit 1cdc81b has been approved by |
☀️ Test successful - checks-actions |
PR rust-lang#82639 changed UI tests so `-Z unstable-options` aren't passed to UI tests by default. This completely broke `use_suggestion_json.rs`, which uses the unstable `--error-format=pretty-json` option. The expected output went from 400 lines of pretty JSON error messages to a single JSON error saying "`--error-format=pretty-json` is unstable"! This commit adds `-Z unstable-options` back and reinstates the old expected output, with some minor changes to account for shifted spans and slightly JSON output changes since then.
Unconditionally passing -Z unstable-options makes it impossible to test whether an option requires unstable-options or not.
This uncovered quite a lot of bugs, I'll open issues for each. These don't strictly need to be fixed before this is merged, it just makes the diff much larger because of the changes to diagnostics.
parallel-compiler = true
and without -Z unstable-options #82636-Z unstable-options
#82637-Z unstable-options
#82638