[INFO] cloning repository https://github.com/Legend101Zz/rust-bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Legend101Zz/rust-bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLegend101Zz%2Frust-bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLegend101Zz%2Frust-bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 89c8c6fd7944d872f4a39a029e2e2632b7f2a18f [INFO] checking Legend101Zz/rust-bot against try#45a41ffb423036390396cec6d4e16c04033f4d02 for pr-116745 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLegend101Zz%2Frust-bot" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Legend101Zz/rust-bot on toolchain 45a41ffb423036390396cec6d4e16c04033f4d02 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+45a41ffb423036390396cec6d4e16c04033f4d02" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Legend101Zz/rust-bot [INFO] finished tweaking git repo https://github.com/Legend101Zz/rust-bot [INFO] tweaked toml for git repo https://github.com/Legend101Zz/rust-bot written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Legend101Zz/rust-bot 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" "+45a41ffb423036390396cec6d4e16c04033f4d02" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:023092b8bfa974c7f3e45c5ce651cc8dd3afd5e76915d5995b8dacd3032bf956" "/opt/rustwide/cargo-home/bin/cargo" "+45a41ffb423036390396cec6d4e16c04033f4d02" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 494fa8ace0fa7d15920989e1912e70f0b42cff3c2bb5409aeb4e42e84dc47ec6 [INFO] running `Command { std: "docker" "start" "-a" "494fa8ace0fa7d15920989e1912e70f0b42cff3c2bb5409aeb4e42e84dc47ec6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "494fa8ace0fa7d15920989e1912e70f0b42cff3c2bb5409aeb4e42e84dc47ec6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "494fa8ace0fa7d15920989e1912e70f0b42cff3c2bb5409aeb4e42e84dc47ec6", kill_on_drop: false }` [INFO] [stdout] 494fa8ace0fa7d15920989e1912e70f0b42cff3c2bb5409aeb4e42e84dc47ec6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:023092b8bfa974c7f3e45c5ce651cc8dd3afd5e76915d5995b8dacd3032bf956" "/opt/rustwide/cargo-home/bin/cargo" "+45a41ffb423036390396cec6d4e16c04033f4d02" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c6e0897b1f0171b76dda2ece1f79385f9af8e927acf58fc169c846973967fce [INFO] running `Command { std: "docker" "start" "-a" "1c6e0897b1f0171b76dda2ece1f79385f9af8e927acf58fc169c846973967fce", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.68 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Checking zeroize v1.6.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling hashbrown v0.14.1 [INFO] [stderr] Compiling winnow v0.5.16 [INFO] [stderr] Checking const-oid v0.9.5 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling thiserror v1.0.49 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking der v0.7.8 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Compiling rustix v0.38.17 [INFO] [stderr] Checking byte-slice-cast v1.2.2 [INFO] [stderr] Compiling camino v1.1.6 [INFO] [stderr] Compiling semver v1.0.19 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling indexmap v2.0.2 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking keccak v0.1.4 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking parking_lot_core v0.9.8 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking ff v0.13.0 [INFO] [stderr] Checking crypto-bigint v0.5.3 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking spki v0.7.2 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking socket2 v0.5.4 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking signature v2.1.0 [INFO] [stderr] Checking aho-corasick v1.1.1 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking uint v0.9.5 [INFO] [stderr] Checking regex-syntax v0.7.5 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.87 [INFO] [stderr] Checking base64 v0.21.4 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Checking fixed-hash v0.8.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling rustls v0.21.7 [INFO] [stderr] Checking linux-raw-sys v0.4.9 [INFO] [stderr] Compiling openssl v0.10.57 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling bumpalo v3.14.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling openssl-sys v0.9.93 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking fastrand v2.0.1 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking const-hex v1.9.1 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking elliptic-curve v0.13.6 [INFO] [stderr] Compiling prettyplease v0.2.15 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling eyre v0.6.8 [INFO] [stderr] Checking regex-automata v0.3.9 [INFO] [stderr] Compiling wasm-bindgen v0.2.87 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking unicode-xid v0.2.4 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Checking ecdsa v0.16.8 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling cpufeatures v0.2.9 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking url v2.4.1 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking k256 v0.13.1 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling time-macros v0.2.15 [INFO] [stderr] Checking tempfile v3.8.0 [INFO] [stderr] Checking webpki-roots v0.25.2 [INFO] [stderr] Checking deranged v0.3.8 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.87 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling async-trait v0.1.73 [INFO] [stderr] Checking regex v1.9.6 [INFO] [stderr] Checking rustls-pemfile v1.0.3 [INFO] [stderr] Checking bs58 v0.5.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking ripemd v0.1.3 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Compiling indenter v0.3.3 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.87 [INFO] [stderr] Checking bech32 v0.9.1 [INFO] [stderr] Checking ipnet v2.8.0 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking time v0.3.29 [INFO] [stderr] Compiling walkdir v2.4.0 [INFO] [stderr] Checking pem v1.1.1 [INFO] [stderr] Checking salsa20 v0.10.2 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Compiling dunce v1.0.4 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking send_wrapper v0.4.0 [INFO] [stderr] Checking Inflector v0.11.4 [INFO] [stderr] Checking scrypt v0.10.0 [INFO] [stderr] Checking hashers v1.0.1 [INFO] [stderr] Checking rustls-webpki v0.101.6 [INFO] [stderr] Checking sct v0.7.0 [INFO] [stderr] Checking aes v0.8.3 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking futures-locks v0.7.1 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling thiserror-impl v1.0.49 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Compiling strum_macros v0.25.2 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling rlp-derive v0.1.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling auto_impl v1.1.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.87 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Checking simple_asn1 v0.6.2 [INFO] [stderr] Checking js-sys v0.3.64 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Checking gloo-timers v0.2.6 [INFO] [stderr] Checking futures-timer v3.0.2 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking impl-serde v0.4.0 [INFO] [stderr] Checking cargo-platform v0.1.4 [INFO] [stderr] Checking toml_datetime v0.6.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_spanned v0.6.3 [INFO] [stderr] Checking coins-core v0.8.7 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking toml_edit v0.19.15 [INFO] [stderr] Checking coins-bip32 v0.8.7 [INFO] [stderr] Checking rlp v0.5.2 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking impl-rlp v0.3.0 [INFO] [stderr] Checking enr v0.9.1 [INFO] [stderr] Checking coins-bip39 v0.8.7 [INFO] [stderr] Compiling open-fastrlp-derive v0.1.1 [INFO] [stderr] Checking cargo_metadata v0.17.0 [INFO] [stderr] Checking jsonwebtoken v8.3.0 [INFO] [stderr] Checking eth-keystore v0.5.0 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking tungstenite v0.20.1 [INFO] [stderr] Checking toml v0.7.8 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling parity-scale-codec-derive v3.6.5 [INFO] [stderr] Compiling scale-info-derive v2.9.0 [INFO] [stderr] Compiling num_enum_derive v0.7.0 [INFO] [stderr] Checking num_enum v0.7.0 [INFO] [stderr] Checking tokio-util v0.7.9 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-tungstenite v0.20.1 [INFO] [stderr] Checking parity-scale-codec v3.6.5 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking impl-codec v0.6.0 [INFO] [stderr] Checking scale-info v2.9.0 [INFO] [stderr] Checking primitive-types v0.12.1 [INFO] [stderr] Checking ethbloom v0.13.0 [INFO] [stderr] Checking ethereum-types v0.14.1 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking open-fastrlp v0.1.4 [INFO] [stderr] Checking ethabi v18.0.0 [INFO] [stderr] Checking ethers-core v2.0.10 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking hyper-rustls v0.24.1 [INFO] [stderr] Checking reqwest v0.11.22 [INFO] [stderr] Checking ethers-providers v2.0.10 [INFO] [stderr] Checking ethers-contract-abigen v2.0.10 [INFO] [stderr] Checking ethers-signers v2.0.10 [INFO] [stderr] Checking ethers-etherscan v2.0.10 [INFO] [stderr] Checking ethers-addressbook v2.0.10 [INFO] [stderr] Compiling ethers-contract-derive v2.0.10 [INFO] [stderr] Checking ethers-contract v2.0.10 [INFO] [stderr] Checking ethers-middleware v2.0.10 [INFO] [stderr] Checking ethers v2.0.10 [INFO] [stderr] Checking playground v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/m8_collections.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ethers::types::Res` [INFO] [stdout] --> src/m7_async.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | use ethers::types::Res; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alice_check` [INFO] [stdout] --> src/m5_lifetimes.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let alice_check = largest(&check_ag, alice.points); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alice_check` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut f = min; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | let mut m = max; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Red`, `Green`, `Blue`, and `Silver` are never constructed [INFO] [stdout] --> src/m1_enums.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum CarColour { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 3 | Red, [INFO] [stdout] | ^^^ [INFO] [stdout] 4 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | Blue, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | Silver, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CarColour` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ok` and `Err` are never constructed [INFO] [stdout] --> src/m1_enums.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | enum GivenResult { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 11 | Ok(T), [INFO] [stdout] | ^^ [INFO] [stdout] 12 | Err(E), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GivenResult` 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 `None` and `Some` are never constructed [INFO] [stdout] --> src/m1_enums.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | enum GivenOptions { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 18 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | Some(T), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GivenOptions` 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 `Car`, `Train`, and `Air` are never constructed [INFO] [stdout] --> src/m1_enums.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | enum Conveyance { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 25 | Car = 15, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | Train = 20, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | Air = 30, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Conveyance` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `travel_allowance` is never used [INFO] [stdout] --> src/m1_enums.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 30 | impl Conveyance { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 31 | fn travel_allowance(&self, miles: i32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_under_five` is never used [INFO] [stdout] --> src/m1_enums.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn check_under_five(num_check: u8) -> GivenResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_under_five_built_in` is never used [INFO] [stdout] --> src/m1_enums.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn check_under_five_built_in(num_check: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remainder_zero` is never used [INFO] [stdout] --> src/m1_enums.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn remainder_zero(num_check: f32) -> GivenOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_car_colour_red` is never used [INFO] [stdout] --> src/m1_enums.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn handle_car_colour_red() -> CarColour { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `email`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> src/m2_structs.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 3 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 6 | active: bool, [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] [INFO] [stdout] [INFO] [stdout] warning: function `square` is never used [INFO] [stdout] --> src/m2_structs.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn square(num: T) -> T [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `increment_signin_count`, `change_email`, and `change_username` are never used [INFO] [stdout] --> src/m2_structs.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl User { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 17 | fn increment_signin_count(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn change_email(&mut self, new_email: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn change_username(user: &mut User, new_username: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_username` is never used [INFO] [stdout] --> src/m2_structs.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn change_username(user: &mut User, new_username: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Warrior`, `Archer`, and `Wizard` are never constructed [INFO] [stdout] --> src/m3_trait.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | enum Character { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 12 | Warrior, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | Archer, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | Wizard, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Character` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ethereum_data` is never used [INFO] [stdout] --> src/m4_polymorphism.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn get_ethereum_data(address: T) -> Address { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_lifetime` is never used [INFO] [stdout] --> src/m5_lifetimes.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn test_lifetime() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest` is never used [INFO] [stdout] --> src/m5_lifetimes.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn largest<'a, T: PartialOrd>(compare_1: &'a T, compare_2: &'a T) -> &'a T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/m5_lifetimes.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct Person<'b> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `ChangeColor`, `Move`, and `Write` are never constructed [INFO] [stdout] --> src/m6_patterns.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 3 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 5 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_message` is never used [INFO] [stdout] --> src/m6_patterns.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn process_message(msg: Message) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `my_async_call` is never used [INFO] [stdout] --> src/m7_async.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | async fn my_async_call(url: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/m4_polymorphism.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let addr: Address = [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alice_check` [INFO] [stdout] --> src/m5_lifetimes.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let alice_check = largest(&check_ag, alice.points); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alice_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prob_none` [INFO] [stdout] --> src/m6_patterns.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let prob_none: Option = None; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prob_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `person1` [INFO] [stdout] --> src/m8_collections.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let person1 = "alice"; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_person1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `person2` [INFO] [stdout] --> src/m8_collections.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let person2 = "bob"; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_person2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut f = min; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | let mut m = max; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Green`, `Blue`, and `Silver` are never constructed [INFO] [stdout] --> src/m1_enums.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum CarColour { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 3 | Red, [INFO] [stdout] 4 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | Blue, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | Silver, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CarColour` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Train` and `Air` are never constructed [INFO] [stdout] --> src/m1_enums.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | enum Conveyance { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 25 | Car = 15, [INFO] [stdout] 26 | Train = 20, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | Air = 30, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Conveyance` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `email` and `active` are never read [INFO] [stdout] --> src/m2_structs.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 3 | username: String, [INFO] [stdout] 4 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | sign_in_count: u64, [INFO] [stdout] 6 | active: bool, [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] [INFO] [stdout] [INFO] [stdout] warning: associated items `change_email` and `change_username` are never used [INFO] [stdout] --> src/m2_structs.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl User { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn change_email(&mut self, new_email: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn change_username(user: &mut User, new_username: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Warrior` and `Wizard` are never constructed [INFO] [stdout] --> src/m3_trait.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | enum Character { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 12 | Warrior, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | Archer, [INFO] [stdout] 14 | Wizard, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Character` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_lifetime` is never used [INFO] [stdout] --> src/m5_lifetimes.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn test_lifetime() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest` is never used [INFO] [stdout] --> src/m5_lifetimes.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn largest<'a, T: PartialOrd>(compare_1: &'a T, compare_2: &'a T) -> &'a T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/m5_lifetimes.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct Person<'b> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/m1_enums.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | dbg!(is_under_five_res_buil_in); [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] = note: this warning originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 04s [INFO] running `Command { std: "docker" "inspect" "1c6e0897b1f0171b76dda2ece1f79385f9af8e927acf58fc169c846973967fce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c6e0897b1f0171b76dda2ece1f79385f9af8e927acf58fc169c846973967fce", kill_on_drop: false }` [INFO] [stdout] 1c6e0897b1f0171b76dda2ece1f79385f9af8e927acf58fc169c846973967fce