[INFO] cloning repository https://github.com/leecobaby/study-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/leecobaby/study-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleecobaby%2Fstudy-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleecobaby%2Fstudy-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d7cb5e178d0d2d6794201af8b33d067ab635bef3 [INFO] checking leecobaby/study-rust against try#b32fc44666c052e7cf07ab471bfb6f9ec571902f for pr-138676 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleecobaby%2Fstudy-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/leecobaby/study-rust on toolchain b32fc44666c052e7cf07ab471bfb6f9ec571902f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b32fc44666c052e7cf07ab471bfb6f9ec571902f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/leecobaby/study-rust [INFO] finished tweaking git repo https://github.com/leecobaby/study-rust [INFO] tweaked toml for git repo https://github.com/leecobaby/study-rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/leecobaby/study-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" "+b32fc44666c052e7cf07ab471bfb6f9ec571902f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profiles [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 leecobaby/study-rust against try#b32fc44666c052e7cf07ab471bfb6f9ec571902f for pr-138676 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleecobaby%2Fstudy-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/leecobaby/study-rust on toolchain b32fc44666c052e7cf07ab471bfb6f9ec571902f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b32fc44666c052e7cf07ab471bfb6f9ec571902f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/leecobaby/study-rust [INFO] finished tweaking git repo https://github.com/leecobaby/study-rust [INFO] tweaked toml for git repo https://github.com/leecobaby/study-rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/leecobaby/study-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" "+b32fc44666c052e7cf07ab471bfb6f9ec571902f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profiles [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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+b32fc44666c052e7cf07ab471bfb6f9ec571902f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 519304f4659ecd87ef9b436fb194de264ecd4e5ad9e5be0f4ad952b405f6991f [INFO] running `Command { std: "docker" "start" "-a" "519304f4659ecd87ef9b436fb194de264ecd4e5ad9e5be0f4ad952b405f6991f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "519304f4659ecd87ef9b436fb194de264ecd4e5ad9e5be0f4ad952b405f6991f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "519304f4659ecd87ef9b436fb194de264ecd4e5ad9e5be0f4ad952b405f6991f", kill_on_drop: false }` [INFO] [stdout] 519304f4659ecd87ef9b436fb194de264ecd4e5ad9e5be0f4ad952b405f6991f [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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+b32fc44666c052e7cf07ab471bfb6f9ec571902f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3990558ce38ed57a9e99e25184f0f98249fa7cad277f6cee209e33743a995520 [INFO] running `Command { std: "docker" "start" "-a" "3990558ce38ed57a9e99e25184f0f98249fa7cad277f6cee209e33743a995520", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profiles [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking study_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/13-2.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | let n = example_closure(5); [INFO] [stdout] | --------------- ^- help: try using a conversion method: `.to_string()` [INFO] [stdout] | | | [INFO] [stdout] | | expected `String`, found integer [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: expected because the closure was earlier called with an argument of type `String` [INFO] [stdout] --> src/bin/13-2.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | let s = example_closure(String::from("hello")); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^^^^^^ expected because this argument is of type `String` [INFO] [stdout] | | [INFO] [stdout] | in this closure call [INFO] [stdout] note: closure parameter defined here [INFO] [stdout] --> src/bin/13-2.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | let example_closure = |x| x; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `io` is defined multiple times [INFO] [stdout] --> src/bin/7-5.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 18 | use std::{cmp::Ordering, io}; [INFO] [stdout] | -- previous import of the module `io` here [INFO] [stdout] ... [INFO] [stdout] 21 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^-- [INFO] [stdout] | | [INFO] [stdout] | `io` reimported here [INFO] [stdout] | help: remove unnecessary import [INFO] [stdout] | [INFO] [stdout] = note: `io` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/bin/7-5.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/7-5.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp::Ordering` and `io` [INFO] [stdout] --> src/bin/7-5.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | use std::{cmp::Ordering, io}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write` and `self` [INFO] [stdout] --> src/bin/7-5.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/10-7.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let i = ImportantExcerpt { [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: unused variable: `x` [INFO] [stdout] --> src/bin/10-7.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `study_rust` (bin "13-2") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/10-7.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `result` [INFO] [stdout] --> src/bin/10-7.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | result.as_str() [INFO] [stdout] | ------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `result` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `study_rust` (bin "7-5" test) due to 1 previous error; 4 warnings emitted [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/bin/15-3.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `study_rust` (bin "10-7") due to 1 previous error; 3 warnings emitted [INFO] [stdout] error[E0601]: `main` function not found in crate `15_0` [INFO] [stdout] --> src/bin/15-0.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | // 引用循环 [INFO] [stdout] | ^ consider adding a `main` function to `src/bin/15-0.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 `study_rust` (bin "15-0") due to 1 previous error [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/15-1.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | Cons(i32, Box), [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] 29 - Cons(i32, Box), [INFO] [stdout] 29 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3990558ce38ed57a9e99e25184f0f98249fa7cad277f6cee209e33743a995520", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3990558ce38ed57a9e99e25184f0f98249fa7cad277f6cee209e33743a995520", kill_on_drop: false }` [INFO] [stdout] 3990558ce38ed57a9e99e25184f0f98249fa7cad277f6cee209e33743a995520