Uh oh!
There was an error while loading. Please reload this page.
On E0204 suggest missing type param bounds - #97664
Conversation
rust-highfive
commented
Jun 2, 2022
r? @lcnr (rust-highfive has picked a reviewer for you, use r? to override) |
estebank
commented
Jun 2, 2022
compiler-errors
commented
Jun 2, 2022
This is very cool @bors r+ rollup |
bors
commented
Jun 2, 2022
📌 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>{
| +++++++
```
Fixrust-lang#89137.cba4868 to
8567b68Compareestebank
commented
Jun 2, 2022
@compiler-errors added another commit with a small, hopefully uncontroversial change. @bors r=compiler-errors |
bors
commented
Jun 2, 2022
📌 Commit 9bfd3dd3794ab6a66140ef871fbf6171e3eef44f has been approved by |
compiler-errors
commented
Jun 2, 2022
Looks good to me, other than if the usage of |
estebank
commented
Jun 2, 2022
I think that the only issue is not with hashes but with inconsistent output in the |
compiler-errors
commented
Jun 2, 2022
oh... |
9bfd3dd to
6f832eaCompareestebank
commented
Jun 2, 2022
Changed :) @bors r=compiler-errors |
bors
commented
Jun 2, 2022
📌 Commit 6f832eaea5b0b43264a0b17161f43d58ea5fffbb has been approved by |
compiler-errors
commented
Jun 2, 2022
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
184576cCompare🤦 I'd failed to push -f |
compiler-errors
commented
Jun 2, 2022
There we go. Thanks 👍 |
compiler-errors
commented
Jun 2, 2022
@bors r+ |
bors
commented
Jun 2, 2022
📌 Commit 184576cd368c5b28192eff02bbbc88ca3a255968 has been approved by |
This comment has been minimized.
This comment has been minimized.
compiler-errors
commented
Jun 2, 2022
Oh no, haha. @bors r- I think it's best to just |
estebank
commented
Jun 2, 2022
🤦 |
estebank
commented
Jun 2, 2022
I'll make it a string in a bit |
There was a problem hiding this comment.
| errors | |
| .entry((ty, error_predicate)) | |
| errors | |
| .entry((ty.to_string(), error_predicate.to_string())) |
There was a problem hiding this comment.
| letmut errors:StableMap<_,Vec<_>> = Default::default(); | |
| letmut errors:BTreeMap<_,Vec<_>> = Default::default(); |
184576c to
1ca6938Compare
This comment has been minimized.
This comment has been minimized.
1ca6938 to
e5c6143Compare
This comment has been minimized.
This comment has been minimized.
e5c6143 to
f9aa2e0Comparecompiler-errors
commented
Jun 2, 2022
CI seems happy! @bors r+ |
bors
commented
Jun 2, 2022
📌 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.