[INFO] fetching crate libc_tools 0.1.3... [INFO] building libc_tools-0.1.3 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate libc_tools 0.1.3 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate libc_tools 0.1.3 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate libc_tools 0.1.3 [INFO] finished tweaking crates.io crate libc_tools 0.1.3 [INFO] tweaked toml for crates.io crate libc_tools 0.1.3 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 1 package to latest compatible version [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 628a6aecd589019e0528940d09be2bd71b83258fbcd1e1bebb9df815a375a355 [INFO] running `Command { std: "docker" "start" "-a" "628a6aecd589019e0528940d09be2bd71b83258fbcd1e1bebb9df815a375a355", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "628a6aecd589019e0528940d09be2bd71b83258fbcd1e1bebb9df815a375a355", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "628a6aecd589019e0528940d09be2bd71b83258fbcd1e1bebb9df815a375a355", kill_on_drop: false }` [INFO] [stdout] 628a6aecd589019e0528940d09be2bd71b83258fbcd1e1bebb9df815a375a355 [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 040ef5b974b9798d22bbb0824522cc672ab83caf30c07b8a206f8220809e990f [INFO] running `Command { std: "docker" "start" "-a" "040ef5b974b9798d22bbb0824522cc672ab83caf30c07b8a206f8220809e990f", kill_on_drop: false }` [INFO] [stderr] Compiling libc_tools v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::Close` [INFO] [stdout] --> src/dup.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::Close; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `c_void`, `pipe`, and `read` [INFO] [stdout] --> src/popen.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | __errno_location, _exit, c_int, c_void, execl, fclose, fdopen, pipe, pipe2, read, socketpair, [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error::Error` and `null_mut` [INFO] [stdout] --> src/pty.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 3 | ptr::{null, null_mut}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `stdin` [INFO] [stdout] --> src/run.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, Read}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `close::*` [INFO] [stdout] --> src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use close::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `exec::*` [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use exec::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proc::*` [INFO] [stdout] --> src/lib.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use proc::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/run.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut buf = [0 as u8; 4096]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [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] --> src/run.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut buf = [0 as u8; 4096]; [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: method `to_string` is never used [INFO] [stdout] --> src/popen.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl PopenError { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 36 | fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `socket_pipe` is never used [INFO] [stdout] --> src/popen.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn socket_pipe() -> Result<[[c_int; 2]; 2], PopenError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/run.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/socket_pair.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl SocketPair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 24 | fn create( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "040ef5b974b9798d22bbb0824522cc672ab83caf30c07b8a206f8220809e990f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "040ef5b974b9798d22bbb0824522cc672ab83caf30c07b8a206f8220809e990f", kill_on_drop: false }` [INFO] [stdout] 040ef5b974b9798d22bbb0824522cc672ab83caf30c07b8a206f8220809e990f [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6bd9bd0a649b2a88fef73f07d1c05934f06ea5d93bac6c5709a6b3fa7b80488b [INFO] running `Command { std: "docker" "start" "-a" "6bd9bd0a649b2a88fef73f07d1c05934f06ea5d93bac6c5709a6b3fa7b80488b", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `crate::Close` [INFO] [stdout] --> src/dup.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::Close; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `c_void`, `pipe`, and `read` [INFO] [stdout] --> src/popen.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | __errno_location, _exit, c_int, c_void, execl, fclose, fdopen, pipe, pipe2, read, socketpair, [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error::Error` and `null_mut` [INFO] [stdout] --> src/pty.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 3 | ptr::{null, null_mut}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `stdin` [INFO] [stdout] --> src/run.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, Read}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `close::*` [INFO] [stdout] --> src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use close::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `exec::*` [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use exec::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proc::*` [INFO] [stdout] --> src/lib.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use proc::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/run.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut buf = [0 as u8; 4096]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [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] --> src/run.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut buf = [0 as u8; 4096]; [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: method `to_string` is never used [INFO] [stdout] --> src/popen.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl PopenError { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 36 | fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `socket_pipe` is never used [INFO] [stdout] --> src/popen.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn socket_pipe() -> Result<[[c_int; 2]; 2], PopenError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/run.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/socket_pair.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl SocketPair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 24 | fn create( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling libc_tools v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Close` and `PipeSide` [INFO] [stdout] --> src/close.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | use crate::{Close, Pipe, PipeSide}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Close` [INFO] [stdout] --> src/dup.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::Close; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::execl` [INFO] [stdout] --> src/pipe.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | use libc::execl; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `c_void`, `pipe`, and `read` [INFO] [stdout] --> src/popen.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | __errno_location, _exit, c_int, c_void, execl, fclose, fdopen, pipe, pipe2, read, socketpair, [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FILE`, `SOCK_CLOEXEC`, `__errno_location`, `fclose`, and `perror` [INFO] [stdout] --> src/popen.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | __errno_location, fclose, fgets, perror, socketpair, strlen, FILE, PF_UNIX, SOCK_CLOEXEC, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^ ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Wait` and `popen::popen` [INFO] [stdout] --> src/popen.rs:192:17 [INFO] [stdout] | [INFO] [stdout] 192 | use crate::{popen::popen, Close, Popen, Wait}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error::Error` and `null_mut` [INFO] [stdout] --> src/pty.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 3 | ptr::{null, null_mut}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `stdin` [INFO] [stdout] --> src/run.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, Read}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `close::*` [INFO] [stdout] --> src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use close::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `exec::*` [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use exec::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proc::*` [INFO] [stdout] --> src/lib.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use proc::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `popen::Popen::arg`: do not use! [INFO] [stdout] --> src/popen.rs:223:16 [INFO] [stdout] | [INFO] [stdout] 223 | Popen::arg("date").exec().unwrap(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `popen::Popen::exec`: do not use! [INFO] [stdout] --> src/popen.rs:223:28 [INFO] [stdout] | [INFO] [stdout] 223 | Popen::arg("date").exec().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `popen::Popen::arg`: do not use! [INFO] [stdout] --> src/popen.rs:238:32 [INFO] [stdout] | [INFO] [stdout] 238 | let popen = Popen::arg("time").exec().unwrap(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `popen::Popen::exec`: do not use! [INFO] [stdout] --> src/popen.rs:238:44 [INFO] [stdout] | [INFO] [stdout] 238 | let popen = Popen::arg("time").exec().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `popen::Popen::arg`: do not use! [INFO] [stdout] --> src/popen.rs:252:24 [INFO] [stdout] | [INFO] [stdout] 252 | let o = Popen::arg( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `popen::Popen::exec`: do not use! [INFO] [stdout] --> src/popen.rs:261:10 [INFO] [stdout] | [INFO] [stdout] 261 | .exec() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/pipe.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let path = CString::new("/bin/sh")?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sh` [INFO] [stdout] --> src/pipe.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let sh = CString::new("sh")?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sh` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exec` [INFO] [stdout] --> src/pipe.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let exec = CString::new("-c")?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_exec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arg` [INFO] [stdout] --> src/pipe.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let arg = CString::new("ls")?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/run.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut buf = [0 as u8; 4096]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/run.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut buf = [0 as u8; 4096]; [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: method `to_string` is never used [INFO] [stdout] --> src/popen.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl PopenError { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 36 | fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `socket_pipe` is never used [INFO] [stdout] --> src/popen.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn socket_pipe() -> Result<[[c_int; 2]; 2], PopenError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/run.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/socket_pair.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl SocketPair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 24 | fn create( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s [INFO] running `Command { std: "docker" "inspect" "6bd9bd0a649b2a88fef73f07d1c05934f06ea5d93bac6c5709a6b3fa7b80488b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bd9bd0a649b2a88fef73f07d1c05934f06ea5d93bac6c5709a6b3fa7b80488b", kill_on_drop: false }` [INFO] [stdout] 6bd9bd0a649b2a88fef73f07d1c05934f06ea5d93bac6c5709a6b3fa7b80488b