Uh oh!
There was an error while loading. Please reload this page.
Gracefully handle mistyping -> as => in function return type - #77035
Conversation
rust-highfive
commented
Sep 21, 2020
r? @davidtwco (rust_highfive has picked a reviewer for you, use r? to override) |
Uh oh!
There was an error while loading. Please reload this page.
Might want a crater check if we want make sure it introduces no regressions. |
jyn514
commented
Sep 22, 2020
@lzutao what does crater have to do with this? All this does is improve a diagnostic for code that was already broken. |
This comment has been minimized.
This comment has been minimized.
jyn514
commented
Sep 22, 2020
If every pull request went through crater, we'd never get anything merged, it would take weeks for the smallest change. |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
66d758e to
c297a2eCompare
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.
c297a2e to
cf94bc6Comparecf94bc6 to
3548be9Comparemibac138
commented
Dec 3, 2020
Fixed the build and rebased. |
davidtwco
commented
Dec 10, 2020
@craterbot check |
craterbot
commented
Dec 10, 2020
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
craterbot
commented
Dec 14, 2020
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
craterbot
commented
Dec 17, 2020
🎉 Experiment
|
davidtwco
commented
Dec 17, 2020
@mibac138 Great, no regressions, once the review comments are resolved then we can land this! |
This comment has been minimized.
This comment has been minimized.
f475fe5 to
e916641Comparemibac138
commented
Dec 18, 2020
@davidtwco Glad to hear! I have now addressed your review comments, so I think this should be good to go now? |
davidtwco
commented
Dec 18, 2020
Thanks! @bors r+ |
bors
commented
Dec 18, 2020
📌 Commit e916641 has been approved by |
bors
commented
Dec 19, 2020
bors
commented
Dec 19, 2020
☀️ Test successful - checks-actions |
| fn a() -> usize { 0 } | ||
| //~^ ERROR return types are denoted using `->` | ||
| fn b()-> usize { 0 } |
There was a problem hiding this comment.
How come rustfix does not add a space here?
There was a problem hiding this comment.
Rustfmt doesn't run on the test suite (and shouldn't, because sometimes the tests are for the parser, and the parser should be whitespace-independent).
There was a problem hiding this comment.
Isn't this the output of rustfix? Shouldn't rustfix code output be sightly formatted (at least not as good as rustfmt)?
There was a problem hiding this comment.
Oh! I missed that this is a .fixed file. This happens because the original doesn't have a space before the ::
fn b(): usize { 0 }
//~^ ERROR return types are denoted using `->`
Ideally the suggestion would add its own space, yeah.
…where_clause, r=compiler-errors Reject `CVarArgs` in `parse_ty_for_where_clause` Fixesrust-lang#125847. This regressed in rust-lang#77035 where the `parse_ty` inside `parse_ty_where_predicate` was replaced with the at the time new `parse_ty_for_where_clause` which incorrectly stated it would permit CVarArgs (maybe a copy/paste error). r? parser
Fixes#77019