[INFO] cloning repository https://github.com/emirtotic/rust-learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/emirtotic/rust-learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femirtotic%2Frust-learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femirtotic%2Frust-learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5cb11dba1fa48cde8891a39cc6e182003e6162e4 [INFO] checking emirtotic/rust-learning against try#e90f1ff63e694965281f833819a486da29772bdf for pr-146167 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femirtotic%2Frust-learning" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/emirtotic/rust-learning [INFO] finished tweaking git repo https://github.com/emirtotic/rust-learning [INFO] tweaked toml for git repo https://github.com/emirtotic/rust-learning written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/emirtotic/rust-learning on toolchain e90f1ff63e694965281f833819a486da29772bdf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/emirtotic/rust-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" "+e90f1ff63e694965281f833819a486da29772bdf" "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-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 828b6ad4d035377bdd3734a4c9ecafd9ed75bd81bd8b47110470efface6fd02a [INFO] running `Command { std: "docker" "start" "-a" "828b6ad4d035377bdd3734a4c9ecafd9ed75bd81bd8b47110470efface6fd02a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "828b6ad4d035377bdd3734a4c9ecafd9ed75bd81bd8b47110470efface6fd02a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "828b6ad4d035377bdd3734a4c9ecafd9ed75bd81bd8b47110470efface6fd02a", kill_on_drop: false }` [INFO] [stdout] 828b6ad4d035377bdd3734a4c9ecafd9ed75bd81bd8b47110470efface6fd02a [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6fa99b95759f5dc3c7570da2370217b5e3980836ad454eb100dc981ec4e01ce7 [INFO] running `Command { std: "docker" "start" "-a" "6fa99b95759f5dc3c7570da2370217b5e3980836ad454eb100dc981ec4e01ce7", kill_on_drop: false }` [INFO] [stderr] Checking untitled v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/practice/main.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 59 | struct Hero { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 60 | [INFO] [stdout] 61 | id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addHealth` should have a snake case name [INFO] [stdout] --> src/bin/practice/main.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | fn addHealth(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_health` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `removeHealth` should have a snake case name [INFO] [stdout] --> src/bin/practice/main.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | fn removeHealth(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `remove_health` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `printHero` should have a snake case name [INFO] [stdout] --> src/bin/practice/main.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | fn printHero(&mut self) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `print_hero` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_X` should have a snake case name [INFO] [stdout] --> src/bin/operations/main.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let _X = { [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_SUM` should have a snake case name [INFO] [stdout] --> src/bin/operations/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let _SUM = sum(2, 3); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_O` should have a snake case name [INFO] [stdout] --> src/bin/operations/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let _O = operations("*", 2, 3); [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_C` should have a snake case name [INFO] [stdout] --> src/bin/operations/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let _C = calculation("*", 2, 3); [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `string` in this scope [INFO] [stdout] --> src/bin/ownership/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | fn test(s: &string) { [INFO] [stdout] | ^^^^^^ help: a struct with a similar name exists (notice the capitalization): `String` [INFO] [stdout] | [INFO] [stdout] --> /rustc/e90f1ff63e694965281f833819a486da29772bdf/library/alloc/src/string.rs:360:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `String` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `s1` in this scope [INFO] [stdout] --> src/bin/ownership/main.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | println!("{}", &s1); [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `untitled` (bin "ownership" test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable `_X` should have a snake case name [INFO] [stdout] --> src/bin/operations/main.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let _X = { [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_SUM` should have a snake case name [INFO] [stdout] --> src/bin/operations/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let _SUM = sum(2, 3); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_O` should have a snake case name [INFO] [stdout] --> src/bin/operations/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let _O = operations("*", 2, 3); [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_C` should have a snake case name [INFO] [stdout] --> src/bin/operations/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let _C = calculation("*", 2, 3); [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/practice/main.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 59 | struct Hero { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 60 | [INFO] [stdout] 61 | id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addHealth` should have a snake case name [INFO] [stdout] --> src/bin/practice/main.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | fn addHealth(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_health` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `removeHealth` should have a snake case name [INFO] [stdout] --> src/bin/practice/main.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | fn removeHealth(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `remove_health` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `printHero` should have a snake case name [INFO] [stdout] --> src/bin/practice/main.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | fn printHero(&mut self) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `print_hero` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `string` in this scope [INFO] [stdout] --> src/bin/ownership/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | fn test(s: &string) { [INFO] [stdout] | ^^^^^^ help: a struct with a similar name exists (notice the capitalization): `String` [INFO] [stdout] | [INFO] [stdout] --> /rustc/e90f1ff63e694965281f833819a486da29772bdf/library/alloc/src/string.rs:360:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `String` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `s1` in this scope [INFO] [stdout] --> src/bin/ownership/main.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | println!("{}", &s1); [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `untitled` (bin "ownership") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "6fa99b95759f5dc3c7570da2370217b5e3980836ad454eb100dc981ec4e01ce7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fa99b95759f5dc3c7570da2370217b5e3980836ad454eb100dc981ec4e01ce7", kill_on_drop: false }` [INFO] [stdout] 6fa99b95759f5dc3c7570da2370217b5e3980836ad454eb100dc981ec4e01ce7