[INFO] cloning repository https://github.com/flamingoodev/rust-learn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/flamingoodev/rust-learn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fflamingoodev%2Frust-learn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fflamingoodev%2Frust-learn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 04b01491128fadb498aefdd705e107c6cbf1869c [INFO] checking flamingoodev/rust-learn against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fflamingoodev%2Frust-learn" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/flamingoodev/rust-learn on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/flamingoodev/rust-learn [INFO] finished tweaking git repo https://github.com/flamingoodev/rust-learn [INFO] tweaked toml for git repo https://github.com/flamingoodev/rust-learn written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/flamingoodev/rust-learn already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ea257bb0e199e91819f08146366dac33e906b2cf61258435ba4eb05dd61c736f [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" "ea257bb0e199e91819f08146366dac33e906b2cf61258435ba4eb05dd61c736f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea257bb0e199e91819f08146366dac33e906b2cf61258435ba4eb05dd61c736f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea257bb0e199e91819f08146366dac33e906b2cf61258435ba4eb05dd61c736f", kill_on_drop: false }` [INFO] [stdout] ea257bb0e199e91819f08146366dac33e906b2cf61258435ba4eb05dd61c736f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 83c5e9184b41713ae88916ae132e9c3d5cde2e82cbee358db57d8f6cc17ea9c7 [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" "83c5e9184b41713ae88916ae132e9c3d5cde2e82cbee358db57d8f6cc17ea9c7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rust-learn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/syntax/t_type.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let num = 42u32; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/syntax/t_type.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let num: u32 = 42; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/syntax/t_type.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let num = 42u32; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/syntax/t_type.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let num: u32 = 42; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/syntax/t_type.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let num = 0x2A; // 十六进制 [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/syntax/t_type.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let num = 0o106; // 八进制 [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/syntax/t_type.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let num = 3.55f64; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/syntax/t_type.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let num = 0x2A; // 十六进制 [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/syntax/t_type.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let num = 0o106; // 八进制 [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/syntax/t_type.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let num = 3.55f64; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syntax/t_type.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut mut_arr = [1, 2, 3]; [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: function is never used: `if_let` [INFO] [stdout] --> src/collections/t_vector.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn if_let() -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/collections/t_vector.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `while_let` [INFO] [stdout] --> src/collections/t_vector.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn while_let() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/collections/t_vector.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pri_print_role` [INFO] [stdout] --> src/routes/role.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn pri_print_role() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/routes/role.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pri_print_user` [INFO] [stdout] --> src/routes/user.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn pri_print_user() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `math` [INFO] [stdout] --> src/syntax/t_closure.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn math i32>(op: F) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/syntax/t_closure.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `two_times_impl` [INFO] [stdout] --> src/syntax/t_closure.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn two_times_impl() -> impl Fn(i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/syntax/t_closure.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `math` [INFO] [stdout] --> src/syntax/t_function.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn math(op: fn(i32, i32) -> i32, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syntax/t_type.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut mut_arr = [1, 2, 3]; [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: function is never used: `pri_print_role` [INFO] [stdout] --> src/routes/role.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn pri_print_role() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/routes/role.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pri_print_user` [INFO] [stdout] --> src/routes/user.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn pri_print_user() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum` [INFO] [stdout] --> src/syntax/t_function.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn sum(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `product` [INFO] [stdout] --> src/syntax/t_function.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn product(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_len` [INFO] [stdout] --> src/syntax/t_function.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | const fn init_len() -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `t_type` [INFO] [stdout] --> src/syntax/t_type.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn t_type() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.50s [INFO] running `Command { std: "docker" "inspect" "83c5e9184b41713ae88916ae132e9c3d5cde2e82cbee358db57d8f6cc17ea9c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83c5e9184b41713ae88916ae132e9c3d5cde2e82cbee358db57d8f6cc17ea9c7", kill_on_drop: false }` [INFO] [stdout] 83c5e9184b41713ae88916ae132e9c3d5cde2e82cbee358db57d8f6cc17ea9c7