-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Rollup of 8 pull requests #57850
Rollup of 8 pull requests #57850
Conversation
Attempt to recover from parse errors while parsing a struct's literal fields by skipping tokens until a comma or the closing brace is found. This allows errors in other fields to be reported.
This commit adds a error (and accompanying machine applicable suggestion) for trailing angle brackets on function calls with a turbofish.
This commit pluralizes error messages when more than a single trailing `>` character is present.
This commit extends the trailing `>` detection to also work for paths such as `Foo::<Bar>>:Baz`. This involves making the existing check take the token that is expected to follow the path being checked as a parameter. Care is taken to ensure that this only happens on the construction of a whole path segment and not a partial path segment (during recursion). Through this enhancement, it was also observed that the ordering of right shift token and greater than tokens was overfitted to the examples being tested. In practice, given a sequence of `>` characters: `>>>>>>>>>` ..then they will be split into `>>` eagerly: `>> >> >> >> >`. ..but when a `<` is prepended, then the first `>>` is split: `<T> > >> >> >> >` ..and then when another `<` is prepended, a right shift is first again: `Vec<<T>> >> >> >> >` In the previous commits, a example that had two `<<` characters was always used and therefore it was incorrectly assumed that `>>` would always be first - but when there is a single `<`, this is not the case.
… C++'s std::nth_element (a.k.a. quickselect)
Add 'partition_at_index/_by/_by_key' for slices. This is an analog to C++'s std::nth_element (a.k.a. quickselect). Corresponds to tracking bug rust-lang#55300.
Update std/lib.rs docs to reflect Rust 2018 usage Fixes rust-lang#56544 This paragraph was written for Rust 2015. Since 2018 has been stable for a while I think we can update it.
…ertj Merge visitors in AST validation Cuts runtime for AST validation on `syntex_syntax` from 31.5 ms to 17 ms.
…avidtwco Recover from parse errors in literal struct fields and incorrect float literals Fix rust-lang#52496.
Explain type mismatch cause pointing to return type when it is `impl Trait` Fix rust-lang#57743.
Use structured suggestion in stead of notes
Add error for trailing angle brackets. Fixes rust-lang#54521. This PR adds a error (and accompanying machine applicable suggestion) for trailing angle brackets on function calls with a turbofish. r? @estebank
Stabilize Any::get_type_id and rename to type_id FCP: rust-lang#27745 (comment) Closes rust-lang#27745.
@bors r+ p=8 |
📌 Commit 569fa82 has been approved by |
⌛ Testing commit 569fa82 with merge 9a3a323ec8d2ba7c82d3931564c4aa68b8d1ba47... |
⌛ Testing commit 569fa82 with merge 2de0099a99f33099b2e3e9d3eaa0755e0caae107... |
💔 Test failed - checks-travis |
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. 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 |
@bors retry |
⌛ Testing commit 569fa82 with merge 7d481255e28ce0e00a57b687c28411f209192719... |
💔 Test failed - checks-travis |
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. 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 |
@bors treeclosed- retry |
⌛ Testing commit 569fa82 with merge 67de45885c083d83f3c3a952aa57a759e37f8534... |
💔 Test failed - checks-travis |
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 |
Successful merges:
impl Trait
#57793 (Explain type mismatch cause pointing to return type when it isimpl Trait
)Failed merges:
r? @ghost