-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Make diagnostics clearer for binop-related errors in foreign crates #147281
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
Conversation
| | Vec<R> | ||
| | | ||
| note: the foreign item type `Vec<R>` doesn't implement `Add` | ||
| note: `Vec<R>`, which is defined in another crate, doesn't implement `Add` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternative: two notes. First note, Vec<R> doesn't implement Add. Second note, Vec<R> is defined in another crate.
Advantages: the first note matches non-foreign types (right?), and most people don't need to know about the second note, and the actual problem (the type not being unimplemented) remains syntactically unbroken.
Disadvantage: a little bit more "clutter" with the extra note
Fixes redundant language and bad grammar.
fe30357 to
3c6ae00
Compare
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@rustbot ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks much better!
|
@bors r+ |
Rollup of 5 pull requests Successful merges: - #144444 (Contract variable declarations) - #147281 (Make diagnostics clearer for binop-related errors in foreign crates) - #148131 (Skip parameter attribute deduction for MIR with `spread_arg`) - #148224 (bootstrap: `ensure(doc::Std)` no longer opens a browser) - #148226 (Bootstrap update) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #147281 - fee1-dead-contrib:clarify-binop-diag, r=jackh726 Make diagnostics clearer for binop-related errors in foreign crates Fixes redundant language and bad grammar.
Rollup of 5 pull requests Successful merges: - rust-lang/rust#144444 (Contract variable declarations) - rust-lang/rust#147281 (Make diagnostics clearer for binop-related errors in foreign crates) - rust-lang/rust#148131 (Skip parameter attribute deduction for MIR with `spread_arg`) - rust-lang/rust#148224 (bootstrap: `ensure(doc::Std)` no longer opens a browser) - rust-lang/rust#148226 (Bootstrap update) r? `@ghost` `@rustbot` modify labels: rollup
Fixes redundant language and bad grammar.