-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
WIP: Fix test style in unused parentheses lint test #63257
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
I think the issue was just confusing the name of the file. According to a quick ripgrep, the other test using the |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
From the Azure CI logs:
I set the argument to |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
So I understand I have to edit the corresponding Could someone lend me a hand with this, or give me some pointers? |
☔ The latest upstream changes (presumably #63341) made this pull request unmergeable. Please resolve the merge conflicts. |
@monoflo usually the easiest way to get the |
Ping from triage |
Pinging again from triage |
(Note: you'll also want to run |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@monoflo great, thanks! can you rebase to remove the merge commit? |
ping from triage @monoflo, could you rebase so that only your commit appears in the "Commits" tab for this PR? Please feel free to reach out to us in #triage-wg on rust-lang Discord for more help. |
Updates test file to use `#![deny(unused_parens)]` and `//~ERROR` annotations instead of pretty-json. See: #63237
Updates test file to use `#![deny(unused_parens)]` and `//~ERROR` annotations instead of pretty-json. See: #63237
Set empty argument for `--error-format` to "json" Issue #63236 See: https://dev.azure.com/rust-lang/rust/_build/results?buildId=5110&view=logs
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should keep up the "pretty-json" too?
cc @bravomikekilo, who opened the original issue (I don't have a strong opinion here)
@@ -1,5 +1,4 @@ | |||
// compile-flags: --error-format pretty-json -Zunstable-options | |||
// build-pass (FIXME(62277): could be check-pass?) | |||
// compile-flags: --error-format json -Zunstable-options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems like pretty-json is more "diff friendly", even so, no?
Also: we are getting failures in the checks, are those maybe spurious? I couldn't get much from the logs. |
@monoflo any updates on this? |
second ping from triage @monoflo, thank you for your work on this. When you can continue, please re-open this PR first then push your updates. |
Fix test style in unused parentheses lint test I think this fixes rust-lang#63237 I'm not sure if I had to add text after the `//~ ERROR` comments. This is my first pull request, so I'm open to feedback. This issues already received one pull request [here](rust-lang#63257) but it was marked as closed for inactivity. r? @nikomatsakis
Hi! This is my first attempt at a pull request for the Rust project.
I'm fairly certain that I did this wrong, so I'm open to any and all feedback!
Per the issue, I was unable to find
test/lint/used_parens_remove_json_suggestion.rs
. Is this a file I should create?Issue
#63237