-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation warning with cargo 1.46.0 #5
Comments
$ cargo --version |
do you find the way how to fix it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
~/nyx-net/fuzzer/rust_fuzzer((HEAD detached at 84c0412))$ cargo build --release
warning: borrow of packed field is unsafe and requires unsafe function or block (error E0133)
--> /home/imorozko/nyx-net/fuzzer/libnyx/fuzz_runner/src/lib.rs:221:9
|
221 | &self.feedback_data.shared.ijon.max_data
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note:
#[warn(safe_packed_borrows)]
on by default= 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 #46043 rust-lang/rust#46043
= note: fields of packed structs might be misaligned: dereferencing a misaligned pointer or even just creating a misaligned reference is undefined behavior
warning: 1 warning emitted
The text was updated successfully, but these errors were encountered: