[INFO] cloning repository https://github.com/bookinstock/rust_example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bookinstock/rust_example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbookinstock%2Frust_example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbookinstock%2Frust_example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c83d144f2d500cd60a59da5019b4bc5ca7d2d36f [INFO] checking bookinstock/rust_example against try#7b3565da729099dbe807466fcd118fb2815986e0 for pr-81789 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbookinstock%2Frust_example" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bookinstock/rust_example on toolchain 7b3565da729099dbe807466fcd118fb2815986e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7b3565da729099dbe807466fcd118fb2815986e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bookinstock/rust_example [INFO] finished tweaking git repo https://github.com/bookinstock/rust_example [INFO] tweaked toml for git repo https://github.com/bookinstock/rust_example written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/bookinstock/rust_example already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7b3565da729099dbe807466fcd118fb2815986e0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+7b3565da729099dbe807466fcd118fb2815986e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e2e0df9ae8d57e7cd5d329ecf1c7063a42aaddc17b7e304492a1f13adf55d215 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e2e0df9ae8d57e7cd5d329ecf1c7063a42aaddc17b7e304492a1f13adf55d215", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e2e0df9ae8d57e7cd5d329ecf1c7063a42aaddc17b7e304492a1f13adf55d215", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2e0df9ae8d57e7cd5d329ecf1c7063a42aaddc17b7e304492a1f13adf55d215", kill_on_drop: false }` [INFO] [stdout] e2e0df9ae8d57e7cd5d329ecf1c7063a42aaddc17b7e304492a1f13adf55d215 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+7b3565da729099dbe807466fcd118fb2815986e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b52e17cfca974781edfd3ccf7b96a229f1cc44a93dd10139f4740ccaf3ecfde7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b52e17cfca974781edfd3ccf7b96a229f1cc44a93dd10139f4740ccaf3ecfde7", kill_on_drop: false }` [INFO] [stderr] Checking rust_example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0601]: `main` function not found in crate `_m` [INFO] [stdout] --> src/bin/_m.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / pub fn xx() { [INFO] [stdout] 2 | | println!("m xx"); [INFO] [stdout] 3 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/_m.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [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_example` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `logical` [INFO] [stdout] --> src/bin/primitive.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let logical: bool = true; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_logical` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `error` [INFO] [stdout] --> src/bin/error.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | */ [INFO] [stdout] | ^ consider adding a `main` function to `src/bin/error.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `trait` [INFO] [stdout] --> src/bin/trait.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | */ [INFO] [stdout] | ^ consider adding a `main` function to `src/bin/trait.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: the item `From` is imported redundantly [INFO] [stdout] --> src/bin/conversion.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | use std::convert::From; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/bin/conversion.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_float` [INFO] [stdout] --> src/bin/primitive.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let a_float: f64 = 1.0; // 常规说明 [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `an_integer` [INFO] [stdout] --> src/bin/primitive.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let an_integer = 5i32; // 后缀说明 [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_an_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default_float` [INFO] [stdout] --> src/bin/primitive.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let default_float = 3.0; // `f64` [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default_integer` [INFO] [stdout] --> src/bin/primitive.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let default_integer = 7; // `i32` [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inferred_type` is assigned to, but never used [INFO] [stdout] --> src/bin/primitive.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let mut inferred_type = 12; // 根据下一行的赋值推断为 i64 类型 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_inferred_type` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inferred_type` is never read [INFO] [stdout] --> src/bin/primitive.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | inferred_type = 4294967296i64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mutable` is assigned to, but never used [INFO] [stdout] --> src/bin/primitive.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut mutable = 12; // Mutable `i32` [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_mutable` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mutable` is never read [INFO] [stdout] --> src/bin/primitive.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | mutable = 21; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mutable` [INFO] [stdout] --> src/bin/primitive.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mutable = true; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `From` is imported redundantly [INFO] [stdout] --> src/bin/conversion.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | use std::convert::From; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/bin/conversion.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `futures` [INFO] [stdout] --> src/bin/async.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::executor::block_on; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `futures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/bin/control_flow.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `noisy_unused_variable` [INFO] [stdout] --> src/bin/var_binding.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let noisy_unused_variable = 2u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_noisy_unused_variable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/bin/control_flow.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_string` [INFO] [stdout] --> src/bin/conversion.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let my_string = String::from(my_str); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_string` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/bin/conversion.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | #[warn(unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `block_on` in this scope [INFO] [stdout] --> src/bin/async.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | block_on(future); // `future` is run and "hello, world!" is printed [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/control_flow.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 122 | break 'outer; [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 125 | println!("never reach"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_string` [INFO] [stdout] --> src/bin/conversion.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let my_string = String::from(my_str); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_string` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/bin/conversion.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | #[warn(unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/control_flow.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 122 | break 'outer; [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 125 | println!("never reach"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Nil` [INFO] [stdout] --> src/bin/custom_type.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct Nil; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rich` [INFO] [stdout] --> src/bin/custom_type.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | Rich, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Soldier` [INFO] [stdout] --> src/bin/custom_type.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | Soldier, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Red` [INFO] [stdout] --> src/bin/control_flow.rs:247:9 [INFO] [stdout] | [INFO] [stdout] 247 | Red, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Blue` [INFO] [stdout] --> src/bin/control_flow.rs:248:9 [INFO] [stdout] | [INFO] [stdout] 248 | Blue, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Green` [INFO] [stdout] --> src/bin/control_flow.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `HSV` [INFO] [stdout] --> src/bin/control_flow.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | HSV(u32, u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `HSL` [INFO] [stdout] --> src/bin/control_flow.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 252 | HSL(u32, u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CMY` [INFO] [stdout] --> src/bin/control_flow.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | CMY(u32, u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CMYK` [INFO] [stdout] --> src/bin/control_flow.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | CMYK(u32, u32, u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b52e17cfca974781edfd3ccf7b96a229f1cc44a93dd10139f4740ccaf3ecfde7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b52e17cfca974781edfd3ccf7b96a229f1cc44a93dd10139f4740ccaf3ecfde7", kill_on_drop: false }` [INFO] [stdout] b52e17cfca974781edfd3ccf7b96a229f1cc44a93dd10139f4740ccaf3ecfde7