[INFO] cloning repository https://github.com/leojeb/ProgrammingRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/leojeb/ProgrammingRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleojeb%2FProgrammingRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleojeb%2FProgrammingRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1294d3cd7de3cc2595d2c2afe582a1e3aa32c098 [INFO] checking leojeb/ProgrammingRust against master#8f359beca4e58bc3ae795a666301a8f47023044c for pr-121557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleojeb%2FProgrammingRust" "/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/leojeb/ProgrammingRust on toolchain 8f359beca4e58bc3ae795a666301a8f47023044c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8f359beca4e58bc3ae795a666301a8f47023044c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/leojeb/ProgrammingRust [INFO] finished tweaking git repo https://github.com/leojeb/ProgrammingRust [INFO] tweaked toml for git repo https://github.com/leojeb/ProgrammingRust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/leojeb/ProgrammingRust 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" "+8f359beca4e58bc3ae795a666301a8f47023044c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking leojeb/ProgrammingRust against try#80d5fe37e16a0befb4128414cb6a11d544788c0a for pr-121557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleojeb%2FProgrammingRust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/leojeb/ProgrammingRust on toolchain 80d5fe37e16a0befb4128414cb6a11d544788c0a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+80d5fe37e16a0befb4128414cb6a11d544788c0a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/leojeb/ProgrammingRust [INFO] finished tweaking git repo https://github.com/leojeb/ProgrammingRust [INFO] tweaked toml for git repo https://github.com/leojeb/ProgrammingRust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/leojeb/ProgrammingRust 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" "+80d5fe37e16a0befb4128414cb6a11d544788c0a" "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 leojeb/ProgrammingRust against try#80d5fe37e16a0befb4128414cb6a11d544788c0a for pr-121557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleojeb%2FProgrammingRust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/leojeb/ProgrammingRust on toolchain 80d5fe37e16a0befb4128414cb6a11d544788c0a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+80d5fe37e16a0befb4128414cb6a11d544788c0a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/leojeb/ProgrammingRust [INFO] finished tweaking git repo https://github.com/leojeb/ProgrammingRust [INFO] tweaked toml for git repo https://github.com/leojeb/ProgrammingRust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/leojeb/ProgrammingRust 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" "+80d5fe37e16a0befb4128414cb6a11d544788c0a" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+80d5fe37e16a0befb4128414cb6a11d544788c0a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8f08ccfbc4d3ca6f51ccf936143d1f14a92e4ba79db03274778587f95d859882 [INFO] running `Command { std: "docker" "start" "-a" "8f08ccfbc4d3ca6f51ccf936143d1f14a92e4ba79db03274778587f95d859882", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8f08ccfbc4d3ca6f51ccf936143d1f14a92e4ba79db03274778587f95d859882", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f08ccfbc4d3ca6f51ccf936143d1f14a92e4ba79db03274778587f95d859882", kill_on_drop: false }` [INFO] [stdout] 8f08ccfbc4d3ca6f51ccf936143d1f14a92e4ba79db03274778587f95d859882 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+80d5fe37e16a0befb4128414cb6a11d544788c0a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0dabfabe73a72a0c7743270ece1c3871b00b0f537e0d6d48bcb4fefccbed105c [INFO] running `Command { std: "docker" "start" "-a" "0dabfabe73a72a0c7743270ece1c3871b00b0f537e0d6d48bcb4fefccbed105c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling cc v1.0.82 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking pin-project-lite v0.2.12 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling pear_codegen v0.1.5 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Compiling openssl-sys v0.9.91 [INFO] [stderr] Compiling serde v1.0.183 [INFO] [stderr] Checking percent-encoding v2.2.0 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking universal-hash v0.4.1 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling openssl v0.10.56 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking cpuid-bool v0.2.0 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking polyval v0.4.5 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Checking aes-soft v0.6.4 [INFO] [stderr] Checking crypto-mac v0.10.1 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling devise_core v0.2.1 [INFO] [stderr] Checking aes v0.6.0 [INFO] [stderr] Checking hmac v0.10.1 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Checking ghash v0.3.1 [INFO] [stderr] Checking ctr v0.6.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking aead v0.3.2 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Checking cpufeatures v0.2.7 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling devise_codegen v0.2.1 [INFO] [stderr] Compiling cookie v0.11.5 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking aes-gcm v0.8.0 [INFO] [stderr] Checking hkdf v0.10.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking form_urlencoded v1.1.0 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Compiling rocket_codegen v0.4.11 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling state v0.4.2 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling pear v0.1.5 [INFO] [stderr] Compiling devise v0.2.1 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Compiling rocket v0.4.11 [INFO] [stderr] Compiling rocket_http v0.4.11 [INFO] [stderr] Compiling serde_json v1.0.96 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Checking url v2.3.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking encoding_rs v0.8.32 [INFO] [stderr] Checking base64 v0.21.2 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking ipnet v2.8.0 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking h2 v0.3.20 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.18 [INFO] [stderr] Checking hello v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `s1_enums` [INFO] [stdout] --> src/ch10_enums_and_patterns/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod s1_enums; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `s1_enums`, create file "src/ch10_enums_and_patterns/s1_enums.rs" or "src/ch10_enums_and_patterns/s1_enums/mod.rs" [INFO] [stdout] = note: if there is a `mod s1_enums` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `s2_patterns` [INFO] [stdout] --> src/ch10_enums_and_patterns/mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod s2_patterns; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `s2_patterns`, create file "src/ch10_enums_and_patterns/s2_patterns.rs" or "src/ch10_enums_and_patterns/s2_patterns/mod.rs" [INFO] [stdout] = note: if there is a `mod s2_patterns` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `->`, `where`, or `{`, found `` [INFO] [stdout] --> src/leet/two_sum.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | fn two_sum() [INFO] [stdout] | ^ expected one of `->`, `where`, or `{` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `{`, found `:` [INFO] [stdout] --> src/leet/dynamic_planning/mod.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | for c in s: [INFO] [stdout] | ^ expected `{` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f32::consts::E` [INFO] [stdout] --> src/ch9_structs/method/mod.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{rc::Rc, io, f32::consts::E}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::structs_intro::GrayScaleMap` [INFO] [stdout] --> src/ch9_structs/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use self::structs_intro::GrayScaleMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/ch19_concurrency/s3_mutex/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | / ... /** [INFO] [stdout] 39 | | ... * 通道(channel)是多消费者单生产者的,无法做到多线程同时获取一个通道里的内容,将通道用作共享工作列表 ... [INFO] [stdout] 40 | | ... */ [INFO] [stdout] | |_________^ [INFO] [stdout] 41 | ... guard.push(player); [INFO] [stdout] | ------------------ rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `s1_enums` [INFO] [stdout] --> src/ch10_enums_and_patterns/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod s1_enums; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `s1_enums`, create file "src/ch10_enums_and_patterns/s1_enums.rs" or "src/ch10_enums_and_patterns/s1_enums/mod.rs" [INFO] [stdout] = note: if there is a `mod s1_enums` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `s2_patterns` [INFO] [stdout] --> src/ch10_enums_and_patterns/mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod s2_patterns; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `s2_patterns`, create file "src/ch10_enums_and_patterns/s2_patterns.rs" or "src/ch10_enums_and_patterns/s2_patterns/mod.rs" [INFO] [stdout] = note: if there is a `mod s2_patterns` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `->`, `where`, or `{`, found `` [INFO] [stdout] --> src/leet/two_sum.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | fn two_sum() [INFO] [stdout] | ^ expected one of `->`, `where`, or `{` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `{`, found `:` [INFO] [stdout] --> src/leet/dynamic_planning/mod.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | for c in s: [INFO] [stdout] | ^ expected `{` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f32::consts::E` [INFO] [stdout] --> src/ch9_structs/method/mod.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{rc::Rc, io, f32::consts::E}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::structs_intro::GrayScaleMap` [INFO] [stdout] --> src/ch9_structs/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use self::structs_intro::GrayScaleMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::spawn` [INFO] [stdout] --> src/ch19_concurrency/s1_fork_join_parallalism/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread::spawn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/ch19_concurrency/s3_mutex/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/ch19_concurrency/s3_mutex/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::RwLock` [INFO] [stdout] --> src/ch19_concurrency/s3_mutex/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/ch19_concurrency/s3_mutex/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | / ... /** [INFO] [stdout] 39 | | ... * 通道(channel)是多消费者单生产者的,无法做到多线程同时获取一个通道里的内容,将通道用作共享工作列表 ... [INFO] [stdout] 40 | | ... */ [INFO] [stdout] | |_________^ [INFO] [stdout] 41 | ... guard.push(player); [INFO] [stdout] | ------------------ rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ele` [INFO] [stdout] --> src/ch9_structs/method/mod.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let ele = res.pop(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ele` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c1` [INFO] [stdout] --> src/ch9_structs/method/mod.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let c1 = Queue::::Zero; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ch9_structs/method/mod.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let mut rcq = Rc::new(Queue::::new()); [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: `players` [INFO] [stdout] --> src/ch19_concurrency/s3_mutex/mod.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let players = guard.split_off(0); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_players` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/ch19_concurrency/s3_mutex/mod.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let app = Arc::new(FernEmpireApp { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ele` [INFO] [stdout] --> src/ch9_structs/method/mod.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let ele = res.pop(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ele` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c1` [INFO] [stdout] --> src/ch9_structs/method/mod.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let c1 = Queue::::Zero; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ch9_structs/method/mod.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let mut rcq = Rc::new(Queue::::new()); [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: `players` [INFO] [stdout] --> src/ch19_concurrency/s3_mutex/mod.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let players = guard.split_off(0); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_players` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0583`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0583`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hello` (lib test) due to 5 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `hello` (lib) due to 5 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0dabfabe73a72a0c7743270ece1c3871b00b0f537e0d6d48bcb4fefccbed105c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0dabfabe73a72a0c7743270ece1c3871b00b0f537e0d6d48bcb4fefccbed105c", kill_on_drop: false }` [INFO] [stdout] 0dabfabe73a72a0c7743270ece1c3871b00b0f537e0d6d48bcb4fefccbed105c