[INFO] cloning repository https://github.com/focus-zhaos/UringForStratoVirt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/focus-zhaos/UringForStratoVirt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffocus-zhaos%2FUringForStratoVirt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffocus-zhaos%2FUringForStratoVirt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f85c6c17906758b887b28739ee17a67aecdc02d6 [INFO] checking focus-zhaos/UringForStratoVirt against master#d8810e3e2dab96778d20dd6d746ff95465515509 for pr-137045 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffocus-zhaos%2FUringForStratoVirt" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/focus-zhaos/UringForStratoVirt on toolchain d8810e3e2dab96778d20dd6d746ff95465515509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d8810e3e2dab96778d20dd6d746ff95465515509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-6-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/focus-zhaos/UringForStratoVirt [INFO] finished tweaking git repo https://github.com/focus-zhaos/UringForStratoVirt [INFO] tweaked toml for git repo https://github.com/focus-zhaos/UringForStratoVirt written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/focus-zhaos/UringForStratoVirt already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d8810e3e2dab96778d20dd6d746ff95465515509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-6-tc1/source/address_space/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded kvm-ioctls v0.5.0 [INFO] [stderr] Downloaded vmm-sys-util v0.6.1 [INFO] [stderr] Downloaded kvm-bindings v0.2.0 [INFO] [stderr] Downloaded syn v1.0.37 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+d8810e3e2dab96778d20dd6d746ff95465515509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 41c055428c77d5cbbb3a3ea884b4373ec879b5d74494ad2eccb55612517da9f6 [INFO] running `Command { std: "docker" "start" "-a" "41c055428c77d5cbbb3a3ea884b4373ec879b5d74494ad2eccb55612517da9f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41c055428c77d5cbbb3a3ea884b4373ec879b5d74494ad2eccb55612517da9f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41c055428c77d5cbbb3a3ea884b4373ec879b5d74494ad2eccb55612517da9f6", kill_on_drop: false }` [INFO] [stdout] 41c055428c77d5cbbb3a3ea884b4373ec879b5d74494ad2eccb55612517da9f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+d8810e3e2dab96778d20dd6d746ff95465515509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cddddd855223acffdc9c475a9fe740d26545c7f6cb66453df9d459c0fc60b6a9 [INFO] running `Command { std: "docker" "start" "-a" "cddddd855223acffdc9c475a9fe740d26545c7f6cb66453df9d459c0fc60b6a9", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/address_space/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Checking gimli v0.21.0 [INFO] [stderr] Checking adler32 v1.1.0 [INFO] [stderr] Compiling syn v1.0.37 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking object v0.20.0 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Checking rustc-demangle v0.1.16 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling serde_json v1.0.55 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Checking vmm-sys-util v0.6.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking kvm-bindings v0.2.0 [INFO] [stderr] Checking kvm-ioctls v0.5.0 [INFO] [stderr] Checking addr2line v0.12.1 [INFO] [stderr] Checking backtrace v0.3.49 [INFO] [stderr] Checking util v0.1.0 (/opt/rustwide/workdir/util) [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> util/src/aio/uring.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsRawFd` and `RawFd` [INFO] [stdout] --> util/src/aio/uring.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::io::{AsRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::CString` [INFO] [stdout] --> util/src/aio/uring.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::ffi::CString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsRawFd` [INFO] [stdout] --> util/src/aio/mod.rs:22:25 [INFO] [stdout] | [INFO] [stdout] 22 | use std::os::unix::io::{AsRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `has_error_description_deprecated` [INFO] [stdout] --> util/src/lib.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / error_chain! { [INFO] [stdout] 43 | | foreign_links { [INFO] [stdout] 44 | | KvmIoctl(kvm_ioctls::Error); [INFO] [stdout] 45 | | Io(std::io::Error); [INFO] [stdout] ... | [INFO] [stdout] 129 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `impl_error_chain_processed` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `impl_error_chain_processed` may come from an old version of the `error_chain` crate, try updating your dependency with `cargo update -p error_chain` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> util/src/aio/uring.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsRawFd` and `RawFd` [INFO] [stdout] --> util/src/aio/uring.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::io::{AsRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::CString` [INFO] [stdout] --> util/src/aio/uring.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::ffi::CString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsRawFd` [INFO] [stdout] --> util/src/aio/mod.rs:22:25 [INFO] [stdout] | [INFO] [stdout] 22 | use std::os::unix::io::{AsRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `has_error_description_deprecated` [INFO] [stdout] --> util/src/lib.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / error_chain! { [INFO] [stdout] 43 | | foreign_links { [INFO] [stdout] 44 | | KvmIoctl(kvm_ioctls::Error); [INFO] [stdout] 45 | | Io(std::io::Error); [INFO] [stdout] ... | [INFO] [stdout] 129 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `impl_error_chain_processed` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `impl_error_chain_processed` may come from an old version of the `error_chain` crate, try updating your dependency with `cargo update -p error_chain` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | let mut sq_ptr = mmap ( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | let mut cq_ptr = mmap ( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:200:17 [INFO] [stdout] | [INFO] [stdout] 200 | let mut sqe_ptr = mmap ( [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | let mut sq_tail = (sq_ptr as *mut u8).add(p.sq_off.tail as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | let mut sq_mask = (sq_ptr as *mut u8).add(p.sq_off.ring_mask as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | let mut sq_arr = (sq_ptr as *mut u8).add(p.sq_off.array as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:213:17 [INFO] [stdout] | [INFO] [stdout] 213 | let mut cq_head = (cq_ptr as *mut u8).add(p.cq_off.head as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:214:17 [INFO] [stdout] | [INFO] [stdout] 214 | let mut cq_tail = (cq_ptr as *mut u8).add(p.cq_off.tail as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:215:17 [INFO] [stdout] | [INFO] [stdout] 215 | let mut cq_mask = (cq_ptr as *mut u8).add(p.cq_off.ring_mask as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:216:17 [INFO] [stdout] | [INFO] [stdout] 216 | let mut cqes = (cq_ptr as *mut u8).add(p.cq_off.cqes as usize) as *mut IoUringCqe; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nr` [INFO] [stdout] --> util/src/aio/uring.rs:232:26 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn submit(&self, nr: i64, iocbp: &mut Vec<*mut UringCb>) -> Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 237 | let mut sqe = self.sqes.add(index as usize); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:273:21 [INFO] [stdout] | [INFO] [stdout] 273 | let mut cqe = self.cqes.add((head & *(self.cq_mask)) as usize); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:328:17 [INFO] [stdout] | [INFO] [stdout] 328 | let mut sq_ptr = mmap ( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | let mut cq_ptr = mmap ( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:346:17 [INFO] [stdout] | [INFO] [stdout] 346 | let mut sqe_ptr = mmap ( [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:356:17 [INFO] [stdout] | [INFO] [stdout] 356 | let mut sq_tail = (sq_ptr as *mut u8).add(p.sq_off.tail as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:357:17 [INFO] [stdout] | [INFO] [stdout] 357 | let mut sq_mask = (sq_ptr as *mut u8).add(p.sq_off.ring_mask as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:358:17 [INFO] [stdout] | [INFO] [stdout] 358 | let mut sq_arr = (sq_ptr as *mut u8).add(p.sq_off.array as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:359:17 [INFO] [stdout] | [INFO] [stdout] 359 | let mut cq_head = (cq_ptr as *mut u8).add(p.cq_off.head as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:360:17 [INFO] [stdout] | [INFO] [stdout] 360 | let mut cq_tail = (cq_ptr as *mut u8).add(p.cq_off.tail as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:361:17 [INFO] [stdout] | [INFO] [stdout] 361 | let mut cq_mask = (cq_ptr as *mut u8).add(p.cq_off.ring_mask as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:362:17 [INFO] [stdout] | [INFO] [stdout] 362 | let mut cqes = (cq_ptr as *mut u8).add(p.cq_off.cqes as usize) as *mut IoUringCqe; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:392:17 [INFO] [stdout] | [INFO] [stdout] 392 | let mut sqe = self.sqes.add(index as usize); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:422:17 [INFO] [stdout] | [INFO] [stdout] 422 | let mut cqe = self.cqes.add((head & *(self.cq_mask)) as usize); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:423:17 [INFO] [stdout] | [INFO] [stdout] 423 | let mut res_iov = (*cqe).user_data as *mut Iovec; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:424:17 [INFO] [stdout] | [INFO] [stdout] 424 | let mut res_buf = *((*res_iov).iov_base as *mut [u8; 512]); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | offset_of!(SeccompData, nr) as u32 [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | offset_of!(SeccompData, arch) as u32 [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | offset_of!(SeccompData, args) - offset_of!(SeccompData, instruction_pointer); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:210:45 [INFO] [stdout] | [INFO] [stdout] 210 | offset_of!(SeccompData, args) - offset_of!(SeccompData, instruction_pointer); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | offset_of!(SeccompData, args) as u32 + num * offset_of_u64 as u32 [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | let mut sq_ptr = mmap ( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | let mut cq_ptr = mmap ( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:200:17 [INFO] [stdout] | [INFO] [stdout] 200 | let mut sqe_ptr = mmap ( [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | let mut sq_tail = (sq_ptr as *mut u8).add(p.sq_off.tail as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | let mut sq_mask = (sq_ptr as *mut u8).add(p.sq_off.ring_mask as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | let mut sq_arr = (sq_ptr as *mut u8).add(p.sq_off.array as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:213:17 [INFO] [stdout] | [INFO] [stdout] 213 | let mut cq_head = (cq_ptr as *mut u8).add(p.cq_off.head as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:214:17 [INFO] [stdout] | [INFO] [stdout] 214 | let mut cq_tail = (cq_ptr as *mut u8).add(p.cq_off.tail as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:215:17 [INFO] [stdout] | [INFO] [stdout] 215 | let mut cq_mask = (cq_ptr as *mut u8).add(p.cq_off.ring_mask as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:216:17 [INFO] [stdout] | [INFO] [stdout] 216 | let mut cqes = (cq_ptr as *mut u8).add(p.cq_off.cqes as usize) as *mut IoUringCqe; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nr` [INFO] [stdout] --> util/src/aio/uring.rs:232:26 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn submit(&self, nr: i64, iocbp: &mut Vec<*mut UringCb>) -> Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 237 | let mut sqe = self.sqes.add(index as usize); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:273:21 [INFO] [stdout] | [INFO] [stdout] 273 | let mut cqe = self.cqes.add((head & *(self.cq_mask)) as usize); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:328:17 [INFO] [stdout] | [INFO] [stdout] 328 | let mut sq_ptr = mmap ( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | let mut cq_ptr = mmap ( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:346:17 [INFO] [stdout] | [INFO] [stdout] 346 | let mut sqe_ptr = mmap ( [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:356:17 [INFO] [stdout] | [INFO] [stdout] 356 | let mut sq_tail = (sq_ptr as *mut u8).add(p.sq_off.tail as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:357:17 [INFO] [stdout] | [INFO] [stdout] 357 | let mut sq_mask = (sq_ptr as *mut u8).add(p.sq_off.ring_mask as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:358:17 [INFO] [stdout] | [INFO] [stdout] 358 | let mut sq_arr = (sq_ptr as *mut u8).add(p.sq_off.array as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:359:17 [INFO] [stdout] | [INFO] [stdout] 359 | let mut cq_head = (cq_ptr as *mut u8).add(p.cq_off.head as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:360:17 [INFO] [stdout] | [INFO] [stdout] 360 | let mut cq_tail = (cq_ptr as *mut u8).add(p.cq_off.tail as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:361:17 [INFO] [stdout] | [INFO] [stdout] 361 | let mut cq_mask = (cq_ptr as *mut u8).add(p.cq_off.ring_mask as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:362:17 [INFO] [stdout] | [INFO] [stdout] 362 | let mut cqes = (cq_ptr as *mut u8).add(p.cq_off.cqes as usize) as *mut IoUringCqe; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:392:17 [INFO] [stdout] | [INFO] [stdout] 392 | let mut sqe = self.sqes.add(index as usize); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:422:17 [INFO] [stdout] | [INFO] [stdout] 422 | let mut cqe = self.cqes.add((head & *(self.cq_mask)) as usize); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:423:17 [INFO] [stdout] | [INFO] [stdout] 423 | let mut res_iov = (*cqe).user_data as *mut Iovec; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:424:17 [INFO] [stdout] | [INFO] [stdout] 424 | let mut res_buf = *((*res_iov).iov_base as *mut [u8; 512]); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0793`. [INFO] [stdout] [INFO] [stderr] error: could not compile `util` (lib) due to 5 previous errors; 32 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> util/src/aio/uring.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsRawFd` and `RawFd` [INFO] [stdout] --> util/src/aio/uring.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::io::{AsRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::CString` [INFO] [stdout] --> util/src/aio/uring.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::ffi::CString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsRawFd` [INFO] [stdout] --> util/src/aio/mod.rs:22:25 [INFO] [stdout] | [INFO] [stdout] 22 | use std::os::unix::io::{AsRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `has_error_description_deprecated` [INFO] [stdout] --> util/src/lib.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / error_chain! { [INFO] [stdout] 43 | | foreign_links { [INFO] [stdout] 44 | | KvmIoctl(kvm_ioctls::Error); [INFO] [stdout] 45 | | Io(std::io::Error); [INFO] [stdout] ... | [INFO] [stdout] 129 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `impl_error_chain_processed` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `impl_error_chain_processed` may come from an old version of the `error_chain` crate, try updating your dependency with `cargo update -p error_chain` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | offset_of!(SeccompData, nr) as u32 [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | offset_of!(SeccompData, arch) as u32 [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | offset_of!(SeccompData, args) - offset_of!(SeccompData, instruction_pointer); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:210:45 [INFO] [stdout] | [INFO] [stdout] 210 | offset_of!(SeccompData, args) - offset_of!(SeccompData, instruction_pointer); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | offset_of!(SeccompData, args) as u32 + num * offset_of_u64 as u32 [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | assert_eq!(offset_of!(Student_packed, student_id), 0); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | assert_eq!(offset_of!(Student_packed, marks), 6); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | assert_eq!(offset_of!(recursive_packed::grand_parent, a), 0); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | / offset_of!( [INFO] [stdout] 186 | | recursive_packed::grand_parent, [INFO] [stdout] 187 | | c, [INFO] [stdout] 188 | | recursive_packed::parent, [INFO] [stdout] 189 | | a [INFO] [stdout] 190 | | ), [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | / offset_of!( [INFO] [stdout] 195 | | recursive_packed::grand_parent, [INFO] [stdout] 196 | | c, [INFO] [stdout] 197 | | recursive_packed::parent, [INFO] [stdout] 198 | | b [INFO] [stdout] 199 | | ), [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | / offset_of!( [INFO] [stdout] 213 | | recursive_packed::grand_parent, [INFO] [stdout] 214 | | c, [INFO] [stdout] 215 | | recursive_packed::parent, [INFO] [stdout] ... | [INFO] [stdout] 218 | | a [INFO] [stdout] 219 | | ), [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | / offset_of!( [INFO] [stdout] 235 | | recursive_packed::grand_parent, [INFO] [stdout] 236 | | c, [INFO] [stdout] 237 | | recursive_packed::parent, [INFO] [stdout] ... | [INFO] [stdout] 240 | | c [INFO] [stdout] 241 | | ), [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0793`. [INFO] [stdout] [INFO] [stderr] error: could not compile `util` (lib test) due to 12 previous errors; 32 warnings emitted [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | let mut sq_ptr = mmap ( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | let mut cq_ptr = mmap ( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:200:17 [INFO] [stdout] | [INFO] [stdout] 200 | let mut sqe_ptr = mmap ( [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | let mut sq_tail = (sq_ptr as *mut u8).add(p.sq_off.tail as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | let mut sq_mask = (sq_ptr as *mut u8).add(p.sq_off.ring_mask as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | let mut sq_arr = (sq_ptr as *mut u8).add(p.sq_off.array as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:213:17 [INFO] [stdout] | [INFO] [stdout] 213 | let mut cq_head = (cq_ptr as *mut u8).add(p.cq_off.head as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:214:17 [INFO] [stdout] | [INFO] [stdout] 214 | let mut cq_tail = (cq_ptr as *mut u8).add(p.cq_off.tail as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:215:17 [INFO] [stdout] | [INFO] [stdout] 215 | let mut cq_mask = (cq_ptr as *mut u8).add(p.cq_off.ring_mask as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:216:17 [INFO] [stdout] | [INFO] [stdout] 216 | let mut cqes = (cq_ptr as *mut u8).add(p.cq_off.cqes as usize) as *mut IoUringCqe; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nr` [INFO] [stdout] --> util/src/aio/uring.rs:232:26 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn submit(&self, nr: i64, iocbp: &mut Vec<*mut UringCb>) -> Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 237 | let mut sqe = self.sqes.add(index as usize); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:273:21 [INFO] [stdout] | [INFO] [stdout] 273 | let mut cqe = self.cqes.add((head & *(self.cq_mask)) as usize); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:328:17 [INFO] [stdout] | [INFO] [stdout] 328 | let mut sq_ptr = mmap ( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | let mut cq_ptr = mmap ( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:346:17 [INFO] [stdout] | [INFO] [stdout] 346 | let mut sqe_ptr = mmap ( [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:356:17 [INFO] [stdout] | [INFO] [stdout] 356 | let mut sq_tail = (sq_ptr as *mut u8).add(p.sq_off.tail as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:357:17 [INFO] [stdout] | [INFO] [stdout] 357 | let mut sq_mask = (sq_ptr as *mut u8).add(p.sq_off.ring_mask as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:358:17 [INFO] [stdout] | [INFO] [stdout] 358 | let mut sq_arr = (sq_ptr as *mut u8).add(p.sq_off.array as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:359:17 [INFO] [stdout] | [INFO] [stdout] 359 | let mut cq_head = (cq_ptr as *mut u8).add(p.cq_off.head as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:360:17 [INFO] [stdout] | [INFO] [stdout] 360 | let mut cq_tail = (cq_ptr as *mut u8).add(p.cq_off.tail as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:361:17 [INFO] [stdout] | [INFO] [stdout] 361 | let mut cq_mask = (cq_ptr as *mut u8).add(p.cq_off.ring_mask as usize) as *mut u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:362:17 [INFO] [stdout] | [INFO] [stdout] 362 | let mut cqes = (cq_ptr as *mut u8).add(p.cq_off.cqes as usize) as *mut IoUringCqe; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:392:17 [INFO] [stdout] | [INFO] [stdout] 392 | let mut sqe = self.sqes.add(index as usize); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:422:17 [INFO] [stdout] | [INFO] [stdout] 422 | let mut cqe = self.cqes.add((head & *(self.cq_mask)) as usize); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:423:17 [INFO] [stdout] | [INFO] [stdout] 423 | let mut res_iov = (*cqe).user_data as *mut Iovec; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> util/src/aio/uring.rs:424:17 [INFO] [stdout] | [INFO] [stdout] 424 | let mut res_buf = *((*res_iov).iov_base as *mut [u8; 512]); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | offset_of!(SeccompData, nr) as u32 [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | offset_of!(SeccompData, arch) as u32 [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | offset_of!(SeccompData, args) - offset_of!(SeccompData, instruction_pointer); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:210:45 [INFO] [stdout] | [INFO] [stdout] 210 | offset_of!(SeccompData, args) - offset_of!(SeccompData, instruction_pointer); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> util/src/offsetof.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { &(*(std::ptr::null::<$type_name>())).$field as *const _ as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: util/src/seccomp.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | offset_of!(SeccompData, args) as u32 + num * offset_of_u64 as u32 [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = 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) [INFO] [stdout] = note: this error originates in the macro `__offset_of` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0793`. [INFO] [stdout] [INFO] [stderr] error: could not compile `util` (lib) due to 5 previous errors; 32 warnings emitted [INFO] running `Command { std: "docker" "inspect" "cddddd855223acffdc9c475a9fe740d26545c7f6cb66453df9d459c0fc60b6a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cddddd855223acffdc9c475a9fe740d26545c7f6cb66453df9d459c0fc60b6a9", kill_on_drop: false }` [INFO] [stdout] cddddd855223acffdc9c475a9fe740d26545c7f6cb66453df9d459c0fc60b6a9