marvin:~/src/cloud-hypervisor (main)$ cargo report future-incompatibilities --id 4
The following warnings were discovered during the build. These warnings are an
indication that the packages contain code that will become an error in a
future release of Rust. These warnings typically cover changes to close
soundness problems, unintended or undocumented behavior, or critical problems
that cannot be fixed in a backwards-compatible fashion, and are not expected
to be in wide use.
Each warning should contain a link for more information on what the warning
means and how to resolve it.
To solve this problem, you can try the following approaches:
- If the issue is not solved by updating the dependencies, a fix has to be
implemented by those dependencies. You can help with that by notifying the
maintainers of this problem (e.g. by creating a bug report) or by proposing a
fix to the maintainers (e.g. by creating a pull request):
- [email protected]
- Repository: <not found>
- Detailed warning command: `cargo report future-incompatibilities --id 4 --package [email protected]`
- If waiting for an upstream fix is not an option, you can use the `[patch]`
section in `Cargo.toml` to use your own version of the dependency. For more
information, see:
https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-patch-section
The package `mshv-bindings v0.1.1 (https://github.com/rust-vmm/mshv?branch=main#bf854308)` currently triggers the following future incompatibility lints:
> warning: reference to packed field is unaligned
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/unmarshal.rs:17:13
> |
> 17 | self.u.payload.as_ptr()
> | ^^^^^^^^^^^^^^^^^^^^^^^
> |
> note: the lint level is defined here
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/lib.rs:17:10
> |
> 17 | #![allow(unaligned_references)]
> | ^^^^^^^^^^^^^^^^^^^^
> = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
> = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
> = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
>
> warning: reference to packed field is unaligned
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/unmarshal.rs:31:13
> |
> 31 | self.u.payload.as_ptr()
> | ^^^^^^^^^^^^^^^^^^^^^^^
> |
> note: the lint level is defined here
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/lib.rs:17:10
> |
> 17 | #![allow(unaligned_references)]
> | ^^^^^^^^^^^^^^^^^^^^
> = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
> = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
> = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
>
> warning: reference to packed field is unaligned
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/unmarshal.rs:43:13
> |
> 43 | self.u.payload.as_ptr()
> | ^^^^^^^^^^^^^^^^^^^^^^^
> |
> note: the lint level is defined here
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/lib.rs:17:10
> |
> 17 | #![allow(unaligned_references)]
> | ^^^^^^^^^^^^^^^^^^^^
> = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
> = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
> = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
>
> warning: reference to packed field is unaligned
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/unmarshal.rs:55:13
> |
> 55 | self.u.payload.as_ptr()
> | ^^^^^^^^^^^^^^^^^^^^^^^
> |
> note: the lint level is defined here
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/lib.rs:17:10
> |
> 17 | #![allow(unaligned_references)]
> | ^^^^^^^^^^^^^^^^^^^^
> = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
> = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
> = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
>
> warning: reference to packed field is unaligned
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/unmarshal.rs:67:13
> |
> 67 | self.u.payload.as_ptr()
> | ^^^^^^^^^^^^^^^^^^^^^^^
> |
> note: the lint level is defined here
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/lib.rs:17:10
> |
> 17 | #![allow(unaligned_references)]
> | ^^^^^^^^^^^^^^^^^^^^
> = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
> = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
> = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
>
> warning: reference to packed field is unaligned
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/unmarshal.rs:79:13
> |
> 79 | self.u.payload.as_ptr()
> | ^^^^^^^^^^^^^^^^^^^^^^^
> |
> note: the lint level is defined here
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/lib.rs:17:10
> |
> 17 | #![allow(unaligned_references)]
> | ^^^^^^^^^^^^^^^^^^^^
> = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
> = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
> = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
>
> warning: reference to packed field is unaligned
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/unmarshal.rs:93:13
> |
> 93 | self.u.payload.as_ptr()
> | ^^^^^^^^^^^^^^^^^^^^^^^
> |
> note: the lint level is defined here
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/lib.rs:17:10
> |
> 17 | #![allow(unaligned_references)]
> | ^^^^^^^^^^^^^^^^^^^^
> = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
> = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
> = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
>
> warning: reference to packed field is unaligned
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/unmarshal.rs:107:13
> |
> 107 | self.u.payload.as_ptr()
> | ^^^^^^^^^^^^^^^^^^^^^^^
> |
> note: the lint level is defined here
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/lib.rs:17:10
> |
> 17 | #![allow(unaligned_references)]
> | ^^^^^^^^^^^^^^^^^^^^
> = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
> = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
> = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
>
> warning: reference to packed field is unaligned
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/unmarshal.rs:119:13
> |
> 119 | self.u.payload.as_ptr() as *const [u8; std::mem::size_of::<hv_x64_apic_eoi_message>()]
> | ^^^^^^^^^^^^^^^^^^^^^^^
> |
> note: the lint level is defined here
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/lib.rs:17:10
> |
> 17 | #![allow(unaligned_references)]
> | ^^^^^^^^^^^^^^^^^^^^
> = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
> = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
> = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
>
> warning: reference to packed field is unaligned
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/unmarshal.rs:130:13
> |
> 130 | self.u.payload.as_ptr()
> | ^^^^^^^^^^^^^^^^^^^^^^^
> |
> note: the lint level is defined here
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/lib.rs:17:10
> |
> 17 | #![allow(unaligned_references)]
> | ^^^^^^^^^^^^^^^^^^^^
> = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
> = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
> = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
>
> warning: reference to packed field is unaligned
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/unmarshal.rs:142:13
> |
> 142 | self.u.payload.as_ptr()
> | ^^^^^^^^^^^^^^^^^^^^^^^
> |
> note: the lint level is defined here
> --> /home/rob/.cargo/git/checkouts/mshv-cc59226ef45dad4f/bf85430/mshv-bindings/src/lib.rs:17:10
> |
> 17 | #![allow(unaligned_references)]
> | ^^^^^^^^^^^^^^^^^^^^
> = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
> = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
> = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
>