[INFO] cloning repository https://github.com/techyangj/rust-data-structs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/techyangj/rust-data-structs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftechyangj%2Frust-data-structs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftechyangj%2Frust-data-structs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 09a6e79446eb06d2981498927163f3f5f723d1e8 [INFO] building techyangj/rust-data-structs against master#ce36a966c79e109dabeef7a47fe68e5294c6d71e for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftechyangj%2Frust-data-structs" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/techyangj/rust-data-structs on toolchain ce36a966c79e109dabeef7a47fe68e5294c6d71e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/techyangj/rust-data-structs [INFO] finished tweaking git repo https://github.com/techyangj/rust-data-structs [INFO] tweaked toml for git repo https://github.com/techyangj/rust-data-structs written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/techyangj/rust-data-structs 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" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4c661151aaa3315ac39d64f5c0abe90c93a5ddc5c8505818a655ee46cc37031d [INFO] running `Command { std: "docker" "start" "-a" "4c661151aaa3315ac39d64f5c0abe90c93a5ddc5c8505818a655ee46cc37031d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4c661151aaa3315ac39d64f5c0abe90c93a5ddc5c8505818a655ee46cc37031d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c661151aaa3315ac39d64f5c0abe90c93a5ddc5c8505818a655ee46cc37031d", kill_on_drop: false }` [INFO] [stdout] 4c661151aaa3315ac39d64f5c0abe90c93a5ddc5c8505818a655ee46cc37031d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 28361e48dcd5fadf7c31f34b9736ca9532c37cf33e6e697824bcf417223dbffe [INFO] running `Command { std: "docker" "start" "-a" "28361e48dcd5fadf7c31f34b9736ca9532c37cf33e6e697824bcf417223dbffe", kill_on_drop: false }` [INFO] [stderr] Compiling rust-data-structs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/myloop.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/mybox.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LinkedList` 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: method `add_up` is never used [INFO] [stdout] --> src/mybox.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl LinkedList { [INFO] [stdout] | ------------------------------------------ method in this implementation [INFO] [stdout] 8 | pub fn add_up(&mut self, n: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/mycloneandcopy.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Color` is never used [INFO] [stdout] --> src/myenum.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Color` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `my_loop` is never used [INFO] [stdout] --> src/myloop.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn my_loop() -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `my_while` is never used [INFO] [stdout] --> src/myloop.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn my_while() -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `my_for` is never used [INFO] [stdout] --> src/myloop.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn my_for() -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Res` is never used [INFO] [stdout] --> src/myresult.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Res { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divide` is never used [INFO] [stdout] --> src/myresult.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn divide(a: i32, b: i32) -> Res { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bubble_sort` is never used [INFO] [stdout] --> src/mysort.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn bubble_sort(v: &mut [T]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_sort` is never used [INFO] [stdout] --> src/mysort.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn merge_sort(mut v: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/mystruct.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/mystruct.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Person { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 9 | pub fn print(self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] running `Command { std: "docker" "inspect" "28361e48dcd5fadf7c31f34b9736ca9532c37cf33e6e697824bcf417223dbffe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28361e48dcd5fadf7c31f34b9736ca9532c37cf33e6e697824bcf417223dbffe", kill_on_drop: false }` [INFO] [stdout] 28361e48dcd5fadf7c31f34b9736ca9532c37cf33e6e697824bcf417223dbffe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0fe95112620b9aaf55471ad9185db1c72595fd5cff61faccbf6125706f97bac9 [INFO] running `Command { std: "docker" "start" "-a" "0fe95112620b9aaf55471ad9185db1c72595fd5cff61faccbf6125706f97bac9", kill_on_drop: false }` [INFO] [stderr] Compiling rust-data-structs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mybox.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut list = LinkedList { [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: unused variable: `a` [INFO] [stdout] --> src/mycloneandcopy.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let a = 2; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/myloop.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/mycloneandcopy.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Person { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 3 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Clone`, 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: variants `Blue` and `Green` are never constructed [INFO] [stdout] --> src/myenum.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Color { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 3 | Red(i32), [INFO] [stdout] 4 | Blue(i32), [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Green(i32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Color` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.43s [INFO] running `Command { std: "docker" "inspect" "0fe95112620b9aaf55471ad9185db1c72595fd5cff61faccbf6125706f97bac9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0fe95112620b9aaf55471ad9185db1c72595fd5cff61faccbf6125706f97bac9", kill_on_drop: false }` [INFO] [stdout] 0fe95112620b9aaf55471ad9185db1c72595fd5cff61faccbf6125706f97bac9