-
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
Issue 44986/fix windows ui path #45080
Issue 44986/fix windows ui path #45080
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. |
Can you squash this down to one commit -- and in particular remove the merge commits? |
Also, I guess this doesn't really fix #44986 -- that seems to be unrelated? |
2cf9a6a
to
c8025d3
Compare
Thanks for the feedback. I updated the PR to be a single commit. And I had a typo, all this time. It should refer to issue #44968 |
@clippered looks great, neat solution! Assuming travis passes, this is good to merge (r=me). |
@bors r+ rollup |
📌 Commit c8025d3 has been approved by |
@bors r- Basically every UI test failed on Windows, for details see https://ci.appveyor.com/project/rust-lang/rust/build/1.0.4949/job/fv87h5oarj17tgqr. Example diff: error[E0308]: mismatched types
- --> $DIR/block-must-not-have-result-while.rs:13:9
+ --> C:/projects/rust/src/test/ui/block-result/block-must-not-have-result-while.rs:13:9
|
13 | true //~ ERROR mismatched types
| ^^^^ expected (), found bool
|
= note: expected type `()`
found type `bool`
error: aborting due to previous error |
@kennytm my bad, I should have done a bors try first. @clippered could you change |
r? @estebank |
Apologies for that fix. I'll try to resolve this soon. Thanks for your help @estebank , but can you rephrase what you said? I somewhat did not get what you meant. Aren't the |
Sure thing! The compiler output to stderr can be one of two things (as far as we care about here):
{"message":"unnecessary parentheses around assigned value","code":null,"level":"warning","spans":[{"file_name":"/path/to/file/unused_parens_json_suggestion.rs","byte_start":976,"byte_end":989,"line_start":22,"line_end":22,"column_start":14,"column_end":27,"is_primary":true,"text":[{"text":" let _a = (1 / (2 + 3));","highlight_start":14,"highlight_end":27}],"label":null,"suggested_replacement":null,"expansion":null}],"children":[{"message":"#[warn(unused_parens)] on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove these parentheses","code":null,"level":"help","spans":[{"file_name":"/path/to/file/unused_parens_json_suggestion.rs","byte_start":976,"byte_end":989,"line_start":22,"line_end":22,"column_start":14,"column_end":27,"is_primary":true,"text":[{"text":" let _a = (1 / (2 + 3));","highlight_start":14,"highlight_end":27}],"label":null,"suggested_replacement":"1 / (2 + 3)","expansion":null}],"children":[],"rendered":" let _a = 1 / (2 + 3);"}],"rendered":null} Under windows systems the json output looks the following way: {"message":"unnecessary parentheses around assigned value","code":null,"level":"warning","spans":[{"file_name":"C:\\projects\\rust\\src\\test\\ui\\lint\\unused_parens_json_suggestion.rs","byte_start":976,"byte_end":989,"line_start":22,"line_end":22,"column_start":14,"column_end":27,"is_primary":true,"text":[{"text":" let _a = (1 / (2 + 3));","highlight_start":14,"highlight_end":27}],"label":null,"suggested_replacement":null,"expansion":null}],"children":[{"message":"#[warn(unused_parens)] on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove these parentheses","code":null,"level":"help","spans":[{"file_name":"C:\\projects\\rust\\src\\test\\ui\\lint\\unused_parens_json_suggestion.rs","byte_start":976,"byte_end":989,"line_start":22,"line_end":22,"column_start":14,"column_end":27,"is_primary":true,"text":[{"text":" let _a = (1 / (2 + 3));","highlight_start":14,"highlight_end":27}],"label":null,"suggested_replacement":"1 / (2 + 3)","expansion":null}],"children":[],"rendered":" let _a = 1 / (2 + 3);"}],"rendered":null} By replacing
This doesn't happen on unix-like systems because the |
I see, I will need to add the check for Pardon me for asking again but which test should I run to test the normal-diagnostic output? I have only ran |
c8025d3
to
057bc7d
Compare
@estebank I hope Travis accepts this one. |
@bors try |
⌛ Trying commit 057bc7d with merge 0b6db7cc31fb5d2a9027fc0641092ff3cf0e8440... |
@estebank The try branch is not enabled on AppVeyor i.e. it won't be tested on Windows, so I don't think this can check whether the changeset is valid. |
@kennytm wasn't aware of that... Ok, I'll try to get a windows machine to test this myself. |
☀️ Test successful - status-travis |
@estebank have you managed to find a windows machine to give this a try? |
📌 Commit 057bc7d has been approved by |
@bors rollup- The rollup status has not cleared 😓 |
@kennytm, oops. Thank you for catching that. |
…stebank Issue 44986/fix windows ui path #44968
☀️ Test successful - status-appveyor, status-travis |
#44968