[INFO] cloning repository https://github.com/juliosouzam/learn-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/juliosouzam/learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuliosouzam%2Flearn-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuliosouzam%2Flearn-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3b4e5fc81641fc27af39d825f83d53ea3af7e6fa [INFO] testing juliosouzam/learn-rust against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuliosouzam%2Flearn-rust" "/workspace/builds/worker-40/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-40/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/juliosouzam/learn-rust on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/juliosouzam/learn-rust [INFO] finished tweaking git repo https://github.com/juliosouzam/learn-rust [INFO] tweaked toml for git repo https://github.com/juliosouzam/learn-rust written to /workspace/builds/worker-40/source/Cargo.toml [INFO] crate git repo https://github.com/juliosouzam/learn-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-40/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-40/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eeb98908609482db7651bb9b1dc44d12590f53f9911b0d67da6c0bc0a9b63111 [INFO] running `Command { std: "docker" "start" "-a" "eeb98908609482db7651bb9b1dc44d12590f53f9911b0d67da6c0bc0a9b63111", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eeb98908609482db7651bb9b1dc44d12590f53f9911b0d67da6c0bc0a9b63111", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eeb98908609482db7651bb9b1dc44d12590f53f9911b0d67da6c0bc0a9b63111", kill_on_drop: false }` [INFO] [stdout] eeb98908609482db7651bb9b1dc44d12590f53f9911b0d67da6c0bc0a9b63111 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-40/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-40/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ddfff522c64984e09ca3b270868d53f763ab14d91e5f5d9b03ac2315070affa [INFO] running `Command { std: "docker" "start" "-a" "1ddfff522c64984e09ca3b270868d53f763ab14d91e5f5d9b03ac2315070affa", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling syn v1.0.84 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling structopt v0.3.25 [INFO] [stderr] Compiling tasks v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `attempt_access` [INFO] [stdout] --> src/bin/a18b.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | let attempt_access = try_access(employee)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attempt_access` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp` [INFO] [stdout] --> src/bin/a22.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn clamp(n: i32, lower: i32, upper: i32) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `range` [INFO] [stdout] --> src/bin/range.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let range = 1..=3; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_range` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Maintenance` [INFO] [stdout] --> src/bin/a18b.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 2 | Maintenance, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Marketing` [INFO] [stdout] --> src/bin/a18b.rs:3:3 [INFO] [stdout] | [INFO] [stdout] 3 | Marketing, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `range` [INFO] [stdout] --> src/bin/range.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let range = 1..4; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Color` [INFO] [stdout] --> src/bin/docs.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Mail` [INFO] [stdout] --> src/bin/docs.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Mail { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `div` [INFO] [stdout] --> src/bin/a22.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn div(a: i32, b: i32) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add` [INFO] [stdout] --> src/bin/docs.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn add(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `concat` [INFO] [stdout] --> src/bin/a22.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn concat(first: &str, second: &str) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word_length` [INFO] [stdout] --> src/bin/map-combinator.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | let word_length = maybe_word().map(|w| w.len()).map(|l| l * 2); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_word_length` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LineSupervisor` [INFO] [stdout] --> src/bin/a18b.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | LineSupervisor, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Admin` [INFO] [stdout] --> src/bin/a23.rs:3:3 [INFO] [stdout] | [INFO] [stdout] 3 | Admin, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Access` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/a23.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/bin/p2.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `maybe_num` [INFO] [stdout] --> src/bin/map-combinator.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn maybe_num() -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/a28.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 18 | fn new(color: Color) -> Self { [INFO] [stdout] | ---- expected `ShirtColor` because of return type [INFO] [stdout] 19 | match color { [INFO] [stdout] 20 | Color::Purple => Err("purple not allowed".to_owned()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `ShirtColor`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `ShirtColor` [INFO] [stdout] found enum `Result<_, String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `KitchenStaff` [INFO] [stdout] --> src/bin/a18b.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | KitchenStaff, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `AssemblyTech` [INFO] [stdout] --> src/bin/a18b.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | AssemblyTech, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Terminated` [INFO] [stdout] --> src/bin/a18b.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 12 | Terminated, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `User` [INFO] [stdout] --> src/bin/a23.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | User, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Access` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/a23.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Guest` [INFO] [stdout] --> src/bin/a23.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | Guest, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Access` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/a23.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `maybe_access` [INFO] [stdout] --> src/bin/a23.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn maybe_access(name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `root` [INFO] [stdout] --> src/bin/a23.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn root() -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `part_1` [INFO] [stdout] --> src/bin/a23.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn part_1() -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `part_2` [INFO] [stdout] --> src/bin/a23.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn part_2() -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `part_3` [INFO] [stdout] --> src/bin/a23.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn part_3() -> Access { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/bin/p2.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Record` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/p2.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `email` [INFO] [stdout] --> src/bin/p2.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | email: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Record` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/p2.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quis_2` [INFO] [stdout] --> src/bin/lifetimes.rs:25:41 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_first_quiz<'a>(quis_1: &'a Quiz, quis_2: &Quiz, quis_3: &Quiz) -> &'a Answer { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_quis_2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quis_3` [INFO] [stdout] --> src/bin/lifetimes.rs:25:56 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_first_quiz<'a>(quis_1: &'a Quiz, quis_2: &Quiz, quis_3: &Quiz) -> &'a Answer { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_quis_3` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tasks` due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/const.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | / if speed > MAX_SPEED { [INFO] [stdout] 5 | | MAX_SPEED [INFO] [stdout] | | ^^^^^^^^^ expected `()`, found `i32` [INFO] [stdout] 6 | | } [INFO] [stdout] | |_____- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 5 | return MAX_SPEED; [INFO] [stdout] | ++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `No` [INFO] [stdout] --> src/bin/lifetimes.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | No, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Answer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/lifetimes.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `question` [INFO] [stdout] --> src/bin/lifetimes.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | question: &'a Answer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Form` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/lifetimes.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `question` [INFO] [stdout] --> src/bin/lifetimes.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | question: Answer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Quiz` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/lifetimes.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_first_quiz` [INFO] [stdout] --> src/bin/lifetimes.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_first_quiz<'a>(quis_1: &'a Quiz, quis_2: &Quiz, quis_3: &Quiz) -> &'a Answer { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: field is never read: `user_id` [INFO] [stdout] --> src/bin/a21.rs:3:3 [INFO] [stdout] | [INFO] [stdout] 3 | user_id: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/a21.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/bin/a21.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/a21.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `all_caps` [INFO] [stdout] --> src/bin/testing.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn all_caps(word: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/bin/iterators.rs:11:63 [INFO] [stdout] | [INFO] [stdout] 11 | let find_me: Option = numbers.iter().find(|n| n == 3) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 12 | let count = numbers.iter().count(); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> src/bin/hashmap.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | content: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Contents` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/hashmap.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_is_some` [INFO] [stdout] --> src/bin/opt_combinators.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | let a_is_some = a.is_some(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_is_some` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_is_none` [INFO] [stdout] --> src/bin/opt_combinators.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | let a_is_none = a.is_none(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_is_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_mapped` [INFO] [stdout] --> src/bin/opt_combinators.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | let a_mapped = a.map(|num| num + 1); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_mapped` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_filtered` [INFO] [stdout] --> src/bin/opt_combinators.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | let a_filtered = a.filter(|num| num == &1); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_filtered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_or_else` [INFO] [stdout] --> src/bin/opt_combinators.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | let a_or_else = a.or_else(|| Some(5)); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_or_else` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unwrapped` [INFO] [stdout] --> src/bin/opt_combinators.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | let unwrapped = a.unwrap_or_else(|| 0); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unwrapped` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: function `hi` is private [INFO] [stdout] --> src/bin/modules.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | greet::hi(); [INFO] [stdout] | ^^ private function [INFO] [stdout] | [INFO] [stdout] note: the function `hi` is defined here [INFO] [stdout] --> src/bin/modules.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | fn hi() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: function `add` is private [INFO] [stdout] --> src/bin/modules.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | math::add(3, 6); [INFO] [stdout] | ^^^ private function [INFO] [stdout] | [INFO] [stdout] note: the function `add` is defined here [INFO] [stdout] --> src/bin/modules.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | fn add(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/modules.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/modules.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0603`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/default-trait.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let p = Package::default(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `position` [INFO] [stdout] --> src/bin/derive.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | position: Position, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Employee` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/derive.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `work_hours` [INFO] [stdout] --> src/bin/derive.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 11 | work_hours: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Employee` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/derive.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SqlError` in this scope [INFO] [stdout] --> src/bin/custom-errors.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | DatabaseError(#[from] SqlError), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/iterators.rs:10:62 [INFO] [stdout] | [INFO] [stdout] 10 | let new_numbers: Vec<_> = numbers.iter().filter(|n| n >= 3).collect(); [INFO] [stdout] | ^ expected `&&_`, found integer [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&&_` [INFO] [stdout] found type `{integer}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `weight` [INFO] [stdout] --> src/bin/default-trait.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | weight: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/default-trait.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn new(weight: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `&&{integer}` with `{integer}` [INFO] [stdout] --> src/bin/iterators.rs:11:58 [INFO] [stdout] | [INFO] [stdout] 11 | let find_me: Option = numbers.iter().find(|n| n == 3) [INFO] [stdout] | ^^ no implementation for `&&{integer} == {integer}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<{integer}>` is not implemented for `&&{integer}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SqlError` in this scope [INFO] [stdout] --> src/bin/custom-errors.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Error, Debug)] [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 6 | DatabaseError(#[from] SqlError), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Connection` in this scope [INFO] [stdout] --> src/bin/custom-errors.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 21 | fn login(user: &str, password: &str) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 22 | let connection: Result = connect()?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `connect` in this scope [INFO] [stdout] --> src/bin/custom-errors.rs:22:58 [INFO] [stdout] | [INFO] [stdout] 22 | let connection: Result = connect()?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_user_id` in this scope [INFO] [stdout] --> src/bin/custom-errors.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | let user_id = get_user_id(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `try_password` in this scope [INFO] [stdout] --> src/bin/custom-errors.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | if try_password(user_id, password)? { [INFO] [stdout] | ^^^^^^^^^^^^ help: a local variable with a similar name exists: `password` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SqlError` in this scope [INFO] [stdout] --> src/bin/custom-errors.rs:26:37 [INFO] [stdout] | [INFO] [stdout] 21 | fn login(user: &str, password: &str) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 26 | let session: Result = get_session(user_id); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_session` in this scope [INFO] [stdout] --> src/bin/custom-errors.rs:26:49 [INFO] [stdout] | [INFO] [stdout] 26 | let session: Result = get_session(user_id); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/iterators.rs:11:32 [INFO] [stdout] | [INFO] [stdout] 11 | let find_me: Option = numbers.iter().find(|n| n == 3) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `&{integer}` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Option<&{integer}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Blue` [INFO] [stdout] --> src/bin/if-let-else.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Blue, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Green` [INFO] [stdout] --> src/bin/if-let-else.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add` [INFO] [stdout] --> src/bin/closure.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | let add = |a: i32, b: i32| -> i32 { a + b }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_add` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/bin/closure.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | let sum = add(1, 2); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "1ddfff522c64984e09ca3b270868d53f763ab14d91e5f5d9b03ac2315070affa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ddfff522c64984e09ca3b270868d53f763ab14d91e5f5d9b03ac2315070affa", kill_on_drop: false }` [INFO] [stdout] 1ddfff522c64984e09ca3b270868d53f763ab14d91e5f5d9b03ac2315070affa