Uh oh!
There was an error while loading. Please reload this page.
Issue 44986/fix windows ui path - #45080
Conversation
rust-highfive
commented
Oct 7, 2017
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. |
nikomatsakis
commented
Oct 9, 2017
Can you squash this down to one commit -- and in particular remove the merge commits? |
nikomatsakis
commented
Oct 9, 2017
Also, I guess this doesn't really fix #44986 -- that seems to be unrelated? |
2cf9a6a to
c8025d3Compareclippered
commented
Oct 9, 2017
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 |
estebank
commented
Oct 9, 2017
@clippered looks great, neat solution! Assuming travis passes, this is good to merge (r=me). |
estebank
commented
Oct 10, 2017
@bors r+ rollup |
bors
commented
Oct 10, 2017
📌 Commit c8025d3 has been approved by |
kennytm
commented
Oct 10, 2017
@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 |
estebank
commented
Oct 10, 2017
@kennytm my bad, I should have done a bors try first. @clippered could you change |
nikomatsakis
commented
Oct 10, 2017
r? @estebank |
clippered
commented
Oct 10, 2017
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 |
estebank
commented
Oct 11, 2017
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 |
clippered
commented
Oct 11, 2017
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
057bc7dCompareclippered
commented
Oct 11, 2017
@estebank I hope Travis accepts this one. |
estebank
commented
Oct 11, 2017
@bors try |
bors
commented
Oct 11, 2017
⌛ Trying commit 057bc7d with merge 0b6db7cc31fb5d2a9027fc0641092ff3cf0e8440... |
kennytm
commented
Oct 11, 2017
@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. |
estebank
commented
Oct 11, 2017
@kennytm wasn't aware of that... Ok, I'll try to get a windows machine to test this myself. |
bors
commented
Oct 11, 2017
☀️ Test successful - status-travis |
aidanhs
commented
Oct 19, 2017
@estebank have you managed to find a windows machine to give this a try? |
estebank
commented
Oct 19, 2017
bors
commented
Oct 19, 2017
📌 Commit 057bc7d has been approved by |
kennytm
commented
Oct 19, 2017
@bors rollup- The rollup status has not cleared 😓 |
estebank
commented
Oct 19, 2017
@kennytm, oops. Thank you for catching that. |
bors
commented
Oct 19, 2017
…stebank Issue 44986/fix windows ui path #44968
bors
commented
Oct 19, 2017
☀️ Test successful - status-appveyor, status-travis |
#44968