[ 
https://issues.apache.org/jira/browse/AVRO-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Tzvetanov Grigorov resolved AVRO-3412.
---------------------------------------------
    Fix Version/s: 1.11.1
       Resolution: Fixed

It seems I've missed to backport this commit.

Thank you, [~rskraba] !

> [Rust] build breaks with toolchain 1.48.0
> -----------------------------------------
>
>                 Key: AVRO-3412
>                 URL: https://issues.apache.org/jira/browse/AVRO-3412
>             Project: Apache Avro
>          Issue Type: Bug
>    Affects Versions: 1.11.0
>            Reporter: Ryan Skraba
>            Assignee: Martin Tzvetanov Grigorov
>            Priority: Major
>             Fix For: 1.11.1
>
>
> This was bumped for {{master}} to 1.51.0 – should this be the case for 
> build-1.11?
> {code:java}
> ryan.skraba@986ae9d48645:~/avro/lang/rust$ ./build.sh test
> warning: version requirement `0.10.0+zstd.1.5.0` for dependency `zstd` 
> includes semver metadata which will be ignored, removing the metadata is 
> recommended to avoid confusion
>    Compiling serde v1.0.136
>    Compiling zerocopy v0.6.1
> error[E0433]: failed to resolve: could not find `addr_of` in `ptr`
>    --> 
> /home/ryan.skraba/.cargo/registry/src/github.com-1ecc6299db9ec823/zerocopy-0.6.1/src/lib.rs:674:14
>     |
> 674 |         ptr::addr_of!(self.0)
>     |              ^^^^^^^ could not find `addr_of` in `ptr`error[E0433]: 
> failed to resolve: could not find `addr_of_mut` in `ptr`
>    --> 
> /home/ryan.skraba/.cargo/registry/src/github.com-1ecc6299db9ec823/zerocopy-0.6.1/src/lib.rs:692:14
>     |
> 692 |         ptr::addr_of_mut!(self.0)
>     |              ^^^^^^^^^^^ could not find `addr_of_mut` in 
> `ptr`error[E0658]: const generics are unstable
>    --> 
> /home/ryan.skraba/.cargo/registry/src/github.com-1ecc6299db9ec823/zerocopy-0.6.1/src/lib.rs:93:38
>     |
> 93  |         unsafe impl<T: $trait, const N: usize> $trait for [T; N] {
>     |                                      ^
> ...
> 463 | 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)error[E0658]: const generics are unstable
>    --> 
> /home/ryan.skraba/.cargo/registry/src/github.com-1ecc6299db9ec823/zerocopy-0.6.1/src/lib.rs:93:38
>     |
> 93  |         unsafe impl<T: $trait, const N: usize> $trait for [T; N] {
>     |                                      ^
> ...
> 464 | impl_for_composite_types!(AsBytes);
>     | ----------------------------------- 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)error[E0658]: const generics are unstable
>    --> 
> /home/ryan.skraba/.cargo/registry/src/github.com-1ecc6299db9ec823/zerocopy-0.6.1/src/lib.rs:93:38
>     |
> 93  |         unsafe impl<T: $trait, const N: usize> $trait for [T; N] {
>     |                                      ^
> ...
> 489 | impl_for_composite_types!(Unaligned);
>     | ------------------------------------- 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)error: aborting due to 5 previous errorsSome 
> errors have detailed explanations: E0433, E0658.
> For more information about an error, try `rustc --explain E0433`.
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to