[INFO] cloning repository https://github.com/mDanone/rust_examples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mDanone/rust_examples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FmDanone%2Frust_examples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FmDanone%2Frust_examples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 358eb452f771744f523b6466e2acb94e90181972 [INFO] checking mDanone/rust_examples against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FmDanone%2Frust_examples" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mDanone/rust_examples on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mDanone/rust_examples [INFO] finished tweaking git repo https://github.com/mDanone/rust_examples [INFO] tweaked toml for git repo https://github.com/mDanone/rust_examples written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mDanone/rust_examples 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "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-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 066c839971f0a63d9544e88748eb3c7f4212d2226355e893e4b041ec3855c065 [INFO] running `Command { std: "docker" "start" "-a" "066c839971f0a63d9544e88748eb3c7f4212d2226355e893e4b041ec3855c065", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "066c839971f0a63d9544e88748eb3c7f4212d2226355e893e4b041ec3855c065", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "066c839971f0a63d9544e88748eb3c7f4212d2226355e893e4b041ec3855c065", kill_on_drop: false }` [INFO] [stdout] 066c839971f0a63d9544e88748eb3c7f4212d2226355e893e4b041ec3855c065 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2041d3b489cc7767d53b35c42d8f48d1d39eae5be518338c11bef1ee8aa336c8 [INFO] running `Command { std: "docker" "start" "-a" "2041d3b489cc7767d53b35c42d8f48d1d39eae5be518338c11bef1ee8aa336c8", kill_on_drop: false }` [INFO] [stderr] Checking vectors v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `is_article` [INFO] [stdout] --> src/generics/generics.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn returns_summarizable(is_article: bool) -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_article` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_article` [INFO] [stdout] --> src/generics/generics.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn returns_summarizable(is_article: bool) -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_article` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point1` [INFO] [stdout] --> src/generics/generics.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let point1 = Point{x: 1, y: 3}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_point1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point2` [INFO] [stdout] --> src/generics/generics.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let point2 = Point{x: 'h', y: 'c'}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_point2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point1` [INFO] [stdout] --> src/generics/generics.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let point1 = Point{x: 1, y: 3}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_point1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point2` [INFO] [stdout] --> src/generics/generics.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let point2 = Point{x: 'h', y: 'c'}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_point2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/generics/lifetime_references.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let i = ImportantExcerpt{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/enums/enums.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let x = SomeValues::Int(3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/generics/lifetime_references.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let i = ImportantExcerpt{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/enums/enums.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let x = SomeValues::Int(3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file` [INFO] [stdout] --> src/exceptions/exceptions.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let greeting_file = match greeting_file_result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_with_wrap` [INFO] [stdout] --> src/exceptions/exceptions.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let file_with_wrap = File::open("hello2.txt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_with_wrap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_with_expect` [INFO] [stdout] --> src/exceptions/exceptions.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let file_with_expect = File::open("expected").expect("Some Error message"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_with_expect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/exceptions/exceptions.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let username = username_result.expect("Can not read some file!"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file` [INFO] [stdout] --> src/exceptions/exceptions.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let greeting_file = match greeting_file_result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_with_wrap` [INFO] [stdout] --> src/exceptions/exceptions.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let file_with_wrap = File::open("hello2.txt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_with_wrap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/exceptions/exceptions.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | Err(err) => continue, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_with_expect` [INFO] [stdout] --> src/exceptions/exceptions.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let file_with_expect = File::open("expected").expect("Some Error message"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_with_expect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/exceptions/exceptions.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let username = username_result.expect("Can not read some file!"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/exceptions/exceptions.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | Err(err) => continue, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/collections/hash_maps.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let score = scores.get(&team_name).copied().unwrap_or(0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/collections/hash_maps.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let score = scores.get(&team_name).copied().unwrap_or(0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> src/generics/lifetime_references.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn longest_with_an_announcement<'a, T>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddrKind` is never used [INFO] [stdout] --> src/enums/enums.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum IpAddrKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums/enums.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | Write(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/enums/enums.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Message{ [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 7 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Move {x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Write(String), [INFO] [stdout] 10 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_parent` is never used [INFO] [stdout] --> src/enums/enums.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn test_parent(){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_child` is never used [INFO] [stdout] --> src/enums/enums.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn test_child(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_of_number_resolving` is never used [INFO] [stdout] --> src/exceptions/exceptions.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn part_of_number_resolving(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> src/control_flow/control_flow.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum UsState{ [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 3 | Alabama, [INFO] [stdout] 4 | Alaska [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/control_flow/control_flow.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 8 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_to_whitelist` is never used [INFO] [stdout] --> src/scopes/scopes.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn add_to_whitelist(){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat_at_restaurant` is never used [INFO] [stdout] --> src/scopes/scopes.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn eat_at_restaurant(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> src/generics/lifetime_references.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn longest_with_an_announcement<'a, T>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddrKind` is never used [INFO] [stdout] --> src/enums/enums.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum IpAddrKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums/enums.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | Write(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/enums/enums.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Message{ [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 7 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Move {x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Write(String), [INFO] [stdout] 10 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_parent` is never used [INFO] [stdout] --> src/enums/enums.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn test_parent(){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_child` is never used [INFO] [stdout] --> src/enums/enums.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn test_child(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_of_number_resolving` is never used [INFO] [stdout] --> src/exceptions/exceptions.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn part_of_number_resolving(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> src/control_flow/control_flow.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum UsState{ [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 3 | Alabama, [INFO] [stdout] 4 | Alaska [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/control_flow/control_flow.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 8 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_to_whitelist` is never used [INFO] [stdout] --> src/scopes/scopes.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn add_to_whitelist(){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat_at_restaurant` is never used [INFO] [stdout] --> src/scopes/scopes.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn eat_at_restaurant(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/collections/tasks.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | stdin().read_line(&mut input_string); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 83 | let _ = stdin().read_line(&mut input_string); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/collections/tasks.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | stdin().read_line(&mut input_string); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 83 | let _ = stdin().read_line(&mut input_string); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Guess`, `Rectangle`, `adder`, `greeting`, `prints_and_returns_10` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | adder, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | greeting, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | Guess, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | Rectangle, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | prints_and_returns_10 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "2041d3b489cc7767d53b35c42d8f48d1d39eae5be518338c11bef1ee8aa336c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2041d3b489cc7767d53b35c42d8f48d1d39eae5be518338c11bef1ee8aa336c8", kill_on_drop: false }` [INFO] [stdout] 2041d3b489cc7767d53b35c42d8f48d1d39eae5be518338c11bef1ee8aa336c8 [INFO] checking mDanone/rust_examples against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FmDanone%2Frust_examples" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mDanone/rust_examples on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mDanone/rust_examples [INFO] finished tweaking git repo https://github.com/mDanone/rust_examples [INFO] tweaked toml for git repo https://github.com/mDanone/rust_examples written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mDanone/rust_examples 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 040020b2ffef8eac4c5b9ab491c55a629167e320a6ba474bb6ea8d616620f426 [INFO] running `Command { std: "docker" "start" "-a" "040020b2ffef8eac4c5b9ab491c55a629167e320a6ba474bb6ea8d616620f426", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "040020b2ffef8eac4c5b9ab491c55a629167e320a6ba474bb6ea8d616620f426", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "040020b2ffef8eac4c5b9ab491c55a629167e320a6ba474bb6ea8d616620f426", kill_on_drop: false }` [INFO] [stdout] 040020b2ffef8eac4c5b9ab491c55a629167e320a6ba474bb6ea8d616620f426 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2921a75d2be8512ff1b1d9f0957afd15046b73ea2baa7f7b6a76a36541c227d0 [INFO] running `Command { std: "docker" "start" "-a" "2921a75d2be8512ff1b1d9f0957afd15046b73ea2baa7f7b6a76a36541c227d0", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking vectors v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stdout] warning: unused variable: `is_article` [INFO] [stdout] --> src/generics/generics.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn returns_summarizable(is_article: bool) -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_article` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point1` [INFO] [stdout] --> src/generics/generics.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let point1 = Point{x: 1, y: 3}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_point1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point2` [INFO] [stdout] --> src/generics/generics.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let point2 = Point{x: 'h', y: 'c'}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_point2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/generics/lifetime_references.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let i = ImportantExcerpt{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/enums/enums.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let x = SomeValues::Int(3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file` [INFO] [stdout] --> src/exceptions/exceptions.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let greeting_file = match greeting_file_result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_with_wrap` [INFO] [stdout] --> src/exceptions/exceptions.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let file_with_wrap = File::open("hello2.txt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_with_wrap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_with_expect` [INFO] [stdout] --> src/exceptions/exceptions.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let file_with_expect = File::open("expected").expect("Some Error message"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_with_expect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/exceptions/exceptions.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let username = username_result.expect("Can not read some file!"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/exceptions/exceptions.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | Err(err) => continue, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/collections/hash_maps.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let score = scores.get(&team_name).copied().unwrap_or(0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> src/generics/lifetime_references.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn longest_with_an_announcement<'a, T>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddrKind` is never used [INFO] [stdout] --> src/enums/enums.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum IpAddrKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums/enums.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | Write(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/enums/enums.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Message{ [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 7 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Move {x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Write(String), [INFO] [stdout] 10 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_parent` is never used [INFO] [stdout] --> src/enums/enums.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn test_parent(){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_child` is never used [INFO] [stdout] --> src/enums/enums.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn test_child(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_of_number_resolving` is never used [INFO] [stdout] --> src/exceptions/exceptions.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn part_of_number_resolving(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> src/control_flow/control_flow.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum UsState{ [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 3 | Alabama, [INFO] [stdout] 4 | Alaska [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/control_flow/control_flow.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 8 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_to_whitelist` is never used [INFO] [stdout] --> src/scopes/scopes.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn add_to_whitelist(){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat_at_restaurant` is never used [INFO] [stdout] --> src/scopes/scopes.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn eat_at_restaurant(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/collections/tasks.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | stdin().read_line(&mut input_string); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 83 | let _ = stdin().read_line(&mut input_string); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_article` [INFO] [stdout] --> src/generics/generics.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn returns_summarizable(is_article: bool) -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_article` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point1` [INFO] [stdout] --> src/generics/generics.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let point1 = Point{x: 1, y: 3}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_point1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point2` [INFO] [stdout] --> src/generics/generics.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let point2 = Point{x: 'h', y: 'c'}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_point2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/generics/lifetime_references.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let i = ImportantExcerpt{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/enums/enums.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let x = SomeValues::Int(3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file` [INFO] [stdout] --> src/exceptions/exceptions.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let greeting_file = match greeting_file_result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_with_wrap` [INFO] [stdout] --> src/exceptions/exceptions.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let file_with_wrap = File::open("hello2.txt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_with_wrap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_with_expect` [INFO] [stdout] --> src/exceptions/exceptions.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let file_with_expect = File::open("expected").expect("Some Error message"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_with_expect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/exceptions/exceptions.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let username = username_result.expect("Can not read some file!"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/exceptions/exceptions.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | Err(err) => continue, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/collections/hash_maps.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let score = scores.get(&team_name).copied().unwrap_or(0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> src/generics/lifetime_references.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn longest_with_an_announcement<'a, T>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddrKind` is never used [INFO] [stdout] --> src/enums/enums.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum IpAddrKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums/enums.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | Write(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/enums/enums.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Message{ [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 7 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Move {x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Write(String), [INFO] [stdout] 10 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_parent` is never used [INFO] [stdout] --> src/enums/enums.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn test_parent(){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_child` is never used [INFO] [stdout] --> src/enums/enums.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn test_child(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_of_number_resolving` is never used [INFO] [stdout] --> src/exceptions/exceptions.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn part_of_number_resolving(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> src/control_flow/control_flow.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum UsState{ [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 3 | Alabama, [INFO] [stdout] 4 | Alaska [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/control_flow/control_flow.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 8 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_to_whitelist` is never used [INFO] [stdout] --> src/scopes/scopes.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn add_to_whitelist(){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat_at_restaurant` is never used [INFO] [stdout] --> src/scopes/scopes.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn eat_at_restaurant(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/collections/tasks.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | stdin().read_line(&mut input_string); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 83 | let _ = stdin().read_line(&mut input_string); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/integration_test.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/tests_package.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking vectors v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused variable: `is_article` [INFO] [stdout] --> src/generics/generics.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn returns_summarizable(is_article: bool) -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_article` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_article` [INFO] [stdout] --> src/generics/generics.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn returns_summarizable(is_article: bool) -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_article` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point1` [INFO] [stdout] --> src/generics/generics.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let point1 = Point{x: 1, y: 3}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_point1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point2` [INFO] [stdout] --> src/generics/generics.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let point2 = Point{x: 'h', y: 'c'}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_point2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point1` [INFO] [stdout] --> src/generics/generics.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let point1 = Point{x: 1, y: 3}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_point1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point2` [INFO] [stdout] --> src/generics/generics.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let point2 = Point{x: 'h', y: 'c'}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_point2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/generics/lifetime_references.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let i = ImportantExcerpt{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/enums/enums.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let x = SomeValues::Int(3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file` [INFO] [stdout] --> src/exceptions/exceptions.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let greeting_file = match greeting_file_result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/generics/lifetime_references.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let i = ImportantExcerpt{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_with_wrap` [INFO] [stdout] --> src/exceptions/exceptions.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let file_with_wrap = File::open("hello2.txt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_with_wrap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_with_expect` [INFO] [stdout] --> src/exceptions/exceptions.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let file_with_expect = File::open("expected").expect("Some Error message"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_with_expect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/exceptions/exceptions.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let username = username_result.expect("Can not read some file!"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/enums/enums.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let x = SomeValues::Int(3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/exceptions/exceptions.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | Err(err) => continue, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file` [INFO] [stdout] --> src/exceptions/exceptions.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let greeting_file = match greeting_file_result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_with_wrap` [INFO] [stdout] --> src/exceptions/exceptions.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let file_with_wrap = File::open("hello2.txt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_with_wrap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_with_expect` [INFO] [stdout] --> src/exceptions/exceptions.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let file_with_expect = File::open("expected").expect("Some Error message"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_with_expect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/exceptions/exceptions.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let username = username_result.expect("Can not read some file!"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/exceptions/exceptions.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | Err(err) => continue, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/collections/hash_maps.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let score = scores.get(&team_name).copied().unwrap_or(0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/collections/hash_maps.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let score = scores.get(&team_name).copied().unwrap_or(0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> src/generics/lifetime_references.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn longest_with_an_announcement<'a, T>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddrKind` is never used [INFO] [stdout] --> src/enums/enums.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum IpAddrKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums/enums.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | Write(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/enums/enums.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Message{ [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 7 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Move {x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Write(String), [INFO] [stdout] 10 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_parent` is never used [INFO] [stdout] --> src/enums/enums.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn test_parent(){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_child` is never used [INFO] [stdout] --> src/enums/enums.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn test_child(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_of_number_resolving` is never used [INFO] [stdout] --> src/exceptions/exceptions.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn part_of_number_resolving(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> src/control_flow/control_flow.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum UsState{ [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 3 | Alabama, [INFO] [stdout] 4 | Alaska [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/control_flow/control_flow.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 8 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_to_whitelist` is never used [INFO] [stdout] --> src/scopes/scopes.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn add_to_whitelist(){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat_at_restaurant` is never used [INFO] [stdout] --> src/scopes/scopes.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn eat_at_restaurant(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> src/generics/lifetime_references.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn longest_with_an_announcement<'a, T>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/generics/lifetime_references.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddrKind` is never used [INFO] [stdout] --> src/enums/enums.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum IpAddrKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums/enums.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | Write(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/enums/enums.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Message{ [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 7 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Move {x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Write(String), [INFO] [stdout] 10 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_parent` is never used [INFO] [stdout] --> src/enums/enums.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn test_parent(){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_child` is never used [INFO] [stdout] --> src/enums/enums.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn test_child(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_of_number_resolving` is never used [INFO] [stdout] --> src/exceptions/exceptions.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn part_of_number_resolving(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> src/control_flow/control_flow.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum UsState{ [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 3 | Alabama, [INFO] [stdout] 4 | Alaska [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/control_flow/control_flow.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 8 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_to_whitelist` is never used [INFO] [stdout] --> src/scopes/scopes.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn add_to_whitelist(){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat_at_restaurant` is never used [INFO] [stdout] --> src/scopes/scopes.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn eat_at_restaurant(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/collections/tasks.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | stdin().read_line(&mut input_string); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 83 | let _ = stdin().read_line(&mut input_string); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/collections/tasks.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | stdin().read_line(&mut input_string); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 83 | let _ = stdin().read_line(&mut input_string); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `adder` in this scope [INFO] [stdout] --> src/main.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | assert_eq!(4, adder(2)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 10 + use vectors::tests_package::tests_module::adder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `greeting` in this scope [INFO] [stdout] --> src/main.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | let result = greeting("Carol"); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 10 + use vectors::tests_package::tests_module::greeting; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Rectangle` in this scope [INFO] [stdout] --> src/main.rs:45:31 [INFO] [stdout] | [INFO] [stdout] 45 | let first_rectangle = Rectangle{width: 3, height: 10}; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 10 + use vectors::tests_package::tests_module::Rectangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Rectangle` in this scope [INFO] [stdout] --> src/main.rs:46:32 [INFO] [stdout] | [INFO] [stdout] 46 | let second_rectangle = Rectangle{width: 2, height: 3}; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 10 + use vectors::tests_package::tests_module::Rectangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Rectangle` in this scope [INFO] [stdout] --> src/main.rs:52:31 [INFO] [stdout] | [INFO] [stdout] 52 | let first_rectangle = Rectangle{width: 3, height: 10}; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 10 + use vectors::tests_package::tests_module::Rectangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Rectangle` in this scope [INFO] [stdout] --> src/main.rs:53:32 [INFO] [stdout] | [INFO] [stdout] 53 | let second_rectangle = Rectangle{width: 2, height: 15}; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 10 + use vectors::tests_package::tests_module::Rectangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Guess` [INFO] [stdout] --> src/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | Guess::new(200); [INFO] [stdout] | ^^^^^ use of undeclared type `Guess` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 10 + use vectors::tests_package::tests_module::Guess; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `prints_and_returns_10` in this scope [INFO] [stdout] --> src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let value = prints_and_returns_10(4); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 10 + use vectors::tests_package::tests_module::prints_and_returns_10; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `prints_and_returns_10` in this scope [INFO] [stdout] --> src/main.rs:73:21 [INFO] [stdout] | [INFO] [stdout] 73 | let value = prints_and_returns_10(4); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 10 + use vectors::tests_package::tests_module::prints_and_returns_10; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `vectors` (bin "vectors" test) due to 10 previous errors; 1 warning emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "2921a75d2be8512ff1b1d9f0957afd15046b73ea2baa7f7b6a76a36541c227d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2921a75d2be8512ff1b1d9f0957afd15046b73ea2baa7f7b6a76a36541c227d0", kill_on_drop: false }` [INFO] [stdout] 2921a75d2be8512ff1b1d9f0957afd15046b73ea2baa7f7b6a76a36541c227d0