[INFO] cloning repository https://github.com/smtmfft/nitro-attestation [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/smtmfft/nitro-attestation" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmtmfft%2Fnitro-attestation", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmtmfft%2Fnitro-attestation'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ac9fd48fafda5e525f6585176691485d3e9af3ca [INFO] testing smtmfft/nitro-attestation against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmtmfft%2Fnitro-attestation" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/smtmfft/nitro-attestation [INFO] finished tweaking git repo https://github.com/smtmfft/nitro-attestation [INFO] tweaked toml for git repo https://github.com/smtmfft/nitro-attestation written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/smtmfft/nitro-attestation on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/smtmfft/nitro-attestation 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded aws-smithy-async v1.2.1 [INFO] [stderr] Downloaded aws-types v1.3.3 [INFO] [stderr] Downloaded aws-runtime v1.4.4 [INFO] [stderr] Downloaded aws-nitro-enclaves-cose v0.5.2 [INFO] [stderr] Downloaded outref v0.5.1 [INFO] [stderr] Downloaded aws-smithy-json v0.60.7 [INFO] [stderr] Downloaded aws-sigv4 v1.2.6 [INFO] [stderr] Downloaded aws-sdk-ssooidc v1.51.0 [INFO] [stderr] Downloaded aws-sdk-sts v1.51.0 [INFO] [stderr] Downloaded aws-smithy-types v1.2.9 [INFO] [stderr] Downloaded aws-config v1.5.10 [INFO] [stderr] Downloaded aws-nitro-enclaves-nsm-api v0.4.0 [INFO] [stderr] Downloaded aws-smithy-json v0.61.1 [INFO] [stderr] Downloaded aws-smithy-http v0.60.11 [INFO] [stderr] Downloaded serde_with_macros v3.11.0 [INFO] [stderr] Downloaded aws-smithy-runtime v1.7.4 [INFO] [stderr] Downloaded aws-sdk-sso v1.50.0 [INFO] [stderr] Downloaded serde_with v3.11.0 [INFO] [stderr] Downloaded aws-sdk-kms v1.51.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dc93d5b925ccf5acc4851c2285678effa01bd3bc46fea1f04aef23a7f857a8df [INFO] running `Command { std: "docker" "start" "-a" "dc93d5b925ccf5acc4851c2285678effa01bd3bc46fea1f04aef23a7f857a8df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dc93d5b925ccf5acc4851c2285678effa01bd3bc46fea1f04aef23a7f857a8df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc93d5b925ccf5acc4851c2285678effa01bd3bc46fea1f04aef23a7f857a8df", kill_on_drop: false }` [INFO] [stdout] dc93d5b925ccf5acc4851c2285678effa01bd3bc46fea1f04aef23a7f857a8df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f19dd0ad3fc3c5f1b8d29f43746dac91f01e78fc9172bd5402c950a8784e53a2 [INFO] running `Command { std: "docker" "start" "-a" "f19dd0ad3fc3c5f1b8d29f43746dac91f01e78fc9172bd5402c950a8784e53a2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling cc v1.2.3 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling vsimd v0.8.0 [INFO] [stderr] Compiling outref v0.5.1 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling rustls-native-certs v0.6.3 [INFO] [stderr] Compiling bytes-utils v0.1.4 [INFO] [stderr] Compiling base64-simd v0.8.0 [INFO] [stderr] Compiling aws-types v1.3.3 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Compiling uuid v1.11.0 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling xmlparser v0.13.6 [INFO] [stderr] Compiling anyhow v1.0.94 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling aws-smithy-xml v0.60.9 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling serde_repr v0.1.19 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling host v0.1.0 (/opt/rustwide/workdir/host) [INFO] [stderr] Compiling serde_cbor v0.11.2 [INFO] [stderr] Compiling serde_bytes v0.11.15 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling serde_with_macros v3.11.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling serde_with v3.11.0 [INFO] [stderr] Compiling aws-nitro-enclaves-nsm-api v0.4.0 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling aws-smithy-async v1.2.1 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling aws-smithy-types v1.2.9 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling aws-nitro-enclaves-cose v0.5.2 [INFO] [stderr] Compiling aws-smithy-runtime-api v1.7.3 [INFO] [stderr] Compiling aws-smithy-json v0.61.1 [INFO] [stderr] Compiling aws-smithy-query v0.60.7 [INFO] [stderr] Compiling aws-smithy-json v0.60.7 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling aws-smithy-http v0.60.11 [INFO] [stderr] Compiling aws-credential-types v1.2.1 [INFO] [stderr] Compiling aws-sigv4 v1.2.6 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling hyper v0.14.31 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling aws-smithy-runtime v1.7.4 [INFO] [stderr] Compiling aws-runtime v1.4.4 [INFO] [stderr] Compiling aws-sdk-sso v1.50.0 [INFO] [stderr] Compiling aws-sdk-ssooidc v1.51.0 [INFO] [stderr] Compiling aws-sdk-sts v1.51.0 [INFO] [stderr] Compiling aws-sdk-kms v1.51.0 [INFO] [stderr] Compiling aws-config v1.5.10 [INFO] [stderr] Compiling nitro-attest v0.1.0 (/opt/rustwide/workdir/guest) [INFO] [stdout] warning: struct `SealedData` is never constructed [INFO] [stdout] --> guest/src/attest/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct SealedData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_file` is never used [INFO] [stdout] --> guest/src/attest/vsock_client.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl VsockClient { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn send_file(&self, path: PathBuf) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FileTransfer` is never constructed [INFO] [stdout] --> guest/src/attest/vsock_protocol.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum MessageType { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 7 | Log = 1, [INFO] [stdout] 8 | FileTransfer = 2, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read_from` is never used [INFO] [stdout] --> guest/src/attest/vsock_protocol.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl ProtocolHeader { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn read_from(fd: RawFd) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_exact` is never used [INFO] [stdout] --> guest/src/attest/vsock_protocol.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn read_exact(fd: RawFd, buf: &mut [u8]) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_message` is never used [INFO] [stdout] --> guest/src/attest/vsock_protocol.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn send_message(fd: RawFd, msg_type: MessageType, payload: &[u8]) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_message` is never used [INFO] [stdout] --> guest/src/attest/vsock_protocol.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn read_message(fd: RawFd) -> io::Result)>> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 14s [INFO] running `Command { std: "docker" "inspect" "f19dd0ad3fc3c5f1b8d29f43746dac91f01e78fc9172bd5402c950a8784e53a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f19dd0ad3fc3c5f1b8d29f43746dac91f01e78fc9172bd5402c950a8784e53a2", kill_on_drop: false }` [INFO] [stdout] f19dd0ad3fc3c5f1b8d29f43746dac91f01e78fc9172bd5402c950a8784e53a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81a5925cc29081781dd5a51be7871d77603bdef6b91b706b1dba3204d5b89809 [INFO] running `Command { std: "docker" "start" "-a" "81a5925cc29081781dd5a51be7871d77603bdef6b91b706b1dba3204d5b89809", kill_on_drop: false }` [INFO] [stderr] Compiling nitro-attest v0.1.0 (/opt/rustwide/workdir/guest) [INFO] [stderr] Compiling host v0.1.0 (/opt/rustwide/workdir/host) [INFO] [stdout] warning: struct `SealedData` is never constructed [INFO] [stdout] --> guest/src/attest/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct SealedData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_file` is never used [INFO] [stdout] --> guest/src/attest/vsock_client.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl VsockClient { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn send_file(&self, path: PathBuf) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FileTransfer` is never constructed [INFO] [stdout] --> guest/src/attest/vsock_protocol.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum MessageType { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 7 | Log = 1, [INFO] [stdout] 8 | FileTransfer = 2, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read_from` is never used [INFO] [stdout] --> guest/src/attest/vsock_protocol.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl ProtocolHeader { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn read_from(fd: RawFd) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_exact` is never used [INFO] [stdout] --> guest/src/attest/vsock_protocol.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn read_exact(fd: RawFd, buf: &mut [u8]) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_message` is never used [INFO] [stdout] --> guest/src/attest/vsock_protocol.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn send_message(fd: RawFd, msg_type: MessageType, payload: &[u8]) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_message` is never used [INFO] [stdout] --> guest/src/attest/vsock_protocol.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn read_message(fd: RawFd) -> io::Result)>> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.00s [INFO] running `Command { std: "docker" "inspect" "81a5925cc29081781dd5a51be7871d77603bdef6b91b706b1dba3204d5b89809", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81a5925cc29081781dd5a51be7871d77603bdef6b91b706b1dba3204d5b89809", kill_on_drop: false }` [INFO] [stdout] 81a5925cc29081781dd5a51be7871d77603bdef6b91b706b1dba3204d5b89809 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f6fb6d829693dc7b3f2b14b761c0204a7461a96376de9a19bbb6113a1a788d23 [INFO] running `Command { std: "docker" "start" "-a" "f6fb6d829693dc7b3f2b14b761c0204a7461a96376de9a19bbb6113a1a788d23", kill_on_drop: false }` [INFO] [stderr] warning: struct `SealedData` is never constructed [INFO] [stderr] --> guest/src/attest/mod.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | struct SealedData { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `send_file` is never used [INFO] [stderr] --> guest/src/attest/vsock_client.rs:61:12 [INFO] [stderr] | [INFO] [stderr] 21 | impl VsockClient { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 61 | pub fn send_file(&self, path: PathBuf) -> std::io::Result<()> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `FileTransfer` is never constructed [INFO] [stderr] --> guest/src/attest/vsock_protocol.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 6 | pub enum MessageType { [INFO] [stderr] | ----------- variant in this enum [INFO] [stderr] 7 | Log = 1, [INFO] [stderr] 8 | FileTransfer = 2, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MessageType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated function `read_from` is never used [INFO] [stderr] --> guest/src/attest/vsock_protocol.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl ProtocolHeader { [INFO] [stderr] | ------------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn read_from(fd: RawFd) -> io::Result> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_exact` is never used [INFO] [stderr] --> guest/src/attest/vsock_protocol.rs:53:8 [INFO] [stderr] | [INFO] [stderr] 53 | pub fn read_exact(fd: RawFd, buf: &mut [u8]) -> io::Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `send_message` is never used [INFO] [stderr] --> guest/src/attest/vsock_protocol.rs:65:8 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn send_message(fd: RawFd, msg_type: MessageType, payload: &[u8]) -> io::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_message` is never used [INFO] [stderr] --> guest/src/attest/vsock_protocol.rs:80:8 [INFO] [stderr] | [INFO] [stderr] 80 | pub fn read_message(fd: RawFd) -> io::Result)>> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `nitro-attest` (bin "nitro-attest" test) generated 7 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/host-b66935c3911229e5) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/nitro_attest-2a247d3408419a50) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test attest::test::test_get_pcr0 ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- attest::test::test_get_pcr0 stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'attest::test::test_get_pcr0' (26) panicked at guest/src/attest/mod.rs:35:14: [INFO] [stdout] nsm driver returned invalid response: Error(InternalError) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5a5665dffb12 - std::backtrace_rs::backtrace::libunwind::trace::h52580dd202462214 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5a5665dffb12 - std::backtrace_rs::backtrace::trace_unsynchronized::hc969519abce0f52b [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5a5665dffb12 - std::sys::backtrace::_print_fmt::hfd5825900b6e0030 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x5a5665dffb12 - ::fmt::h427144ad75cfb218 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5a5665e106af - core::fmt::rt::Argument::fmt::hd5ccc9cf97cea7f7 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5a5665e106af - core::fmt::write::h593aaf5adf0f5dae [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x5a5665dcc371 - std::io::default_write_fmt::h305b5a0727055346 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5a5665dcc371 - std::io::Write::write_fmt::h76f14a8a88733dc5 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x5a5665dd82d2 - std::sys::backtrace::BacktraceLock::print::h3953113552dca3ca [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x5a5665ddd2df - std::panicking::default_hook::{{closure}}::h486b96ad75eafbb8 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x5a5665ddd171 - std::panicking::default_hook::h99456317c5a1a20c [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5a5665cc8b5e - as core::ops::function::Fn>::call::h441e4551014e4cf8 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5a5665cc8b5e - test::test_main_with_exit_callback::{{closure}}::hdbca54e17f1a00e4 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x5a5665ddd99f - as core::ops::function::Fn>::call::h1e57b72c4e1d3045 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x5a5665ddd99f - std::panicking::panic_with_hook::h67ab0df20212e4ea [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x5a5665ddd7fa - std::panicking::panic_handler::{{closure}}::hc9e4a933ae92e208 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x5a5665dd8419 - std::sys::backtrace::__rust_end_short_backtrace::hbfa72df9b68c2d19 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x5a5665dc061d - __rustc[8cce077e14951490]::rust_begin_unwind [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x5a5665e182a0 - core::panicking::panic_fmt::h49931053d20abf41 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x5a5665ca5af4 - nitro_attest::attest::get_pcr::h99b2147224b5aed8 [INFO] [stdout] at /opt/rustwide/workdir/guest/src/attest/mod.rs:35:14 [INFO] [stdout] 20: 0x5a5665ca4fa7 - nitro_attest::attest::test::test_get_pcr0::h3f559725fb840196 [INFO] [stdout] at /opt/rustwide/workdir/guest/src/attest/mod.rs:45:20 [INFO] [stdout] 21: 0x5a5665ca5047 - nitro_attest::attest::test::test_get_pcr0::{{closure}}::hcef7c4b59f1f98a6 [INFO] [stdout] at /opt/rustwide/workdir/guest/src/attest/mod.rs:44:23 [INFO] [stdout] 22: 0x5a5665ca5f66 - core::ops::function::FnOnce::call_once::h56955343b567773d [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 23: 0x5a5665cc891b - core::ops::function::FnOnce::call_once::h5d9016d521f5aee4 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x5a5665cc891b - test::__rust_begin_short_backtrace::h123fcee610330442 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:663:18 [INFO] [stdout] 25: 0x5a5665cde405 - test::run_test_in_process::{{closure}}::h0442efda2e6359b2 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:686:74 [INFO] [stdout] 26: 0x5a5665cde405 - as core::ops::function::FnOnce<()>>::call_once::hfe3528c8dd09682c [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 27: 0x5a5665cde405 - std::panicking::catch_unwind::do_call::hb1659f7844fe8531 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:590:40 [INFO] [stdout] 28: 0x5a5665cde405 - std::panicking::catch_unwind::hdc1f4be0019e72ad [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:553:19 [INFO] [stdout] 29: 0x5a5665cde405 - std::panic::catch_unwind::hd6d7ccfa4513e770 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panic.rs:359:14 [INFO] [stdout] 30: 0x5a5665cde405 - test::run_test_in_process::h6bbb839ed0802366 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:686:27 [INFO] [stdout] 31: 0x5a5665cde405 - test::run_test::{{closure}}::he4fad7398c8acc11 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:607:43 [INFO] [stdout] 32: 0x5a5665cb4d74 - test::run_test::{{closure}}::h41975797e198d26c [INFO] [stderr] error: test failed, to rerun pass `-p nitro-attest --bin nitro-attest` [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:637:41 [INFO] [stdout] 33: 0x5a5665cb4d74 - std::sys::backtrace::__rust_begin_short_backtrace::hfb46c397857336f1 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 34: 0x5a5665cb871a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hddf826a64f532bea [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 35: 0x5a5665cb871a - as core::ops::function::FnOnce<()>>::call_once::hc3518c3eab91aeb3 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 36: 0x5a5665cb871a - std::panicking::catch_unwind::do_call::h7bf3ad6dc012415a [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:590:40 [INFO] [stdout] 37: 0x5a5665cb871a - std::panicking::catch_unwind::h8b88f0375c767e36 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:553:19 [INFO] [stdout] 38: 0x5a5665cb871a - std::panic::catch_unwind::h66cb5d61a90f7bc5 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x5a5665cb871a - std::thread::Builder::spawn_unchecked_::{{closure}}::h65bc9d15fb966bbd [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 40: 0x5a5665cb871a - core::ops::function::FnOnce::call_once{{vtable.shim}}::he8d2c9a8796342e5 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 41: 0x5a5665dd253f - as core::ops::function::FnOnce>::call_once::hef12b47e5c033835 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 42: 0x5a5665dd253f - std::sys::pal::unix::thread::Thread::new::thread_start::h135087e7c97657bc [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 43: 0x761234988aa4 - [INFO] [stdout] 44: 0x761234a15a34 - clone [INFO] [stdout] 45: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] attest::test::test_get_pcr0 [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f6fb6d829693dc7b3f2b14b761c0204a7461a96376de9a19bbb6113a1a788d23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6fb6d829693dc7b3f2b14b761c0204a7461a96376de9a19bbb6113a1a788d23", kill_on_drop: false }` [INFO] [stdout] f6fb6d829693dc7b3f2b14b761c0204a7461a96376de9a19bbb6113a1a788d23