Uh oh!
There was an error while loading. Please reload this page.
Make diagnostics clearer for binop-related errors in foreign crates - #147281
Conversation
rustbot
commented
Oct 2, 2025
Uh oh!
There was an error while loading. Please reload this page.
| | 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.
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
3c6ae00Comparerustbot
commented
Oct 18, 2025
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 |
jackh726
commented
Oct 29, 2025
@bors r+ |
bors
commented
Oct 29, 2025
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
Uh oh!
There was an error while loading. Please reload this page.
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.