[INFO] fetching crate penguincrab 0.1.63... [INFO] testing penguincrab-0.1.63 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate penguincrab 0.1.63 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate penguincrab 0.1.63 [INFO] finished tweaking crates.io crate penguincrab 0.1.63 [INFO] tweaked toml for crates.io crate penguincrab 0.1.63 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate penguincrab 0.1.63 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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] Locking 8 packages to latest compatible versions [INFO] [stderr] Adding nix v0.25.1 (available: v0.30.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded more-asserts v0.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4e0f3803d699185a4d03f64acf9a588aa015415e63bce4eb5fce5a64a877353a [INFO] running `Command { std: "docker" "start" "-a" "4e0f3803d699185a4d03f64acf9a588aa015415e63bce4eb5fce5a64a877353a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4e0f3803d699185a4d03f64acf9a588aa015415e63bce4eb5fce5a64a877353a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e0f3803d699185a4d03f64acf9a588aa015415e63bce4eb5fce5a64a877353a", kill_on_drop: false }` [INFO] [stdout] 4e0f3803d699185a4d03f64acf9a588aa015415e63bce4eb5fce5a64a877353a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 10d7ac4a88d44a89f9283274f6ac3fb7ce2312cefd9dbed56fe61a9c454db5c1 [INFO] running `Command { std: "docker" "start" "-a" "10d7ac4a88d44a89f9283274f6ac3fb7ce2312cefd9dbed56fe61a9c454db5c1", kill_on_drop: false }` [INFO] [stderr] Compiling penguincrab v0.1.63 (/opt/rustwide/workdir) [INFO] [stderr] Compiling more-asserts v0.3.1 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use crate::lkl::lklh::consts::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name `LKL_ITIMER_REAL` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 4 | pub use crate::lkl::lklh::syscall_nos::*; [INFO] [stdout] | -------------------------------- but the name `LKL_ITIMER_REAL` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use crate::lkl::lklh::consts::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name `LKL_PERF_RECORD_MISC_MMAP_DATA` in the value namespace is first re-exported here [INFO] [stdout] 2 | pub use crate::lkl::lklh::lkl_specific::*; [INFO] [stdout] 3 | pub use crate::lkl::lklh::rest::*; [INFO] [stdout] | ------------------------- but the name `LKL_PERF_RECORD_MISC_MMAP_DATA` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:128:54 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn lkl_sys_fstat(fd: i32, stat: &mut stat => |s| (s as *mut _)); } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 128 - pub fn lkl_sys_fstat(fd: i32, stat: &mut stat => |s| (s as *mut _)); } [INFO] [stdout] 128 + pub fn lkl_sys_fstat(fd: i32, stat: &mut stat => |s| s as *mut _ ); } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:180:30 [INFO] [stdout] | [INFO] [stdout] 180 | dirent: &mut dirent64 => |s| (s as *mut _), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 180 - dirent: &mut dirent64 => |s| (s as *mut _), [INFO] [stdout] 180 + dirent: &mut dirent64 => |s| s as *mut _ , [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_test` is never used [INFO] [stdout] --> src/lib.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn setup_test() -> LklSetup { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | lkl_init(&lkl_host_ops); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 50 | lkl_init(&raw const lkl_host_ops); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | lkl_start_kernel(&lkl_host_ops, boot_arg); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 52 | lkl_start_kernel(&raw const lkl_host_ops, boot_arg); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:20:49 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn to_cstr<'a>(rust_str: &'a str) -> Option<&CStr> { [INFO] [stdout] | -- ^^^^^ the same lifetime is elided here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 20 | pub fn to_cstr<'a>(rust_str: &'a str) -> Option<&'a CStr> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.44s [INFO] running `Command { std: "docker" "inspect" "10d7ac4a88d44a89f9283274f6ac3fb7ce2312cefd9dbed56fe61a9c454db5c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10d7ac4a88d44a89f9283274f6ac3fb7ce2312cefd9dbed56fe61a9c454db5c1", kill_on_drop: false }` [INFO] [stdout] 10d7ac4a88d44a89f9283274f6ac3fb7ce2312cefd9dbed56fe61a9c454db5c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5fca6d208785066db07cdce007b1a73f809df9cb84af89f3aef10defdab6db60 [INFO] running `Command { std: "docker" "start" "-a" "5fca6d208785066db07cdce007b1a73f809df9cb84af89f3aef10defdab6db60", kill_on_drop: false }` [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use crate::lkl::lklh::consts::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name `LKL_ITIMER_REAL` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 4 | pub use crate::lkl::lklh::syscall_nos::*; [INFO] [stdout] | -------------------------------- but the name `LKL_ITIMER_REAL` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use crate::lkl::lklh::consts::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name `LKL_PERF_RECORD_MISC_MMAP_DATA` in the value namespace is first re-exported here [INFO] [stdout] 2 | pub use crate::lkl::lklh::lkl_specific::*; [INFO] [stdout] 3 | pub use crate::lkl::lklh::rest::*; [INFO] [stdout] | ------------------------- but the name `LKL_PERF_RECORD_MISC_MMAP_DATA` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:128:54 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn lkl_sys_fstat(fd: i32, stat: &mut stat => |s| (s as *mut _)); } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 128 - pub fn lkl_sys_fstat(fd: i32, stat: &mut stat => |s| (s as *mut _)); } [INFO] [stdout] 128 + pub fn lkl_sys_fstat(fd: i32, stat: &mut stat => |s| s as *mut _ ); } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:180:30 [INFO] [stdout] | [INFO] [stdout] 180 | dirent: &mut dirent64 => |s| (s as *mut _), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 180 - dirent: &mut dirent64 => |s| (s as *mut _), [INFO] [stdout] 180 + dirent: &mut dirent64 => |s| s as *mut _ , [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_test` is never used [INFO] [stdout] --> src/lib.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn setup_test() -> LklSetup { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | lkl_init(&lkl_host_ops); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 50 | lkl_init(&raw const lkl_host_ops); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | lkl_start_kernel(&lkl_host_ops, boot_arg); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 52 | lkl_start_kernel(&raw const lkl_host_ops, boot_arg); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:20:49 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn to_cstr<'a>(rust_str: &'a str) -> Option<&CStr> { [INFO] [stdout] | -- ^^^^^ the same lifetime is elided here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 20 | pub fn to_cstr<'a>(rust_str: &'a str) -> Option<&'a CStr> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling penguincrab v0.1.63 (/opt/rustwide/workdir) [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use crate::lkl::lklh::consts::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name `LKL_ITIMER_REAL` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 4 | pub use crate::lkl::lklh::syscall_nos::*; [INFO] [stdout] | -------------------------------- but the name `LKL_ITIMER_REAL` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use crate::lkl::lklh::consts::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name `LKL_PERF_RECORD_MISC_MMAP_DATA` in the value namespace is first re-exported here [INFO] [stdout] 2 | pub use crate::lkl::lklh::lkl_specific::*; [INFO] [stdout] 3 | pub use crate::lkl::lklh::rest::*; [INFO] [stdout] | ------------------------- but the name `LKL_PERF_RECORD_MISC_MMAP_DATA` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:128:54 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn lkl_sys_fstat(fd: i32, stat: &mut stat => |s| (s as *mut _)); } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 128 - pub fn lkl_sys_fstat(fd: i32, stat: &mut stat => |s| (s as *mut _)); } [INFO] [stdout] 128 + pub fn lkl_sys_fstat(fd: i32, stat: &mut stat => |s| s as *mut _ ); } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:180:30 [INFO] [stdout] | [INFO] [stdout] 180 | dirent: &mut dirent64 => |s| (s as *mut _), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 180 - dirent: &mut dirent64 => |s| (s as *mut _), [INFO] [stdout] 180 + dirent: &mut dirent64 => |s| s as *mut _ , [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | lkl_init(&lkl_host_ops); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 50 | lkl_init(&raw const lkl_host_ops); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | lkl_start_kernel(&lkl_host_ops, boot_arg); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 52 | lkl_start_kernel(&raw const lkl_host_ops, boot_arg); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/lkl/syscall_wrappers.rs:20:49 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn to_cstr<'a>(rust_str: &'a str) -> Option<&CStr> { [INFO] [stdout] | -- ^^^^^ the same lifetime is elided here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 20 | pub fn to_cstr<'a>(rust_str: &'a str) -> Option<&'a CStr> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustcAWqxd3/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bdynamic" "-llkl" "-Wl,-Bstatic" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libtest-*,libgetopts-*,librustc_std_workspace_std-*}.rlib" "/opt/rustwide/target/debug/deps/{libmore_asserts-f001e74054e64787,libnix-4bf8c4a86f04e83c,libmemoffset-bc48cec0ee29d8c8,libpin_utils-9a5791cba021167a,libbitflags-e2b4db6c651223da,libcfg_if-666d36e5ee0df220,liblibc-8e712e29e4a4a279}.rlib" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcAWqxd3/raw-dylibs" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "linux/tools/lkl" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/penguincrab-cdecaf60ec4e9b6f" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: unable to find library -llkl [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `penguincrab` (lib test) due to 1 previous error; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5fca6d208785066db07cdce007b1a73f809df9cb84af89f3aef10defdab6db60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fca6d208785066db07cdce007b1a73f809df9cb84af89f3aef10defdab6db60", kill_on_drop: false }` [INFO] [stdout] 5fca6d208785066db07cdce007b1a73f809df9cb84af89f3aef10defdab6db60