[INFO] fetching crate mcfly 0.4.0... [INFO] testing mcfly-0.4.0 against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] extracting crate mcfly 0.4.0 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate mcfly 0.4.0 on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate mcfly 0.4.0 [INFO] finished tweaking crates.io crate mcfly 0.4.0 [INFO] tweaked toml for crates.io crate mcfly 0.4.0 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate crates.io crate mcfly 0.4.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 149dcd3ace463d7fdf32e024b16c6fb02a44d89fcb10a67dbf3c65ad0550c045 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "149dcd3ace463d7fdf32e024b16c6fb02a44d89fcb10a67dbf3c65ad0550c045", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "149dcd3ace463d7fdf32e024b16c6fb02a44d89fcb10a67dbf3c65ad0550c045", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "149dcd3ace463d7fdf32e024b16c6fb02a44d89fcb10a67dbf3c65ad0550c045", kill_on_drop: false }` [INFO] [stdout] 149dcd3ace463d7fdf32e024b16c6fb02a44d89fcb10a67dbf3c65ad0550c045 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 62c08ca86ba036eed921c21c9688831b1ed25accebc87ec6b396f6fe5e9d49eb [INFO] running `Command { std: "docker" "start" "-a" "62c08ca86ba036eed921c21c9688831b1ed25accebc87ec6b396f6fe5e9d49eb", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling linked-hash-map v0.5.3 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling numtoa v0.1.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling relative-path v1.0.0 [INFO] [stderr] Compiling libsqlite3-sys v0.10.0 [INFO] [stderr] Compiling csv-core v0.1.10 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling dirs-sys v0.3.4 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling dirs v2.0.2 [INFO] [stderr] Compiling termion v1.5.5 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling shellexpand v2.0.0 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling regex-automata v0.1.9 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling bstr v0.2.12 [INFO] [stderr] Compiling csv v1.1.3 [INFO] [stderr] Compiling rusqlite v0.15.0 [INFO] [stderr] Compiling mcfly v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:166:17 [INFO] [stdout] | [INFO] [stdout] 166 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:186:17 [INFO] [stdout] | [INFO] [stdout] 186 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 53.90s [INFO] running `Command { std: "docker" "inspect" "62c08ca86ba036eed921c21c9688831b1ed25accebc87ec6b396f6fe5e9d49eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62c08ca86ba036eed921c21c9688831b1ed25accebc87ec6b396f6fe5e9d49eb", kill_on_drop: false }` [INFO] [stdout] 62c08ca86ba036eed921c21c9688831b1ed25accebc87ec6b396f6fe5e9d49eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 0360b02b830a4b4cbd12adddc6458b717b8e97a966a836e616793528e12b8877 [INFO] running `Command { std: "docker" "start" "-a" "0360b02b830a4b4cbd12adddc6458b717b8e97a966a836e616793528e12b8877", kill_on_drop: false }` [INFO] [stderr] Compiling mcfly v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:166:17 [INFO] [stdout] | [INFO] [stdout] 166 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:186:17 [INFO] [stdout] | [INFO] [stdout] 186 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:166:17 [INFO] [stdout] | [INFO] [stdout] 166 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:186:17 [INFO] [stdout] | [INFO] [stdout] 186 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/command_input.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | mem::replace(&mut self.command, new_command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.62s [INFO] running `Command { std: "docker" "inspect" "0360b02b830a4b4cbd12adddc6458b717b8e97a966a836e616793528e12b8877", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0360b02b830a4b4cbd12adddc6458b717b8e97a966a836e616793528e12b8877", kill_on_drop: false }` [INFO] [stdout] 0360b02b830a4b4cbd12adddc6458b717b8e97a966a836e616793528e12b8877 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4c5b8dc0e2e3e66fcb23ee92028871f6b75323c1d0bce84537212c7440a35f09 [INFO] running `Command { std: "docker" "start" "-a" "4c5b8dc0e2e3e66fcb23ee92028871f6b75323c1d0bce84537212c7440a35f09", kill_on_drop: false }` [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/command_input.rs:106:17 [INFO] [stderr] | [INFO] [stderr] 106 | mem::replace(&mut self.command, new_command); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/command_input.rs:120:17 [INFO] [stderr] | [INFO] [stderr] 120 | mem::replace(&mut self.command, new_command); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/command_input.rs:134:17 [INFO] [stderr] | [INFO] [stderr] 134 | mem::replace(&mut self.command, new_command); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/command_input.rs:149:17 [INFO] [stderr] | [INFO] [stderr] 149 | mem::replace(&mut self.command, new_command); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/command_input.rs:166:17 [INFO] [stderr] | [INFO] [stderr] 166 | mem::replace(&mut self.command, new_command); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/command_input.rs:186:17 [INFO] [stderr] | [INFO] [stderr] 186 | mem::replace(&mut self.command, new_command); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/command_input.rs:211:9 [INFO] [stderr] | [INFO] [stderr] 211 | mem::replace(&mut self.command, new_command); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: 7 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/command_input.rs:106:17 [INFO] [stderr] | [INFO] [stderr] 106 | mem::replace(&mut self.command, new_command); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/command_input.rs:120:17 [INFO] [stderr] | [INFO] [stderr] 120 | mem::replace(&mut self.command, new_command); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/command_input.rs:134:17 [INFO] [stderr] | [INFO] [stderr] 134 | mem::replace(&mut self.command, new_command); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/command_input.rs:149:17 [INFO] [stderr] | [INFO] [stderr] 149 | mem::replace(&mut self.command, new_command); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/command_input.rs:166:17 [INFO] [stderr] | [INFO] [stderr] 166 | mem::replace(&mut self.command, new_command); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/command_input.rs:186:17 [INFO] [stderr] | [INFO] [stderr] 186 | mem::replace(&mut self.command, new_command); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/command_input.rs:211:9 [INFO] [stderr] | [INFO] [stderr] 211 | mem::replace(&mut self.command, new_command); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: 7 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/mcfly-830fab81dd1897e8 [INFO] [stdout] running 20 tests [INFO] [stdout] test simplified_command::tests::it_handles_one_level_of_quote_escaping ... ok [INFO] [stdout] test path_update_helpers::tests::parse_mv_command_works_with_options ... ok [INFO] [stdout] test path_update_helpers::tests::parse_mv_command_works_in_the_basic_case ... ok [INFO] [stdout] test command_input::tests::display_works ... ok [INFO] [stdout] test fixed_length_grapheme_string::tests::max_length_works ... ok [INFO] [stdout] test path_update_helpers::tests::normalize_path_works_absolute_paths ... ok [INFO] [stdout] test path_update_helpers::tests::normalize_path_works_with_tilda ... ok [INFO] [stdout] test path_update_helpers::tests::parse_mv_command_works_with_escaping ... ok [INFO] [stdout] test command_input::tests::next_word_boundary_works ... ok [INFO] [stdout] test command_input::tests::previous_word_boundary_works ... ok [INFO] [stdout] test path_update_helpers::tests::parse_mv_command_works_with_escaped_strings ... ok [INFO] [stdout] test fixed_length_grapheme_string::tests::length_works ... ok [INFO] [stdout] test shell_history::tests::has_leading_timestamp_works ... ok [INFO] [stdout] test path_update_helpers::tests::normalize_path_works_with_double_dots ... ok [INFO] [stdout] test simplified_command::tests::it_truncates_after_simplification ... ok [INFO] [stderr] Running /opt/rustwide/target/debug/deps/mcfly-c743b8d5c1a99868 [INFO] [stdout] test simplified_command::tests::it_ignores_escaping_otherwise ... ok [INFO] [stdout] test simplified_command::tests::it_simplifies_simple_quoted_strings ... ok [INFO] [stdout] test simplified_command::tests::it_simplifies_obvious_paths ... ok [INFO] [stdout] test simplified_command::tests::it_ignores_leading_paths ... ok [INFO] [stdout] test simplified_command::tests::it_works_for_simple_commands ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 20 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Doc-tests mcfly [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 [INFO] [stdout] [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 [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4c5b8dc0e2e3e66fcb23ee92028871f6b75323c1d0bce84537212c7440a35f09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c5b8dc0e2e3e66fcb23ee92028871f6b75323c1d0bce84537212c7440a35f09", kill_on_drop: false }` [INFO] [stdout] 4c5b8dc0e2e3e66fcb23ee92028871f6b75323c1d0bce84537212c7440a35f09