[INFO] cloning repository https://github.com/alfu32/linkedin-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/alfu32/linkedin-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falfu32%2Flinkedin-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falfu32%2Flinkedin-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1494cdba51aa38d2c5e981f8ba821d0030a9329c [INFO] checking alfu32/linkedin-rust against master#e4106065bf1bb515935d5d024e8d9c86454e2b22 for pr-112160 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falfu32%2Flinkedin-rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alfu32/linkedin-rust on toolchain e4106065bf1bb515935d5d024e8d9c86454e2b22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/alfu32/linkedin-rust [INFO] finished tweaking git repo https://github.com/alfu32/linkedin-rust [INFO] tweaked toml for git repo https://github.com/alfu32/linkedin-rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/alfu32/linkedin-rust 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" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "fetch" "--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-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eaefe2a76be6be32f4dc7775cd8f8a5b8782b734d4bc6fae216bf8a03e2d7a7e [INFO] running `Command { std: "docker" "start" "-a" "eaefe2a76be6be32f4dc7775cd8f8a5b8782b734d4bc6fae216bf8a03e2d7a7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eaefe2a76be6be32f4dc7775cd8f8a5b8782b734d4bc6fae216bf8a03e2d7a7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eaefe2a76be6be32f4dc7775cd8f8a5b8782b734d4bc6fae216bf8a03e2d7a7e", kill_on_drop: false }` [INFO] [stdout] eaefe2a76be6be32f4dc7775cd8f8a5b8782b734d4bc6fae216bf8a03e2d7a7e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ddad8f9f363bb3378fee4d554d80875c609f7a254f5557970eeda1f0640e9bd8 [INFO] running `Command { std: "docker" "start" "-a" "ddad8f9f363bb3378fee4d554d80875c609f7a254f5557970eeda1f0640e9bd8", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking linkedin-rust-barrons v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | for (i, exercise) in exercises.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | for (i, exercise) in exercises.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page_number` [INFO] [stdout] --> src/main.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | let page_number = 0x2600u32; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_page_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page_number` [INFO] [stdout] --> src/main.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | let page_number = 0x2600u32; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_page_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `glove_box_2` [INFO] [stdout] --> src/main.rs:319:17 [INFO] [stdout] | [INFO] [stdout] 319 | let glove_box_2 = (10, 3.14, '2', "three"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_glove_box_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `glove_box_2` [INFO] [stdout] --> src/main.rs:319:17 [INFO] [stdout] | [INFO] [stdout] 319 | let glove_box_2 = (10, 3.14, '2', "three"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_glove_box_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:362:17 [INFO] [stdout] | [INFO] [stdout] 362 | let x = 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:362:17 [INFO] [stdout] | [INFO] [stdout] 362 | let x = 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `planet` is never read [INFO] [stdout] --> src/main.rs:602:13 [INFO] [stdout] | [INFO] [stdout] 602 | planet = ("Venus", 2554.453, 44); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `planet` is never read [INFO] [stdout] --> src/main.rs:602:13 [INFO] [stdout] | [INFO] [stdout] 602 | planet = ("Venus", 2554.453, 44); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `average` is never read [INFO] [stdout] --> src/main.rs:663:25 [INFO] [stdout] | [INFO] [stdout] 663 | let mut average = 0u64; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `average` is never read [INFO] [stdout] --> src/main.rs:663:25 [INFO] [stdout] | [INFO] [stdout] 663 | let mut average = 0u64; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:652:21 [INFO] [stdout] | [INFO] [stdout] 652 | let mut inner_planet = String::from("Mercury"); [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:652:21 [INFO] [stdout] | [INFO] [stdout] 652 | let mut inner_planet = String::from("Mercury"); [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:704:29 [INFO] [stdout] | [INFO] [stdout] 704 | fn process_fuel(mut propellant: &String) -> usize { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:704:29 [INFO] [stdout] | [INFO] [stdout] 704 | fn process_fuel(mut propellant: &String) -> usize { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/main.rs:780:21 [INFO] [stdout] | [INFO] [stdout] 780 | let mut bytes = s.as_bytes().iter().enumerate(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/main.rs:780:21 [INFO] [stdout] | [INFO] [stdout] 780 | let mut bytes = s.as_bytes().iter().enumerate(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rev` [INFO] [stdout] --> src/main.rs:782:21 [INFO] [stdout] | [INFO] [stdout] 782 | let mut rev = reversed.as_bytes().iter().enumerate(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rev` [INFO] [stdout] --> src/main.rs:782:21 [INFO] [stdout] | [INFO] [stdout] 782 | let mut rev = reversed.as_bytes().iter().enumerate(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:780:17 [INFO] [stdout] | [INFO] [stdout] 780 | let mut bytes = s.as_bytes().iter().enumerate(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:780:17 [INFO] [stdout] | [INFO] [stdout] 780 | let mut bytes = s.as_bytes().iter().enumerate(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:782:17 [INFO] [stdout] | [INFO] [stdout] 782 | let mut rev = reversed.as_bytes().iter().enumerate(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:782:17 [INFO] [stdout] | [INFO] [stdout] 782 | let mut rev = reversed.as_bytes().iter().enumerate(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vector2` is never constructed [INFO] [stdout] --> src/equations.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) struct Vector2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `celsius` is never read [INFO] [stdout] --> src/main.rs:389:17 [INFO] [stdout] | [INFO] [stdout] 388 | struct Temperature { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 389 | celsius: f64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Temperature` 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: struct `System2` is never constructed [INFO] [stdout] --> src/equations.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) struct System2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_fahrenheit` is never used [INFO] [stdout] --> src/main.rs:400:20 [INFO] [stdout] | [INFO] [stdout] 392 | impl Temperature { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 400 | fn from_fahrenheit(f: f64) -> Temperature { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `resolve` are never used [INFO] [stdout] --> src/equations.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl System2 { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 24 | pub fn new(matrix: [[f64; 3]; 2]) -> System2 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) fn resolve(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vector2` is never constructed [INFO] [stdout] --> src/equations.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) struct Vector2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `System2` is never constructed [INFO] [stdout] --> src/equations.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) struct System2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/exercise.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 9 | impl Exercise { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 10 | pub(crate) fn new(name: &'static str, runnable: fn()) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `resolve` are never used [INFO] [stdout] --> src/equations.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl System2 { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 24 | pub fn new(matrix: [[f64; 3]; 2]) -> System2 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) fn resolve(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/exercise.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 9 | impl Exercise { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 10 | pub(crate) fn new(name: &'static str, runnable: fn()) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `exercises` should have an upper case name [INFO] [stdout] --> src/main.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const exercises: [(u64, &str); 84] = [ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `EXERCISES` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `exercises` should have an upper case name [INFO] [stdout] --> src/main.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const exercises: [(u64, &str); 84] = [ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `EXERCISES` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 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 0.89s [INFO] running `Command { std: "docker" "inspect" "ddad8f9f363bb3378fee4d554d80875c609f7a254f5557970eeda1f0640e9bd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ddad8f9f363bb3378fee4d554d80875c609f7a254f5557970eeda1f0640e9bd8", kill_on_drop: false }` [INFO] [stdout] ddad8f9f363bb3378fee4d554d80875c609f7a254f5557970eeda1f0640e9bd8