Skip to content
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

Open
ol-imorozko opened this issue Jul 26, 2022 · 2 comments
Open

Compilation warning with cargo 1.46.0 #5

ol-imorozko opened this issue Jul 26, 2022 · 2 comments

Comments

@ol-imorozko
Copy link

~/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

Finished release [optimized] target(s) in 0.03s
@ol-imorozko
Copy link
Author

$ cargo --version
cargo 1.46.0
$ rustc --version
rustc 1.48.0

@ilorj
Copy link

ilorj commented Aug 21, 2023

$ cargo --version cargo 1.46.0 $ rustc --version rustc 1.48.0

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants