regression: cannot move a value of type `[u8]`
Open
Nobody has claimed this yet.
regression-from-stable-to-stable
T-compiler
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
[INFO] [stdout] error[E0161]: cannot move a value of type `[u8]`
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/zerovec-0.8.1/src/flexzerovec/slice.rs:23:5
[INFO] [stdout] |
[INFO] [stdout] 17 | #[derive(Eq, PartialEq)]
[INFO] [stdout] | --------- in this derive macro expansion
[INFO] [stdout] ...
[INFO] [stdout] 23 | data: [u8],
[INFO] [stdout] | ^^^^^^^^^^ the size of `[u8]` cannot be statically determined
[INFO] [stdout] |
[INFO] [stdout] = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
note: if the relevant team already accepted this breakage then this issue can be closed
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Crater log and inspect zerovec-0.8.1/src/flexzerovec/slice.rs around the reported data field and PartialEq derive. Reproduce the beta-1.82 rustdoc failure and determine whether the breakage is accepted; done means documenting that decision or restoring successful compilation if it is not.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100