-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
check where-clause for explicit Sized
before suggesting ?Sized
#86455
check where-clause for explicit Sized
before suggesting ?Sized
#86455
Conversation
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
LL | fn foo<T>(_: &T) where T: Sized {} | ||
| - required by this bound in `foo` |
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.
Ideally this should point at the T: Sized
span instead of where it was introduced, but it's ok either way.
@bors r+ |
📌 Commit 6beef88654189ae68026f3ba30f7edee95dc6562 has been approved by |
⌛ Testing commit 6beef88654189ae68026f3ba30f7edee95dc6562 with merge d508daa3f0dc774459a4045fe18b4502d3a63015... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
You will need to |
☔ The latest upstream changes (presumably #89405) made this pull request unmergeable. Please resolve the merge conflicts. |
Looks like there is also a recently introduced invariant that I'm breaking somehow. I haven't worked out the details yet. |
🔒 Merge conflict This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again. How do I rebase?Assuming
You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial. Please avoid the "Resolve conflicts" button on GitHub. It uses Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Error message
|
Ping from triage: |
6beef88
to
1a50725
Compare
Rebased, and also reblessed UI tests due to upstream changes. @rustbot label -S-waiting-on-author +S-waiting-on-review |
note: required by a bound in `foo` | ||
--> $DIR/issue-85945-check-where-clause-before-suggesting-unsized.rs:3:8 | ||
| | ||
LL | fn foo<T>(_: &T) where T: Sized {} | ||
| ^ required by this bound in `foo` |
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.
Ideally this should point at the where
clause.
@bors r+ |
📌 Commit 1a50725 has been approved by |
…unsized, r=estebank check where-clause for explicit `Sized` before suggesting `?Sized` Fixes rust-lang#85945. Based on rust-lang#86454. `@rustbot` label +A-diagnostics +A-traits +A-typesystem +D-papercut +T-compiler
Rollup of 8 pull requests Successful merges: - rust-lang#86455 (check where-clause for explicit `Sized` before suggesting `?Sized`) - rust-lang#90801 (Normalize both arguments of `equate_normalized_input_or_output`) - rust-lang#90803 (Suggest `&str.chars()` on attempt to `&str.iter()`) - rust-lang#90819 (Fixes incorrect handling of TraitRefs when emitting suggestions.) - rust-lang#90910 (fix getting the discriminant of a zero-variant enum) - rust-lang#90925 (rustc_mir_build: reorder bindings) - rust-lang#90928 (Use a different server for checking clock drift) - rust-lang#90936 (Add a regression test for rust-lang#80772) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #85945.
Based on #86454.
@rustbot label +A-diagnostics +A-traits +A-typesystem +D-papercut +T-compiler