Skip to content

Pin zerocopy to 0.3.0#556

Merged
camshaft merged 1 commit intomainfrom
WesleyRosenblum/zerocopy
Mar 5, 2021
Merged

Pin zerocopy to 0.3.0#556
camshaft merged 1 commit intomainfrom
WesleyRosenblum/zerocopy

Conversation

@WesleyRosenblum
Copy link
Copy Markdown
Contributor

@WesleyRosenblum WesleyRosenblum commented Mar 5, 2021

zerocopy 0.3.1 does not build in Stable rust

error[E0658]: const generics are unstable
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/zerocopy-0.3.1/src/lib.rs:71:38
     |
 71  |         unsafe impl<T: $trait, const N: usize> $trait for [T; N] {
     |                                      ^
 ...
 263 | impl_for_composite_types!(FromBytes);
     | ------------------------------------- in this macro invocation
     |
     = note: see issue #74878 <https://github.com/rust-lang/rust/issues/74878> for more information
     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

This PR (openrr/openrr#216) has tagged the zerocopy author, we can see if he responds on whether this was intentional

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@WesleyRosenblum WesleyRosenblum requested a review from camshaft March 5, 2021 06:23
@WesleyRosenblum
Copy link
Copy Markdown
Contributor Author

WesleyRosenblum commented Mar 5, 2021

Looks like this feature will be stable on March 25: rust-lang/rust#79135, but I guess that Rust version (1.51) is going to be too new for us though

@camshaft camshaft merged commit d19cfe3 into main Mar 5, 2021
@camshaft camshaft deleted the WesleyRosenblum/zerocopy branch March 5, 2021 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants