Don't pass -Z unstable-options by default for UI tests#82639
Merged
bors merged 1 commit intorust-lang:masterfrom Jun 10, 2021
Merged
Don't pass -Z unstable-options by default for UI tests#82639bors merged 1 commit intorust-lang:masterfrom
bors merged 1 commit intorust-lang:masterfrom
Conversation
Contributor
|
(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.
Member
|
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! |
Member
Author
|
@bors r=Mark-Simulacrum rollup=iffy |
Collaborator
|
📌 Commit 1cdc81b has been approved by |
Collaborator
|
⌛ Testing commit 1cdc81b with merge 33d9d6c539001c37692eaaadd4ee79f6203db092... |
Contributor
|
@bors ping |
Contributor
|
@bors retry |
Contributor
|
@bors r=Mark-Simulacrum |
Contributor
|
@bors ping |
Contributor
|
@bors ping -Z unstable-options ...just kidding |
Contributor
|
@bors r- |
Contributor
|
@bors r=Mark-Simulacrum |
Collaborator
|
📌 Commit 1cdc81b has been approved by |
Collaborator
Collaborator
|
☀️ Test successful - checks-actions |
nnethercote
added a commit
to nnethercote/rust
that referenced
this pull request
Jan 5, 2024
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 = trueand without -Z unstable-options #82636-Z unstable-options#82637-Z unstable-options#82638