-
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
Recover on invalid operators <>
and <=>
#91597
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
In the end rustc will understand (and refuse) the syntax of most other languages... :-) |
Right, so you are saying something along the lines of "it doesn't make much sense to add this if we don't suggest a |
I'm not opposed to this pull. It was humor. |
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.
<>
<>
and <=>
This comment has been minimized.
This comment has been minimized.
203c81d
to
1c56648
Compare
This comment has been minimized.
This comment has been minimized.
4c201e6
to
c83d36f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Thanks for the PR, @r00ster91! Looks useful to me. I think this is best reviewed by someone from the diagnostic working group. r? rust-lang/diagnostics |
The changes lgtm. Please squash the commits into a single one r=me with that |
4782262
to
f194c9b
Compare
r=oli-obk |
@bors r+ rollup |
📌 Commit f194c9b has been approved by |
…i-obk Recover on invalid operators `<>` and `<=>` Thanks to rust-lang#89871 for showing me how to do this. Next, I think it'd be nice to recover on `<=>` too, like rust-lang#89871 intended, if this even works.
…askrgr Rollup of 7 pull requests Successful merges: - rust-lang#89825 (Make split_inclusive() on an empty slice yield an empty output) - rust-lang#91239 (regression test for issue 87490) - rust-lang#91597 (Recover on invalid operators `<>` and `<=>`) - rust-lang#91774 (Fix typo for MutVisitor) - rust-lang#91786 (Return an error when `eval_rvalue_with_identities` fails) - rust-lang#91798 (Avoid suggest adding `self` in visibility spec) - rust-lang#91856 (Looser check for overflowing_binary_op) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Thanks to #89871 for showing me how to do this.
Next, I think it'd be nice to recover on
<=>
too, like #89871 intended, if this even works.