[INFO] cloning repository https://github.com/JPMoresmau/rust-interview [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JPMoresmau/rust-interview" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJPMoresmau%2Frust-interview", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJPMoresmau%2Frust-interview'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b98536660962f2e0ad3d5540cbd877fa38ace622 [INFO] testing JPMoresmau/rust-interview against 1.59.0 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJPMoresmau%2Frust-interview" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JPMoresmau/rust-interview on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JPMoresmau/rust-interview [INFO] finished tweaking git repo https://github.com/JPMoresmau/rust-interview [INFO] tweaked toml for git repo https://github.com/JPMoresmau/rust-interview written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/JPMoresmau/rust-interview already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d6b4fa257f30d45c4c1195fb23237015c58537d989df810e2e2f2a04c36df97e [INFO] running `Command { std: "docker" "start" "-a" "d6b4fa257f30d45c4c1195fb23237015c58537d989df810e2e2f2a04c36df97e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6b4fa257f30d45c4c1195fb23237015c58537d989df810e2e2f2a04c36df97e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6b4fa257f30d45c4c1195fb23237015c58537d989df810e2e2f2a04c36df97e", kill_on_drop: false }` [INFO] [stdout] d6b4fa257f30d45c4c1195fb23237015c58537d989df810e2e2f2a04c36df97e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fa8c0371d68f6d2c6a33b7d18adb340651e39a3c105c7afcf172193d2f7e658a [INFO] running `Command { std: "docker" "start" "-a" "fa8c0371d68f6d2c6a33b7d18adb340651e39a3c105c7afcf172193d2f7e658a", kill_on_drop: false }` [INFO] [stderr] Compiling interview v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function is never used: `heap_right` [INFO] [stdout] --> src/array.rs:326:4 [INFO] [stdout] | [INFO] [stdout] 326 | fn heap_right (i: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/llist.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | mem::replace(&mut self.head, LCell::Cell(d,Box::new(lc))); [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/llist.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | mem::replace(&mut self.head,lc); [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/llist.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | mem::replace(&mut self.head,lcn); [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/llist.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | mem::replace(&mut self.head,rl.head); [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/llist.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | mem::replace(&mut self.head,LCell::Nil); [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/llist.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | mem::replace(d, f(d)); [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/llist.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | mem::replace(&mut self.head,&(*n)); [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: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.01s [INFO] running `Command { std: "docker" "inspect" "fa8c0371d68f6d2c6a33b7d18adb340651e39a3c105c7afcf172193d2f7e658a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa8c0371d68f6d2c6a33b7d18adb340651e39a3c105c7afcf172193d2f7e658a", kill_on_drop: false }` [INFO] [stdout] fa8c0371d68f6d2c6a33b7d18adb340651e39a3c105c7afcf172193d2f7e658a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f39b38c3c8c7a08286bb5892bf17fcf10c8323535246e50c4dc2f35c9318374 [INFO] running `Command { std: "docker" "start" "-a" "6f39b38c3c8c7a08286bb5892bf17fcf10c8323535246e50c4dc2f35c9318374", kill_on_drop: false }` [INFO] [stdout] warning: function is never used: `heap_right` [INFO] [stdout] --> src/array.rs:326:4 [INFO] [stdout] | [INFO] [stdout] 326 | fn heap_right (i: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/llist.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | mem::replace(&mut self.head, LCell::Cell(d,Box::new(lc))); [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/llist.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | mem::replace(&mut self.head,lc); [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/llist.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | mem::replace(&mut self.head,lcn); [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] [stderr] Compiling interview v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/llist.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | mem::replace(&mut self.head,rl.head); [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/llist.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | mem::replace(&mut self.head,LCell::Nil); [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/llist.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | mem::replace(d, f(d)); [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/llist.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | mem::replace(&mut self.head,&(*n)); [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: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `heap_right` [INFO] [stdout] --> src/array.rs:326:4 [INFO] [stdout] | [INFO] [stdout] 326 | fn heap_right (i: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/llist.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | mem::replace(&mut self.head, LCell::Cell(d,Box::new(lc))); [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/llist.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | mem::replace(&mut self.head,lc); [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/llist.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | mem::replace(&mut self.head,lcn); [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/llist.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | mem::replace(&mut self.head,rl.head); [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/llist.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | mem::replace(&mut self.head,LCell::Nil); [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/llist.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | mem::replace(d, f(d)); [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/llist.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | mem::replace(&mut self.head,&(*n)); [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: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.47s [INFO] running `Command { std: "docker" "inspect" "6f39b38c3c8c7a08286bb5892bf17fcf10c8323535246e50c4dc2f35c9318374", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f39b38c3c8c7a08286bb5892bf17fcf10c8323535246e50c4dc2f35c9318374", kill_on_drop: false }` [INFO] [stdout] 6f39b38c3c8c7a08286bb5892bf17fcf10c8323535246e50c4dc2f35c9318374 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2b1ab187e8cfae3e9218ffa1c7098a293160ee020aa4f077829792222131fcd7 [INFO] running `Command { std: "docker" "start" "-a" "2b1ab187e8cfae3e9218ffa1c7098a293160ee020aa4f077829792222131fcd7", kill_on_drop: false }` [INFO] [stderr] warning: function is never used: `heap_right` [INFO] [stderr] --> src/array.rs:326:4 [INFO] [stderr] | [INFO] [stderr] 326 | fn heap_right (i: usize) -> usize { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/llist.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | mem::replace(&mut self.head, LCell::Cell(d,Box::new(lc))); [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/llist.rs:51:17 [INFO] [stderr] | [INFO] [stderr] 51 | mem::replace(&mut self.head,lc); [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/llist.rs:57:9 [INFO] [stderr] | [INFO] [stderr] 57 | mem::replace(&mut self.head,lcn); [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/llist.rs:76:9 [INFO] [stderr] | [INFO] [stderr] 76 | mem::replace(&mut self.head,rl.head); [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/llist.rs:82:9 [INFO] [stderr] | [INFO] [stderr] 82 | mem::replace(&mut self.head,LCell::Nil); [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/llist.rs:90:13 [INFO] [stderr] | [INFO] [stderr] 90 | mem::replace(d, f(d)); [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/llist.rs:122:17 [INFO] [stderr] | [INFO] [stderr] 122 | mem::replace(&mut self.head,&(*n)); [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: `interview` (lib) generated 8 warnings [INFO] [stderr] warning: `interview` (lib test) generated 8 warnings (8 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/interview-3dca38c722ffac00) [INFO] [stdout] [INFO] [stdout] running 38 tests [INFO] [stdout] test array::tests::test_bubble_sort ... ok [INFO] [stdout] test array::tests::test_heap_sort ... ok [INFO] [stdout] test array::tests::test_insertion_sort ... ok [INFO] [stdout] test array::tests::test_duplicate ... ok [INFO] [stdout] test array::tests::test_dedup ... ok [INFO] [stdout] test array::tests::test_merge_sort ... ok [INFO] [stdout] test array::tests::test_duplicates ... ok [INFO] [stdout] test array::tests::test_missing_number ... ok [INFO] [stdout] test array::tests::test_pairs_product ... ok [INFO] [stdout] test btree::tests::test_basic ... ok [INFO] [stdout] test array::tests::test_reverse ... ok [INFO] [stdout] test btree::tests::test_from_it ... ok [INFO] [stdout] test array::tests::test_quick_sort ... ok [INFO] [stdout] test llist::tests::test_clear ... ok [INFO] [stdout] test array::tests::test_range ... ok [INFO] [stdout] test btree::tests::test_in_order ... ok [INFO] [stdout] test llist::tests::test_from_iter ... ok [INFO] [stdout] test llist::tests::test_head ... ok [INFO] [stdout] test llist::tests::test_push_pop ... ok [INFO] [stdout] test llist::tests::test_map ... ok [INFO] [stdout] test llist::tests::test_reverse ... ok [INFO] [stdout] test string::tests::test_reverse ... ok [INFO] [stdout] test math::tests::test_angle_difference ... ok [INFO] [stdout] test string::tests::test_occurrences ... ok [INFO] [stdout] test string::tests::test_anagram ... ok [INFO] [stdout] test string::tests::test_palindrome ... ok [INFO] [stdout] test calc::tests::test_eval ... ok [INFO] [stdout] test llist::tests::test_into_iter ... ok [INFO] [stdout] test string::tests::test_permutations ... ok [INFO] [stdout] test btree::tests::test_wikipedia ... ok [INFO] [stdout] test deranged::tests::test_get_words ... ok [INFO] [stdout] test llist::tests::test_empty_pop_after_clear - should panic ... ok [INFO] [stdout] test llist::tests::test_empty_pop - should panic ... ok [INFO] [stdout] test array::tests::test_range_panic - should panic ... ok [INFO] [stdout] test array::tests::test_missing_number_panic - should panic ... ok [INFO] [stdout] test llist::tests::test_empty_head - should panic ... ok [INFO] [stdout] test file::tests::test_password_file ... FAILED [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] [stdout] test deranged::tests::test_longest_deranged ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- file::tests::test_password_file stdout ---- [INFO] [stdout] thread 'file::tests::test_password_file' panicked at 'cannot write file: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }', src/file.rs:155:51 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55f8415b281c - std::backtrace_rs::backtrace::libunwind::trace::h91c465e73bf6c785 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x55f8415b281c - std::backtrace_rs::backtrace::trace_unsynchronized::hae9da36f5d58b5f3 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55f8415b281c - std::sys_common::backtrace::_print_fmt::h7f499fa126a7effb [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x55f8415b281c - ::fmt::h3e2b509ce2ce6007 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x55f8415d953c - core::fmt::write::h753c7571fa063ecb [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/fmt/mod.rs:1168:17 [INFO] [stdout] 5: 0x55f8415ada83 - std::io::Write::write_fmt::hb649ab67f71b6655 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/io/mod.rs:1660:15 [INFO] [stdout] 6: 0x55f8415b4ef2 - std::sys_common::backtrace::_print::h64941a6fc8b0ed9b [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x55f8415b4ef2 - std::sys_common::backtrace::print::hcf25e43e1a9b0766 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x55f8415b4ef2 - std::panicking::default_hook::{{closure}}::h78d3e6cf97fc623d [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:211:50 [INFO] [stdout] 9: 0x55f8415b4b41 - std::panicking::default_hook::hda898f8d3ad1a5ae [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:225:9 [INFO] [stdout] 10: 0x55f8415b5543 - std::panicking::rust_panic_with_hook::h1a5ea2d6c23051aa [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:606:17 [INFO] [stdout] 11: 0x55f8415b5260 - std::panicking::begin_panic_handler::{{closure}}::h07f549390938b73f [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:502:13 [INFO] [stdout] 12: 0x55f8415b2cc4 - std::sys_common::backtrace::__rust_end_short_backtrace::h5ec3758a92cfb00d [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:139:18 [INFO] [stdout] 13: 0x55f8415b4f99 - rust_begin_unwind [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:498:5 [INFO] [stdout] 14: 0x55f841502e51 - core::panicking::panic_fmt::h3a79a6a99affe1d5 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:116:14 [INFO] [stdout] 15: 0x55f841502f43 - core::result::unwrap_failed::ha0327e3803285d6e [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/result.rs:1690:5 [INFO] [stdout] 16: 0x55f8415493e8 - core::result::Result::expect::hcae70bca0ed400d6 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/result.rs:975:23 [INFO] [stdout] 17: 0x55f84151ec04 - interview::file::tests::test_password_file::h50429303461c734a [INFO] [stdout] at /opt/rustwide/workdir/src/file.rs:155:9 [INFO] [stdout] 18: 0x55f84151e6fa - interview::file::tests::test_password_file::{{closure}}::h7fa21cb10f4bfe1f [INFO] [stdout] at /opt/rustwide/workdir/src/file.rs:118:5 [INFO] [stdout] 19: 0x55f84150ccfe - core::ops::function::FnOnce::call_once::hd2a616aecd46454c [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x55f841588603 - core::ops::function::FnOnce::call_once::h1845a80638abc06e [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x55f841588603 - test::__rust_begin_short_backtrace::h4f56ccea01b9889f [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/test/src/lib.rs:574:5 [INFO] [stdout] 22: 0x55f8415872ef - as core::ops::function::FnOnce>::call_once::h5afedf14a39ffa74 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 23: 0x55f8415872ef - as core::ops::function::FnOnce<()>>::call_once::hd5aaa1b551e9ce71 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 24: 0x55f8415872ef - std::panicking::try::do_call::h316eebee63f96d32 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:406:40 [INFO] [stdout] 25: 0x55f8415872ef - std::panicking::try::h662e31e84dd7ce52 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:370:19 [INFO] [stdout] 26: 0x55f8415872ef - std::panic::catch_unwind::h129c1b23f076663f [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panic.rs:133:14 [INFO] [stdout] 27: 0x55f8415872ef - test::run_test_in_process::h51d800d572f878ef [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/test/src/lib.rs:597:18 [INFO] [stdout] 28: 0x55f8415872ef - test::run_test::run_test_inner::{{closure}}::h71a47db430260854 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/test/src/lib.rs:491:39 [INFO] [stdout] 29: 0x55f8415906b1 - test::run_test::run_test_inner::{{closure}}::h02edd5b3e2dab52a [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/test/src/lib.rs:518:37 [INFO] [stdout] 30: 0x55f8415906b1 - std::sys_common::backtrace::__rust_begin_short_backtrace::h0838cfc8b0e995ec [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:123:18 [INFO] [stdout] 31: 0x55f84155d13f - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h4c2725d7078043cd [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/thread/mod.rs:477:17 [INFO] [stdout] 32: 0x55f84155d13f - as core::ops::function::FnOnce<()>>::call_once::hdf1aa612eed87270 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 33: 0x55f84155d13f - std::panicking::try::do_call::hc72f8de3706d18d6 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:406:40 [INFO] [stdout] 34: 0x55f84155d13f - std::panicking::try::h63f01f54dbd0fb87 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:370:19 [INFO] [stdout] 35: 0x55f84155d13f - std::panic::catch_unwind::h58bc464ae9b26453 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panic.rs:133:14 [INFO] [stdout] 36: 0x55f84155d13f - std::thread::Builder::spawn_unchecked::{{closure}}::h6c065e19513e33e3 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/thread/mod.rs:476:30 [INFO] [stdout] 37: 0x55f84155d13f - core::ops::function::FnOnce::call_once{{vtable.shim}}::hd143450c74f35c32 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 38: 0x55f8415bb1e3 - as core::ops::function::FnOnce>::call_once::h49b6c7c5155a2296 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 39: 0x55f8415bb1e3 - as core::ops::function::FnOnce>::call_once::ha8b5234bfeb15105 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 40: 0x55f8415bb1e3 - std::sys::unix::thread::Thread::new::thread_start::h6f207dd842d64859 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 41: 0x7f0044401609 - start_thread [INFO] [stdout] 42: 0x7f00441d3293 - clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] file::tests::test_password_file [INFO] [stdout] [INFO] [stdout] test result: FAILED. 37 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2b1ab187e8cfae3e9218ffa1c7098a293160ee020aa4f077829792222131fcd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b1ab187e8cfae3e9218ffa1c7098a293160ee020aa4f077829792222131fcd7", kill_on_drop: false }` [INFO] [stdout] 2b1ab187e8cfae3e9218ffa1c7098a293160ee020aa4f077829792222131fcd7