[INFO] cloning repository https://github.com/Gaoey/xrust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Gaoey/xrust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGaoey%2Fxrust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGaoey%2Fxrust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c4caba74fd7cb93d948d643f70ff51740a07a23b [INFO] checking Gaoey/xrust against master#2e6fc425411280c658d852813de01c5157255088 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGaoey%2Fxrust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Gaoey/xrust on toolchain 2e6fc425411280c658d852813de01c5157255088 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Gaoey/xrust [INFO] finished tweaking git repo https://github.com/Gaoey/xrust [INFO] tweaked toml for git repo https://github.com/Gaoey/xrust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Gaoey/xrust 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" "+2e6fc425411280c658d852813de01c5157255088" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9b4e49ac0c56e7c04c595a33f8518cb9609a7b7f78658f65daaa200db3e9d137 [INFO] running `Command { std: "docker" "start" "-a" "9b4e49ac0c56e7c04c595a33f8518cb9609a7b7f78658f65daaa200db3e9d137", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b4e49ac0c56e7c04c595a33f8518cb9609a7b7f78658f65daaa200db3e9d137", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b4e49ac0c56e7c04c595a33f8518cb9609a7b7f78658f65daaa200db3e9d137", kill_on_drop: false }` [INFO] [stdout] 9b4e49ac0c56e7c04c595a33f8518cb9609a7b7f78658f65daaa200db3e9d137 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a2440d1dda649803064cb6f383e678f15ebdd75d26c8f3d735906e071528b5c6 [INFO] running `Command { std: "docker" "start" "-a" "a2440d1dda649803064cb6f383e678f15ebdd75d26c8f3d735906e071528b5c6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.42 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling tokio v1.20.1 [INFO] [stderr] Checking once_cell v1.13.0 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking chrono v0.4.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking xrust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `iteration_call_fn` is never used [INFO] [stdout] --> src/concepts/asynchronous/repeating_call_api.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | async fn iteration_call_fn( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_api_by_vec` is never used [INFO] [stdout] --> src/concepts/asynchronous/repeating_call_api.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | async fn call_api_by_vec(pages: Vec) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeating_call_api` is never used [INFO] [stdout] --> src/concepts/asynchronous/repeating_call_api.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | pub async fn repeating_call_api() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_page` is never used [INFO] [stdout] --> src/concepts/asynchronous/sample_api.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn get_page(i: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_page_random_failed` is never used [INFO] [stdout] --> src/concepts/asynchronous/sample_api.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub async fn get_page_random_failed(i: usize) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_thread` is never used [INFO] [stdout] --> src/concepts/asynchronous/thread.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn simple_thread() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/concepts/smart_pointers/interior_mutability_pattern.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | pub enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/concepts/smart_pointers/list.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/concepts/smart_pointers/reference_count.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/concepts/smart_pointers/xderef.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 6 | impl MyBox { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 7 | pub(crate) fn new(x: T) -> MyBox { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `draw` is never used [INFO] [stdout] --> src/patterns/factory/factory.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Shape { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 2 | fn draw(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Rectangle` and `Circle` are never constructed [INFO] [stdout] --> src/patterns/factory/factory.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ShapeType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 6 | Rectangle, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | Circle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `map_employee_to_people` is never used [INFO] [stdout] --> src/techniques/type_conversion/type_conversion.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn map_employee_to_people(emp: Employee) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/concepts/smart_pointers/interior_mutability_pattern.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 60 | Cons(Rc>, Rc>), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` 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] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 60 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/concepts/smart_pointers/list.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | Cons(T, Box>), [INFO] [stdout] | ---- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 3 | Cons(T, ()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/concepts/smart_pointers/reference_count.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | Cons(T, Rc>), [INFO] [stdout] | ---- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | Cons(T, ()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.10s [INFO] running `Command { std: "docker" "inspect" "a2440d1dda649803064cb6f383e678f15ebdd75d26c8f3d735906e071528b5c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2440d1dda649803064cb6f383e678f15ebdd75d26c8f3d735906e071528b5c6", kill_on_drop: false }` [INFO] [stdout] a2440d1dda649803064cb6f383e678f15ebdd75d26c8f3d735906e071528b5c6