[INFO] cloning repository https://github.com/leijianxiong/learn-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/leijianxiong/learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleijianxiong%2Flearn-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleijianxiong%2Flearn-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 63b87b9bb3d5e5de9543174709ea7368f8653b6d [INFO] checking leijianxiong/learn-rust against try#9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleijianxiong%2Flearn-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/leijianxiong/learn-rust on toolchain 9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/leijianxiong/learn-rust [INFO] finished tweaking git repo https://github.com/leijianxiong/learn-rust [INFO] tweaked toml for git repo https://github.com/leijianxiong/learn-rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/leijianxiong/learn-rust 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" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking leijianxiong/learn-rust against try#9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleijianxiong%2Flearn-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/leijianxiong/learn-rust on toolchain 9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/leijianxiong/learn-rust [INFO] finished tweaking git repo https://github.com/leijianxiong/learn-rust [INFO] tweaked toml for git repo https://github.com/leijianxiong/learn-rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/leijianxiong/learn-rust 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" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5927223b0a51fc92a3354ea1b70e1d444de5243639d910cc604ffbc5983990e1 [INFO] running `Command { std: "docker" "start" "-a" "5927223b0a51fc92a3354ea1b70e1d444de5243639d910cc604ffbc5983990e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5927223b0a51fc92a3354ea1b70e1d444de5243639d910cc604ffbc5983990e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5927223b0a51fc92a3354ea1b70e1d444de5243639d910cc604ffbc5983990e1", kill_on_drop: false }` [INFO] [stdout] 5927223b0a51fc92a3354ea1b70e1d444de5243639d910cc604ffbc5983990e1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 68764366447c5899f816084d81add2cea8b5c9ba0566102dbb2509550d79afd2 [INFO] running `Command { std: "docker" "start" "-a" "68764366447c5899f816084d81add2cea8b5c9ba0566102dbb2509550d79afd2", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.10 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Checking once_cell v1.12.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking os_str_bytes v6.1.0 [INFO] [stderr] Compiling anyhow v1.0.58 [INFO] [stderr] Checking regex-syntax v0.6.26 [INFO] [stderr] Checking either v1.7.0 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking ryu v1.0.10 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.9 [INFO] [stderr] Compiling indexmap v1.8.2 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Checking clap_lex v0.2.0 [INFO] [stderr] Checking crossbeam-channel v0.5.5 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking glob v0.3.0 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking regex v1.5.6 [INFO] [stderr] Checking toml v0.5.9 [INFO] [stderr] Checking serde_yaml v0.8.24 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling clap_derive v3.1.18 [INFO] [stderr] Checking tokio v1.19.2 [INFO] [stderr] Checking clap v3.1.18 [INFO] [stderr] Checking learn-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `action` is never used [INFO] [stdout] --> src/bin/test_trait_like_controller_action.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | trait Action: Debug { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 20 | fn action(&self){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `Id` and `Name` are never read [INFO] [stdout] --> src/bin/test_trait_like_controller_action.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | struct GetUserResp{ [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 36 | Id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 37 | Name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GetUserResp` has derived impls for the traits `Default` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Id` should have a snake case name [INFO] [stdout] --> src/bin/test_trait_like_controller_action.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | Id: i32, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Name` should have a snake case name [INFO] [stdout] --> src/bin/test_trait_like_controller_action.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | Name: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sudoku` is never constructed [INFO] [stdout] --> src/bin/codewars_solution_02.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Sudoku { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/bin/codewars_solution_02.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Sudoku { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 11 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/bin/demo3.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/bin/demo5.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> src/bin/demo4.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{Write, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/bin/demo4.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/bin/demo3.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> src/bin/demo4.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{Write, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/bin/demo4.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `compare` [INFO] [stdout] --> src/bin/codewars_solution_03.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | macro_rules! compare { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rgb` is never used [INFO] [stdout] --> src/bin/codewars_solution_03.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn rgb(r: i32, g: i32, b: i32) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/bin/test_trait_like_abstruct_class.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 26 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has derived impls for the traits `Default` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `blog` is never read [INFO] [stdout] --> src/bin/test_trait_like_abstruct_class.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | struct Article { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 38 | blog: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Article` has derived impls for the traits `Default` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/bin/demo5.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `action` is never used [INFO] [stdout] --> src/bin/test_trait_like_controller_action.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | trait Action: Debug { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 20 | fn action(&self){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `Id` and `Name` are never read [INFO] [stdout] --> src/bin/test_trait_like_controller_action.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | struct GetUserResp{ [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 36 | Id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 37 | Name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GetUserResp` has derived impls for the traits `Default` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Id` should have a snake case name [INFO] [stdout] --> src/bin/test_trait_like_controller_action.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | Id: i32, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Name` should have a snake case name [INFO] [stdout] --> src/bin/test_trait_like_controller_action.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | Name: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `test_div` [INFO] [stdout] --> src/bin/test_div.rs:26:2 [INFO] [stdout] | [INFO] [stdout] 26 | } [INFO] [stdout] | ^ consider adding a `main` function to `src/bin/test_div.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/bin/test_trait_like_abstruct_class.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 26 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has derived impls for the traits `Default` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `learn-rust` (bin "test_div") due to 1 previous error [INFO] [stdout] warning: field `blog` is never read [INFO] [stdout] --> src/bin/test_trait_like_abstruct_class.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | struct Article { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 38 | blog: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Article` has derived impls for the traits `Default` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "68764366447c5899f816084d81add2cea8b5c9ba0566102dbb2509550d79afd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68764366447c5899f816084d81add2cea8b5c9ba0566102dbb2509550d79afd2", kill_on_drop: false }` [INFO] [stdout] 68764366447c5899f816084d81add2cea8b5c9ba0566102dbb2509550d79afd2