[INFO] cloning repository https://github.com/micromaomao/cloud-sandbox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/micromaomao/cloud-sandbox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmicromaomao%2Fcloud-sandbox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmicromaomao%2Fcloud-sandbox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0ed266ed5956583a16a4db1126d764801bf3c492 [INFO] testing micromaomao/cloud-sandbox against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmicromaomao%2Fcloud-sandbox" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/micromaomao/cloud-sandbox [INFO] finished tweaking git repo https://github.com/micromaomao/cloud-sandbox [INFO] tweaked toml for git repo https://github.com/micromaomao/cloud-sandbox written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/micromaomao/cloud-sandbox on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/micromaomao/cloud-sandbox 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded futures-sink v0.3.9 [INFO] [stderr] Downloaded getrandom v0.2.1 [INFO] [stderr] Downloaded tokio-macros v1.0.0 [INFO] [stderr] Downloaded pin-project-internal v1.0.4 [INFO] [stderr] Downloaded futures-macro v0.3.9 [INFO] [stderr] Downloaded futures-task v0.3.9 [INFO] [stderr] Downloaded hyperlocal v0.8.0 [INFO] [stderr] Downloaded futures_codec v0.4.1 [INFO] [stderr] Downloaded futures-executor v0.3.9 [INFO] [stderr] Downloaded tar v0.4.30 [INFO] [stderr] Downloaded futures-channel v0.3.9 [INFO] [stderr] Downloaded serde_derive v1.0.119 [INFO] [stderr] Downloaded serde v1.0.119 [INFO] [stderr] Downloaded futures-util v0.3.9 [INFO] [stderr] Downloaded rand v0.8.1 [INFO] [stderr] Downloaded hyper v0.14.2 [INFO] [stderr] Downloaded shiplift v0.7.0 [INFO] [stderr] Downloaded futures v0.3.9 [INFO] [stderr] Downloaded filetime v0.2.13 [INFO] [stderr] Downloaded futures-core v0.3.9 [INFO] [stderr] Downloaded futures-io v0.3.9 [INFO] [stderr] Downloaded pin-project v1.0.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f5ad935703e8a4a4487d4f979a0743f45ae02a1d3186db4fdb42346f63e0c58 [INFO] running `Command { std: "docker" "start" "-a" "3f5ad935703e8a4a4487d4f979a0743f45ae02a1d3186db4fdb42346f63e0c58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f5ad935703e8a4a4487d4f979a0743f45ae02a1d3186db4fdb42346f63e0c58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f5ad935703e8a4a4487d4f979a0743f45ae02a1d3186db4fdb42346f63e0c58", kill_on_drop: false }` [INFO] [stdout] 3f5ad935703e8a4a4487d4f979a0743f45ae02a1d3186db4fdb42346f63e0c58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 90b86b1a9c1556e442de0f0c37bad5c65e3e59de810b9081c890a326cd6936f5 [INFO] running `Command { std: "docker" "start" "-a" "90b86b1a9c1556e442de0f0c37bad5c65e3e59de810b9081c890a326cd6936f5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.58 [INFO] [stderr] Compiling libc v0.2.82 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling log v0.4.13 [INFO] [stderr] Compiling pin-project-lite v0.2.4 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling futures-core v0.3.9 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling futures-sink v0.3.9 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling futures-channel v0.3.9 [INFO] [stderr] Compiling futures-task v0.3.9 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling futures-io v0.3.9 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling getrandom v0.2.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling tinyvec v1.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling serde_derive v1.0.119 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling tokio v1.0.1 [INFO] [stderr] Compiling http v0.2.3 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling form_urlencoded v1.0.0 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling serde v1.0.119 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling tracing v0.1.22 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling mio v0.7.7 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling cpuid-bool v0.1.2 [INFO] [stderr] Compiling unicode-normalization v0.1.16 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling rand_core v0.6.1 [INFO] [stderr] Compiling byteorder v1.4.2 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Compiling tower-service v0.3.0 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling xattr v0.2.2 [INFO] [stderr] Compiling filetime v0.2.13 [INFO] [stderr] Compiling input_buffer v0.4.0 [INFO] [stderr] Compiling utf-8 v0.7.5 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling rand v0.8.1 [INFO] [stderr] Compiling tar v0.4.30 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling flate2 v1.0.19 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling url v2.2.0 [INFO] [stderr] Compiling sha-1 v0.9.2 [INFO] [stderr] Compiling http-body v0.4.0 [INFO] [stderr] Compiling tungstenite v0.12.0 [INFO] [stderr] Compiling futures-macro v0.3.9 [INFO] [stderr] Compiling pin-project-internal v1.0.4 [INFO] [stderr] Compiling tokio-macros v1.0.0 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling futures-util v0.3.9 [INFO] [stderr] Compiling thiserror v1.0.23 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling pin-project v1.0.4 [INFO] [stderr] Compiling futures-executor v0.3.9 [INFO] [stderr] Compiling futures v0.3.9 [INFO] [stderr] Compiling futures_codec v0.4.1 [INFO] [stderr] Compiling hyper v0.14.2 [INFO] [stderr] Compiling tokio-tungstenite v0.13.0 [INFO] [stderr] Compiling hyperlocal v0.8.0 [INFO] [stderr] Compiling shiplift v0.7.0 [INFO] [stderr] Compiling cloud-sandbox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stdout] --> src/wsserver.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INNERBIN_PATH` is never used [INFO] [stdout] --> src/config.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const INNERBIN_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/target/debug/innerbin"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DOCKER_IMAGE` is never used [INFO] [stdout] --> src/config.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const DOCKER_IMAGE: &str = "cloud-sandbox-jsh"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `into_raw_fd` that must be used [INFO] [stdout] --> src/parent.rs:132:11 [INFO] [stdout] | [INFO] [stdout] 132 | ManuallyDrop::into_inner(pty_f).into_raw_fd(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: losing the raw file descriptor may leak resources [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 132 | let _ = ManuallyDrop::into_inner(pty_f).into_raw_fd(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/wsserver.rs:31:66 [INFO] [stdout] | [INFO] [stdout] 31 | async fn handle_ws_connection(mut stream: S, src: SocketAddr) { [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: struct `ExpectedBinaryData` is never constructed [INFO] [stdout] --> src/wsserver.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct ExpectedBinaryData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExpectedBinaryData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_command` is never used [INFO] [stdout] --> src/config.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_command() -> Command { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INNERBIN_PATH` is never used [INFO] [stdout] --> src/config.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const INNERBIN_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/target/debug/innerbin"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InsecureSandbox` is never constructed [INFO] [stdout] --> src/sandbox/insecure.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct InsecureSandbox { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `terminate` are never used [INFO] [stdout] --> src/sandbox/insecure.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 16 | impl InsecureSandbox { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 17 | pub async fn new() -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub async fn terminate(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `container_id` and `docker` are never read [INFO] [stdout] --> src/sandbox/docker.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct DockerSandbox { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | container_id: UniquePtr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 16 | docker: UniquePtr, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deref_mut` is never used [INFO] [stdout] --> src/uniqueptr.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 12 | impl UniquePtr { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub unsafe fn deref_mut(&self) -> &'static mut T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.88s [INFO] running `Command { std: "docker" "inspect" "90b86b1a9c1556e442de0f0c37bad5c65e3e59de810b9081c890a326cd6936f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90b86b1a9c1556e442de0f0c37bad5c65e3e59de810b9081c890a326cd6936f5", kill_on_drop: false }` [INFO] [stdout] 90b86b1a9c1556e442de0f0c37bad5c65e3e59de810b9081c890a326cd6936f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 9108f4fda252f1705298c9ce2d9edc754744ccdf0b93e0f8e2e91455f114eeb7 [INFO] running `Command { std: "docker" "start" "-a" "9108f4fda252f1705298c9ce2d9edc754744ccdf0b93e0f8e2e91455f114eeb7", kill_on_drop: false }` [INFO] [stderr] Compiling cloud-sandbox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stdout] --> src/wsserver.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INNERBIN_PATH` is never used [INFO] [stdout] --> src/config.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const INNERBIN_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/target/debug/innerbin"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DOCKER_IMAGE` is never used [INFO] [stdout] --> src/config.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const DOCKER_IMAGE: &str = "cloud-sandbox-jsh"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `into_raw_fd` that must be used [INFO] [stdout] --> src/parent.rs:132:11 [INFO] [stdout] | [INFO] [stdout] 132 | ManuallyDrop::into_inner(pty_f).into_raw_fd(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: losing the raw file descriptor may leak resources [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 132 | let _ = ManuallyDrop::into_inner(pty_f).into_raw_fd(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/wsserver.rs:31:66 [INFO] [stdout] | [INFO] [stdout] 31 | async fn handle_ws_connection(mut stream: S, src: SocketAddr) { [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: struct `ExpectedBinaryData` is never constructed [INFO] [stdout] --> src/wsserver.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct ExpectedBinaryData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExpectedBinaryData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_command` is never used [INFO] [stdout] --> src/config.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_command() -> Command { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INNERBIN_PATH` is never used [INFO] [stdout] --> src/config.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const INNERBIN_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/target/debug/innerbin"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InsecureSandbox` is never constructed [INFO] [stdout] --> src/sandbox/insecure.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct InsecureSandbox { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `terminate` are never used [INFO] [stdout] --> src/sandbox/insecure.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 16 | impl InsecureSandbox { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 17 | pub async fn new() -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub async fn terminate(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `container_id` and `docker` are never read [INFO] [stdout] --> src/sandbox/docker.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct DockerSandbox { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | container_id: UniquePtr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 16 | docker: UniquePtr, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deref_mut` is never used [INFO] [stdout] --> src/uniqueptr.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 12 | impl UniquePtr { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub unsafe fn deref_mut(&self) -> &'static mut T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.54s [INFO] running `Command { std: "docker" "inspect" "9108f4fda252f1705298c9ce2d9edc754744ccdf0b93e0f8e2e91455f114eeb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9108f4fda252f1705298c9ce2d9edc754744ccdf0b93e0f8e2e91455f114eeb7", kill_on_drop: false }` [INFO] [stdout] 9108f4fda252f1705298c9ce2d9edc754744ccdf0b93e0f8e2e91455f114eeb7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] fab7e1e21e7a287ac2299f0ec20fe057aa9234dceafeb1f76555999ced40ad29 [INFO] running `Command { std: "docker" "start" "-a" "fab7e1e21e7a287ac2299f0ec20fe057aa9234dceafeb1f76555999ced40ad29", kill_on_drop: false }` [INFO] [stderr] warning: constant `INNERBIN_PATH` is never used [INFO] [stderr] --> src/config.rs:10:11 [INFO] [stderr] | [INFO] [stderr] 10 | pub const INNERBIN_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/target/debug/innerbin"); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `DOCKER_IMAGE` is never used [INFO] [stderr] --> src/config.rs:12:11 [INFO] [stderr] | [INFO] [stderr] 12 | pub const DOCKER_IMAGE: &str = "cloud-sandbox-jsh"; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused return value of `into_raw_fd` that must be used [INFO] [stderr] --> src/parent.rs:132:11 [INFO] [stderr] | [INFO] [stderr] 132 | ManuallyDrop::into_inner(pty_f).into_raw_fd(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: losing the raw file descriptor may leak resources [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 132 | let _ = ManuallyDrop::into_inner(pty_f).into_raw_fd(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stderr] --> src/wsserver.rs:7:28 [INFO] [stderr] | [INFO] [stderr] 7 | use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/wsserver.rs:31:66 [INFO] [stderr] | [INFO] [stderr] 31 | async fn handle_ws_connection(mut stream: S, src: SocketAddr) { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `ExpectedBinaryData` is never constructed [INFO] [stderr] --> src/wsserver.rs:29:8 [INFO] [stderr] | [INFO] [stderr] 29 | struct ExpectedBinaryData; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ExpectedBinaryData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `get_command` is never used [INFO] [stderr] --> src/config.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn get_command() -> Command { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `INNERBIN_PATH` is never used [INFO] [stderr] --> src/config.rs:10:11 [INFO] [stderr] | [INFO] [stderr] 10 | pub const INNERBIN_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/target/debug/innerbin"); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `InsecureSandbox` is never constructed [INFO] [stderr] --> src/sandbox/insecure.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct InsecureSandbox { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `terminate` are never used [INFO] [stderr] --> src/sandbox/insecure.rs:17:16 [INFO] [stderr] | [INFO] [stderr] 16 | impl InsecureSandbox { [INFO] [stderr] | -------------------- associated items in this implementation [INFO] [stderr] 17 | pub async fn new() -> Result> { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | pub async fn terminate(&mut self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `container_id` and `docker` are never read [INFO] [stderr] --> src/sandbox/docker.rs:15:3 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct DockerSandbox { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 15 | container_id: UniquePtr, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 16 | docker: UniquePtr, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `deref_mut` is never used [INFO] [stderr] --> src/uniqueptr.rs:21:17 [INFO] [stderr] | [INFO] [stderr] 12 | impl UniquePtr { [INFO] [stderr] | ---------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 21 | pub unsafe fn deref_mut(&self) -> &'static mut T { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `cloud-sandbox` (bin "innerbin" test) generated 3 warnings [INFO] [stderr] warning: `cloud-sandbox` (bin "wsserver" test) generated 9 warnings (run `cargo fix --bin "wsserver" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/innerbin.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/innerbin-fa5a048ac7e7c76d) [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/wsserver.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/wsserver-38010d39d3df0886) [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] running `Command { std: "docker" "inspect" "fab7e1e21e7a287ac2299f0ec20fe057aa9234dceafeb1f76555999ced40ad29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fab7e1e21e7a287ac2299f0ec20fe057aa9234dceafeb1f76555999ced40ad29", kill_on_drop: false }` [INFO] [stdout] fab7e1e21e7a287ac2299f0ec20fe057aa9234dceafeb1f76555999ced40ad29