-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
On E0204 suggest missing type param bounds #97664
Conversation
r? @lcnr (rust-highfive has picked a reviewer for you, use r? to override) |
This is very cool @bors r+ rollup |
📌 Commit cba4868d5e78227104fcba48f3e24c62596e9f1e has been approved by |
This comment has been minimized.
This comment has been minimized.
@bors r- r=me with the tests blessed 😺 |
``` error[E0204]: the trait `Copy` may not be implemented for this type --> f42.rs:9:17 | 9 | #[derive(Debug, Copy, Clone)] | ^^^^ 10 | pub struct AABB<K>{ 11 | pub loc: Vector2<K>, | ------------------- this field does not implement `Copy` 12 | pub size: Vector2<K> | -------------------- this field does not implement `Copy` | note: the `Copy` impl for `Vector2<K>` requires that `K: Debug` --> f42.rs:11:5 | 11 | pub loc: Vector2<K>, | ^^^^^^^^^^^^^^^^^^^ note: the `Copy` impl for `Vector2<K>` requires that `K: Debug` --> f42.rs:12:5 | 12 | pub size: Vector2<K> | ^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider restricting type parameter `K` | 10 | pub struct AABB<K: Debug>{ | +++++++ ``` Fix rust-lang#89137.
cba4868
to
8567b68
Compare
@compiler-errors added another commit with a small, hopefully uncontroversial change. @bors r=compiler-errors |
📌 Commit 9bfd3dd3794ab6a66140ef871fbf6171e3eef44f has been approved by |
Looks good to me, other than if the usage of |
I think that the only issue is not with hashes but with inconsistent output in the |
oh... |
9bfd3dd
to
6f832ea
Compare
Changed :) @bors r=compiler-errors |
📌 Commit 6f832eaea5b0b43264a0b17161f43d58ea5fffbb has been approved by |
Not sure what changed: https://github.com/rust-lang/rust/compare/9bfd3dd3794ab6a66140ef871fbf6171e3eef44f..6f832eaea5b0b43264a0b17161f43d58ea5fffbb Anyways, I can follow up in a quick PR later. Sorry for the back and forth. |
6f832ea
to
184576c
Compare
🤦 I'd failed to push -f |
There we go. Thanks 👍 |
@bors r+ |
📌 Commit 184576cd368c5b28192eff02bbbc88ca3a255968 has been approved by |
This comment has been minimized.
This comment has been minimized.
Oh no, haha. @bors r- I think it's best to just |
🤦 |
I'll make it a string in a bit |
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.
Something like:
errors | ||
.entry((ty, error_predicate)) |
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.
errors | |
.entry((ty, error_predicate)) | |
errors | |
.entry((ty.to_string(), error_predicate.to_string())) |
generics = self_item.kind.generics(); | ||
} | ||
} | ||
let mut errors: StableMap<_, Vec<_>> = Default::default(); |
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.
let mut errors: StableMap<_, Vec<_>> = Default::default(); | |
let mut errors: BTreeMap<_, Vec<_>> = Default::default(); |
184576c
to
1ca6938
Compare
This comment has been minimized.
This comment has been minimized.
1ca6938
to
e5c6143
Compare
This comment has been minimized.
This comment has been minimized.
e5c6143
to
f9aa2e0
Compare
CI seems happy! @bors r+ |
📌 Commit f9aa2e0 has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#97366 (Stabilize `{slice,array}::from_ref`) - rust-lang#97653 (add cast kind of from_exposed_addr (int-to-ptr casts)) - rust-lang#97663 (take back half-baked noaliasing check in Assignment) - rust-lang#97664 (On E0204 suggest missing type param bounds) - rust-lang#97668 (rustdoc: clean up primitive.slice.html links) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fix #89137.