Skip to content

Compilation warning with cargo 1.46.0 #5

Open
@ol-imorozko

Description

@ol-imorozko

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions