[INFO] cloning repository https://github.com/deliangyang/test-work [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/deliangyang/test-work" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeliangyang%2Ftest-work", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeliangyang%2Ftest-work'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 06a871132d3d7ed07cfffd69609401561c5fc507 [INFO] checking deliangyang/test-work/06a871132d3d7ed07cfffd69609401561c5fc507 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeliangyang%2Ftest-work" "/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/deliangyang/test-work on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/deliangyang/test-work [INFO] finished tweaking git repo https://github.com/deliangyang/test-work [INFO] tweaked toml for git repo https://github.com/deliangyang/test-work written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/deliangyang/test-work 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e27f0868eaa8c91dfffb4013c66ee8daec0ae0cfb0a3f7fb6554ca52a73d2f5f [INFO] running `Command { std: "docker" "start" "-a" "e27f0868eaa8c91dfffb4013c66ee8daec0ae0cfb0a3f7fb6554ca52a73d2f5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e27f0868eaa8c91dfffb4013c66ee8daec0ae0cfb0a3f7fb6554ca52a73d2f5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e27f0868eaa8c91dfffb4013c66ee8daec0ae0cfb0a3f7fb6554ca52a73d2f5f", kill_on_drop: false }` [INFO] [stdout] e27f0868eaa8c91dfffb4013c66ee8daec0ae0cfb0a3f7fb6554ca52a73d2f5f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c95903c886fdac7a81e180596b3d259f932f8c1c9f72530a55e1a568000b496d [INFO] running `Command { std: "docker" "start" "-a" "c95903c886fdac7a81e180596b3d259f932f8c1c9f72530a55e1a568000b496d", kill_on_drop: false }` [INFO] [stderr] Checking tinyvec v0.3.4 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Checking unicode-normalization v0.1.13 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking test-work v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] attr: "test" [INFO] [stdout] result: TokenStream [Ident { ident: "test", span: #0 bytes(563..567) }] [INFO] [stdout] item: "fn test() {}" [INFO] [stdout] error[E0601]: `main` function not found in crate `kth_node_from_end_of_list_lcci` [INFO] [stdout] --> src/bin/kth-node-from-end-of-list-lcci.rs:55:2 [INFO] [stdout] | [INFO] [stdout] 55 | } [INFO] [stdout] | ^ consider adding a `main` function to `src/bin/kth-node-from-end-of-list-lcci.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Struct` is never constructed [INFO] [stdout] --> src/bin/macro.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Struct {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `longest_2` in this scope [INFO] [stdout] --> src/bin/ownership.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | println!("the longest2 is: {}", longest_2( [INFO] [stdout] | ^^^^^^^^^ help: a function with a similar name exists: `longest` [INFO] [stdout] ... [INFO] [stdout] 56 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ------------------------------------------------- similarly named function `longest` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/rc.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | Cons(i32, 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] 32 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `Result`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/bin/thread.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | for txt in rx.recv() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 23 | while let Ok(txt) = rx.recv() { [INFO] [stdout] | ~~~~~~~~~~~~~ ~~~ [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 23 | if let Ok(txt) = rx.recv() { [INFO] [stdout] | ~~~~~~~~~~ ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `test-work` (bin "kth-node-from-end-of-list-lcci") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `test-work` (bin "ownership") due to 2 previous errors [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/rc.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | Cons(i32, 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] 32 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/bin/ref_cell.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | parent: RefCell>, [INFO] [stdout] 9 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/bin/ref_cell.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | parent: RefCell>, [INFO] [stdout] 9 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `longest_2` in this scope [INFO] [stdout] --> src/bin/ownership.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | println!("the longest2 is: {}", longest_2( [INFO] [stdout] | ^^^^^^^^^ help: a function with a similar name exists: `longest` [INFO] [stdout] ... [INFO] [stdout] 56 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ------------------------------------------------- similarly named function `longest` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `test-work` (bin "ownership" test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "c95903c886fdac7a81e180596b3d259f932f8c1c9f72530a55e1a568000b496d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c95903c886fdac7a81e180596b3d259f932f8c1c9f72530a55e1a568000b496d", kill_on_drop: false }` [INFO] [stdout] c95903c886fdac7a81e180596b3d259f932f8c1c9f72530a55e1a568000b496d