[INFO] cloning repository https://github.com/hearsay316/-Rust-by-example-learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hearsay316/-Rust-by-example-learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhearsay316%2F-Rust-by-example-learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhearsay316%2F-Rust-by-example-learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f243cbe85f359f7ff76bf8006e9ad09474b77226 [INFO] checking hearsay316/-Rust-by-example-learning against try#7d2afcda7a9c043d5175cbca3ab08f0acf02b13a for pr-140824 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhearsay316%2F-Rust-by-example-learning" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hearsay316/-Rust-by-example-learning on toolchain 7d2afcda7a9c043d5175cbca3ab08f0acf02b13a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7d2afcda7a9c043d5175cbca3ab08f0acf02b13a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hearsay316/-Rust-by-example-learning [INFO] finished tweaking git repo https://github.com/hearsay316/-Rust-by-example-learning [INFO] tweaked toml for git repo https://github.com/hearsay316/-Rust-by-example-learning written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/hearsay316/-Rust-by-example-learning 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" "+7d2afcda7a9c043d5175cbca3ab08f0acf02b13a" "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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+7d2afcda7a9c043d5175cbca3ab08f0acf02b13a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0bd4d0807eee0ae41d31956551ea8ce5c5eb0ff467fe0ed44dcb31e4091c4d2e [INFO] running `Command { std: "docker" "start" "-a" "0bd4d0807eee0ae41d31956551ea8ce5c5eb0ff467fe0ed44dcb31e4091c4d2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0bd4d0807eee0ae41d31956551ea8ce5c5eb0ff467fe0ed44dcb31e4091c4d2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bd4d0807eee0ae41d31956551ea8ce5c5eb0ff467fe0ed44dcb31e4091c4d2e", kill_on_drop: false }` [INFO] [stdout] 0bd4d0807eee0ae41d31956551ea8ce5c5eb0ff467fe0ed44dcb31e4091c4d2e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+7d2afcda7a9c043d5175cbca3ab08f0acf02b13a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4ee023a9538d946941aec6fd772005bff06dec0dbc74693d7444099a7005702d [INFO] running `Command { std: "docker" "start" "-a" "4ee023a9538d946941aec6fd772005bff06dec0dbc74693d7444099a7005702d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling cc v1.2.2 [INFO] [stderr] Checking litemap v0.7.4 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Checking indexmap v2.7.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling anyhow v1.0.94 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking ipnet v2.10.1 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking tokio v1.41.1 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking hyper v0.14.31 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking Rust-by-example-learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: path statement with no effect [INFO] [stdout] --> examples/ToString和FromStr.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | x; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> examples/ToString和FromStr.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | x + 1; [INFO] [stdout] | ^^^^^ the arithmetic operation produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = x + 1; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> examples/ToString和FromStr.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | 2 * x; [INFO] [stdout] | ^^^^^ the arithmetic operation produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = 2 * x; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::str::from_utf8` with an invalid literal always return an error [INFO] [stdout] --> examples/标准库字符串.rs:68:11 [INFO] [stdout] | [INFO] [stdout] 67 | let shift_jis = b"\x82\xe6\x83\xa8\x82\xb1\x82"; [INFO] [stdout] | ------------------------------- the literal was valid UTF-8 up to the 0 bytes [INFO] [stdout] 68 | match std::str::from_utf8(shift_jis) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(invalid_from_utf8)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> examples/学习SelfTy.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let a = "1".parse::().unwrap(); [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: function `handle_connection` is never used [INFO] [stdout] --> examples/并发线程池6.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn handle_connection(mut stream: TcpStream) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attempting to modify a `const` item [INFO] [stdout] --> examples/const属性的学习.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | S.x += 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> examples/const属性的学习.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const S: SS = SS { x: 42 }; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rary` [INFO] [stdout] --> examples/crate使用库.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | rary::public_function(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rary` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rary`, use `cargo add rary` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rary` [INFO] [stdout] --> examples/crate使用库.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | rary::indirect_access(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rary` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rary`, use `cargo add rary` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `some_condition` [INFO] [stdout] --> examples/属性自定义条件.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(some_condition)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(some_condition)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(some_condition)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `conditional_function` in this scope [INFO] [stdout] --> examples/属性自定义条件.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | conditional_function(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Rust-by-example-learning` (example "crate使用库") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `Rust-by-example-learning` (example "属性自定义条件") due to 1 previous error; 1 warning emitted [INFO] [stdout] error[E0601]: `main` function not found in crate `rary` [INFO] [stdout] --> examples/rary.rs:10:2 [INFO] [stdout] | [INFO] [stdout] 10 | } [INFO] [stdout] | ^ consider adding a `main` function to `examples/rary.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `Rust-by-example-learning` (example "rary") due to 1 previous error [INFO] [stdout] warning: function `bad_add` is never used [INFO] [stdout] --> examples/单元测试.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn bad_add(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/观察者模式4.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut vec = Arc::new(Mutex::new(vec![])); [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: variable does not need to be mutable [INFO] [stdout] --> examples/观察者模式4.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | let mut vec = Arc::new(Mutex::new(vec![])); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_file_number` is never used [INFO] [stdout] --> examples/观察者模式4.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn count_file_number(path: &str, fix: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `path_name_update_v2` is never used [INFO] [stdout] --> examples/观察者模式4.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn path_name_update_v2<'a>(path: &str, fix: &str, vec: &'a mut Vec) -> &'a Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `path_name_update_v4` is never used [INFO] [stdout] --> examples/观察者模式4.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn path_name_update_v4(path: &str, fix: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `path_name_update_v3` is never used [INFO] [stdout] --> examples/观察者模式4.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn path_name_update_v3( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_entry` is never used [INFO] [stdout] --> examples/观察者模式4.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn process_entry(path: PathBuf, fix: String, tx: mpsc::Sender) -> JoinHandle<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4ee023a9538d946941aec6fd772005bff06dec0dbc74693d7444099a7005702d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ee023a9538d946941aec6fd772005bff06dec0dbc74693d7444099a7005702d", kill_on_drop: false }` [INFO] [stdout] 4ee023a9538d946941aec6fd772005bff06dec0dbc74693d7444099a7005702d