[INFO] cloning repository https://github.com/vincent-thomas/rust-beginner-projects [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vincent-thomas/rust-beginner-projects" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvincent-thomas%2Frust-beginner-projects", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvincent-thomas%2Frust-beginner-projects'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fba979b394f9854096ed0966e00f8c9bc4db03a6 [INFO] checking vincent-thomas/rust-beginner-projects against try#901e6d56697c79b2e80df6a487b2318ec6f57ee3 for pr-142287 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvincent-thomas%2Frust-beginner-projects" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vincent-thomas/rust-beginner-projects on toolchain 901e6d56697c79b2e80df6a487b2318ec6f57ee3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vincent-thomas/rust-beginner-projects [INFO] finished tweaking git repo https://github.com/vincent-thomas/rust-beginner-projects [INFO] tweaked toml for git repo https://github.com/vincent-thomas/rust-beginner-projects written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/vincent-thomas/rust-beginner-projects 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" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ca1a358c10647cf71e7fbd44ee08b90287ea71024a97864c719af2363d331938 [INFO] running `Command { std: "docker" "start" "-a" "ca1a358c10647cf71e7fbd44ee08b90287ea71024a97864c719af2363d331938", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ca1a358c10647cf71e7fbd44ee08b90287ea71024a97864c719af2363d331938", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca1a358c10647cf71e7fbd44ee08b90287ea71024a97864c719af2363d331938", kill_on_drop: false }` [INFO] [stdout] ca1a358c10647cf71e7fbd44ee08b90287ea71024a97864c719af2363d331938 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bae1794bab97f4756a6ec617220fa16c96ea7885f68d321ef095705859bcab34 [INFO] running `Command { std: "docker" "start" "-a" "bae1794bab97f4756a6ec617220fa16c96ea7885f68d321ef095705859bcab34", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Checking pointers v0.1.0 (/opt/rustwide/workdir/projects/5-pointers) [INFO] [stderr] Checking basic-types v0.1.0 (/opt/rustwide/workdir/projects/2-basic-types) [INFO] [stderr] Checking functions v0.1.0 (/opt/rustwide/workdir/projects/4-functions) [INFO] [stderr] Checking hello-world v0.1.0 (/opt/rustwide/workdir/projects/1-hello-world) [INFO] [stderr] Checking loops v0.1.0 (/opt/rustwide/workdir/projects/3-loops) [INFO] [stdout] warning: unused variable: `string1` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let string1: String = String::from("Hello, world!"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string1` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> projects/2-basic-types/src/main.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | #[warn(unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string2` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let string2: &str = "Hello, world!"; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_u8` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let int_u8: u8; // = number_here [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_u8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_u16` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let int_u16: u16; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_u16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_u32` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let int_u32: u32; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_u64` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let int_u64: u64; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_u128` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let int_u128: u128; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_u128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_i8` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let int_i8: i8; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_i8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_i16` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let int_i16: i16; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_i16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_i32` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let int_i32: i32; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_i64` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let int_i64: i64; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_i128` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let int_i128: i128; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_i128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array1` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let array1: [i32; 5] = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_array1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string1` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let string1: String = String::from("Hello, world!"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string1` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> projects/2-basic-types/src/main.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | #[warn(unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string2` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let string2: &str = "Hello, world!"; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_u8` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let int_u8: u8; // = number_here [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_u8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_u16` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let int_u16: u16; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_u16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_u32` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let int_u32: u32; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_u64` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let int_u64: u64; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_u128` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let int_u128: u128; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_u128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_i8` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let int_i8: i8; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_i8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_i16` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let int_i16: i16; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_i16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_string_without_pointers` is never used [INFO] [stdout] --> projects/5-pointers/src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn print_string_without_pointers(string: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> projects/5-pointers/src/main.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_i32` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let int_i32: i32; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_i64` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let int_i64: i64; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_string_without_pointers` is never used [INFO] [stdout] --> projects/5-pointers/src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn print_string_without_pointers(string: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> projects/5-pointers/src/main.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_i128` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let int_i128: i128; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_i128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array1` [INFO] [stdout] --> projects/2-basic-types/src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let array1: [i32; 5] = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_array1` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] running `Command { std: "docker" "inspect" "bae1794bab97f4756a6ec617220fa16c96ea7885f68d321ef095705859bcab34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bae1794bab97f4756a6ec617220fa16c96ea7885f68d321ef095705859bcab34", kill_on_drop: false }` [INFO] [stdout] bae1794bab97f4756a6ec617220fa16c96ea7885f68d321ef095705859bcab34