[INFO] cloning repository https://github.com/VielenDanke/rust_learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/VielenDanke/rust_learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVielenDanke%2Frust_learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVielenDanke%2Frust_learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a286695f871eb9ff055d614fad042337cf5b7a89 [INFO] checking VielenDanke/rust_learning against try#d8a5ee01b913730aca7ab44c72c8f2722c0533ff for pr-139022 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVielenDanke%2Frust_learning" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/VielenDanke/rust_learning on toolchain d8a5ee01b913730aca7ab44c72c8f2722c0533ff [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/VielenDanke/rust_learning [INFO] finished tweaking git repo https://github.com/VielenDanke/rust_learning [INFO] tweaked toml for git repo https://github.com/VielenDanke/rust_learning written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/VielenDanke/rust_learning 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" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f0c353065819d7e25a2973f56acf39d1563d1ee1508a6cf3eb596d0f8fc01a37 [INFO] running `Command { std: "docker" "start" "-a" "f0c353065819d7e25a2973f56acf39d1563d1ee1508a6cf3eb596d0f8fc01a37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f0c353065819d7e25a2973f56acf39d1563d1ee1508a6cf3eb596d0f8fc01a37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f0c353065819d7e25a2973f56acf39d1563d1ee1508a6cf3eb596d0f8fc01a37", kill_on_drop: false }` [INFO] [stdout] f0c353065819d7e25a2973f56acf39d1563d1ee1508a6cf3eb596d0f8fc01a37 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] efcbc56be60317747c7ae1633a2a74bff115e1f8b7b437977d4f27ced65c8700 [INFO] running `Command { std: "docker" "start" "-a" "efcbc56be60317747c7ae1633a2a74bff115e1f8b7b437977d4f27ced65c8700", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Checking typeid v1.0.0 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking parking v2.2.0 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Checking fastrand v2.1.0 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking futures-lite v2.3.0 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking event-listener v4.0.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking event-listener v5.3.0 [INFO] [stderr] Checking event-listener-strategy v0.4.0 [INFO] [stderr] Checking async-lock v3.3.0 [INFO] [stderr] Compiling rustix v0.37.27 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Checking event-listener-strategy v0.5.2 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Checking waker-fn v1.2.0 [INFO] [stderr] Checking async-task v4.7.1 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking piper v0.2.2 [INFO] [stderr] Checking async-channel v2.3.1 [INFO] [stderr] Checking async-lock v2.8.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking universal-hash v0.4.0 [INFO] [stderr] Checking futures-lite v1.13.0 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Checking cpuid-bool v0.2.0 [INFO] [stderr] Compiling const_fn v0.4.10 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Compiling is-terminal v0.4.12 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking polyval v0.4.5 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling cc v1.0.95 [INFO] [stderr] Checking blocking v1.6.0 [INFO] [stderr] Checking async-executor v1.11.0 [INFO] [stderr] Checking aes-soft v0.6.4 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.10.0 [INFO] [stderr] Checking event-listener v3.1.0 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Checking hmac v0.10.1 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking ghash v0.3.1 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Checking aes v0.6.0 [INFO] [stderr] Checking ctr v0.6.0 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking aead v0.3.2 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling ref-cast v1.0.23 [INFO] [stderr] Checking data-encoding v2.6.0 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking aes-gcm v0.8.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking hkdf v0.10.0 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling http-types v2.12.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling zstd-safe v7.1.0 [INFO] [stderr] Checking infer v0.2.3 [INFO] [stderr] Checking managing_projects v0.1.0 (/opt/rustwide/workdir/managing_projects) [INFO] [stdout] warning: function `calculate_product_cost` is never used [INFO] [stdout] --> managing_projects/src/service/product_service.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn calculate_product_cost(first_product: u32, second_product: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_products` is never used [INFO] [stdout] --> managing_projects/src/repository/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn fetch_products() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking winnow v0.6.8 [INFO] [stderr] Compiling zstd-sys v2.0.10+zstd.1.5.6 [INFO] [stderr] Compiling blake3 v0.3.8 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking brotli-decompressor v4.0.0 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling either v1.12.0 [INFO] [stderr] Checking arrayref v0.3.7 [INFO] [stderr] Compiling regex-lite v0.1.5 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking zerocopy v0.7.34 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking hmac v0.8.1 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking async-dup v1.2.4 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Checking brotli v6.0.0 [INFO] [stderr] Checking pin-project-lite v0.1.12 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking route-recognizer v0.2.0 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Checking basic_blockchain_example v0.1.0 (/opt/rustwide/workdir/basic_blockchain_example) [INFO] [stderr] Checking server_with_standard_library v0.1.0 (/opt/rustwide/workdir/server_with_standard_library) [INFO] [stderr] Checking learning v0.1.0 (/opt/rustwide/workdir/learning) [INFO] [stdout] warning: field `pending_transactions` is never read [INFO] [stdout] --> basic_blockchain_example/src/structures/blockchain.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Blockchain { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pending_transactions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Blockchain` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `store` and `acc_type` are never read [INFO] [stdout] --> basic_blockchain_example/src/structures/account.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Account { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 8 | /// We want the account to be able to store any information we want (Dictionary) [INFO] [stdout] 9 | store: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | acc_type: AccountType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> learning/src/oop/pattern_state_example.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> learning/src/oop/pattern_state_example.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `syn` (lib) [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/d8a5ee01b913730aca7ab44c72c8f2722c0533ff/bin/rustc --crate-name syn --edition=2018 /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="extra-traits"' --cfg 'feature="full"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("clone-impls", "default", "derive", "extra-traits", "fold", "full", "parsing", "printing", "proc-macro", "quote", "test", "visit", "visit-mut"))' -C metadata=265beddd19c403c4 -C extra-filename=-74503cc76f75da55 --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern proc_macro2=/opt/rustwide/target/debug/deps/libproc_macro2-69f0f46f03595f5d.rmeta --extern quote=/opt/rustwide/target/debug/deps/libquote-f270beec2845231c.rmeta --extern unicode_ident=/opt/rustwide/target/debug/deps/libunicode_ident-f2de522ba645d884.rmeta --cap-lints allow --cap-lints=forbid` (signal: 9, SIGKILL: kill) [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `pending_transactions` is never read [INFO] [stdout] --> basic_blockchain_example/src/structures/blockchain.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Blockchain { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pending_transactions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Blockchain` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `store` and `acc_type` are never read [INFO] [stdout] --> basic_blockchain_example/src/structures/account.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Account { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 8 | /// We want the account to be able to store any information we want (Dictionary) [INFO] [stdout] 9 | store: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | acc_type: AccountType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> learning/src/collections/string.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> learning/src/collections/string.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let s = data.to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> learning/src/collections/string.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let s = "initial content".to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> learning/src/collections/string.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let s = String::from("initial content"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> learning/src/collections/string.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let mut s = String::new(); [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: unused variable: `s` [INFO] [stdout] --> learning/src/collections/string.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let s = &hello[0..4]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> learning/src/collections/vector.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `macro_v` [INFO] [stdout] --> learning/src/collections/vector.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let macro_v = vec![1, 2, 3]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_macro_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point_integer` [INFO] [stdout] --> learning/src/generics/generic_structures.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let point_integer = Point {x: 5, y: 10}; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_point_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point_float` [INFO] [stdout] --> learning/src/generics/generic_structures.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let point_float = Point {x: 5.0, y: 10.0}; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_point_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point_combined` [INFO] [stdout] --> learning/src/generics/generic_structures.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let point_combined = PointCombined{x: 5, y: 10.0}; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_point_combined` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> learning/src/traits/traits_with_generics.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn notify_with_restrictions(item: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> learning/src/traits/traits_with_generics.rs:11:64 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn notify_with_restrictions_generics(item: &T) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> learning/src/traits/traits_with_generics.rs:13:78 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn functions_with_complex_generics(t: &T, u: &U) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> learning/src/traits/traits_with_generics.rs:13:85 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn functions_with_complex_generics(t: &T, u: &U) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> learning/src/traits/traits_with_generics.rs:17:35 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn functions_with_where(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> learning/src/traits/traits_with_generics.rs:17:42 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn functions_with_where(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `r` is assigned to, but never used [INFO] [stdout] --> learning/src/lifetimes/lifetime_in_functions.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let r; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_r` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> learning/src/lifetimes/lifetime_in_functions.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | r = &x; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> learning/src/lifetimes/lifetime_in_struct.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let i = ImportantExcerpt { part: first_sentence }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> learning/src/lifetimes/static_lifetime.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let s: &'static str = "I have a static lifetime"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expensive_closure` [INFO] [stdout] --> learning/src/closures/closures_as_variables.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let expensive_closure = |num: u32| -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expensive_closure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add_one_v2` [INFO] [stdout] --> learning/src/closures/closures_as_variables.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let add_one_v2 = |x: u32| -> u32 { x + 1 }; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_one_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> learning/src/smart_pointers/rc_pointers.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let b = Cons(3, Box::new(a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> learning/src/smart_pointers/rc_pointers.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let b = ListRc::Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> learning/src/smart_pointers/rc_pointers.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let c = ListRc::Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> learning/src/oop/pattern_state_example.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> learning/src/patterns_mappings/destructurization.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> learning/src/patterns_mappings/destructurization.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> learning/src/patterns_mappings/destructurization.rs:73:34 [INFO] [stdout] | [INFO] [stdout] 73 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> learning/src/patterns_mappings/destructurization.rs:73:37 [INFO] [stdout] | [INFO] [stdout] 73 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> learning/src/patterns_mappings/wildcards.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> learning/src/patterns_mappings/extra_conditions.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | Some(x) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> learning/src/unsafe_rust/dereference_raw_pointers.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let r = address as *const i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> learning/src/advanced_types/synonym_types.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let f: Box = Box::new(|| println!("hi")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> learning/src/advanced_types/synonym_types.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 16 | fn takes_long_type(f: Box) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> learning/src/advanced_types/synonym_types.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let f: Thunk = Box::new(|| println!("hi")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> learning/src/advanced_types/synonym_types.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | fn takes_long_type(f: Thunk) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dynamic_s1` [INFO] [stdout] --> learning/src/advanced_types/sized_types.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let dynamic_s1: &str = "str_1"; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dynamic_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dynamic_s2` [INFO] [stdout] --> learning/src/advanced_types/sized_types.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let dynamic_s2 = Rc::::from("foo"); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dynamic_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> learning/src/advanced_types/sized_types.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn generic(t: &T) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> learning/src/macros/macros_rules.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let v: Vec = vec![1, 2, 3]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> learning/src/structures.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 22 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_rewrite_old_values` is never used [INFO] [stdout] --> learning/src/collections/hashmap.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn update_rewrite_old_values() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert_if_no_key_in_map` is never used [INFO] [stdout] --> learning/src/collections/hashmap.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn insert_if_no_key_in_map() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_value_based_on_old` is never used [INFO] [stdout] --> learning/src/collections/hashmap.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn new_value_based_on_old() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_string` is never used [INFO] [stdout] --> learning/src/collections/string.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn create_string() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `push_to_string` is never used [INFO] [stdout] --> learning/src/collections/string.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn push_to_string() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_vector` is never used [INFO] [stdout] --> learning/src/collections/vector.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn create_vector() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_vector` is never used [INFO] [stdout] --> learning/src/collections/vector.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn change_vector() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_values_from_vector` is never used [INFO] [stdout] --> learning/src/collections/vector.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn get_values_from_vector() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterate_over_vector` is never used [INFO] [stdout] --> learning/src/collections/vector.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn iterate_over_vector() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enums_to_store_different_types` is never used [INFO] [stdout] --> learning/src/collections/vector.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn enums_to_store_different_types() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `crash_and_burn` is never used [INFO] [stdout] --> learning/src/exceptions/non_recoverable_panic.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn crash_and_burn() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_trace_panic` is never used [INFO] [stdout] --> learning/src/exceptions/non_recoverable_panic.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn reverse_trace_panic() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> learning/src/generics/generic_structures.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PointCombined` is never constructed [INFO] [stdout] --> learning/src/generics/generic_structures.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct PointCombined { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `declare_structure` is never used [INFO] [stdout] --> learning/src/generics/generic_structures.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn declare_structure() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> learning/src/generics/generic_methods.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> learning/src/generics/generic_methods.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Point { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 7 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance_from_origin` is never used [INFO] [stdout] --> learning/src/generics/generic_methods.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Point { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 14 | fn distance_from_origin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `non_compiled_example` is never used [INFO] [stdout] --> learning/src/lifetimes/lifetime_in_functions.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn non_compiled_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call` is never used [INFO] [stdout] --> learning/src/lifetimes/lifetime_in_struct.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn call() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> learning/src/lifetimes/lifetime_elision.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn first_word<'a>(s: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `return_part` is never used [INFO] [stdout] --> learning/src/lifetimes/lifetime_in_methods.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 6 | fn return_part(&self, announcement: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example` is never used [INFO] [stdout] --> learning/src/lifetimes/static_lifetime.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_closure_with_variable` is never used [INFO] [stdout] --> learning/src/closures/closures_as_variables.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn example_closure_with_variable() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_with_and_without_type_annotation` is never used [INFO] [stdout] --> learning/src/closures/closures_as_variables.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn example_with_and_without_type_annotation() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> learning/src/closures/links_and_ownership.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 38 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 39 | width: u32, [INFO] [stdout] 40 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> learning/src/smart_pointers/rc_pointers.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | Cons(T, Rc>), [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] 11 - Cons(T, Rc>), [INFO] [stdout] 11 + Cons(T, ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> learning/src/smart_pointers/rc_with_refcell.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 6 - Cons(Rc>, Rc), [INFO] [stdout] 6 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reject` is never used [INFO] [stdout] --> learning/src/oop/pattern_state_example.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 38 | trait State { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 44 | fn reject(self: Box) -> Box; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rejected` is never constructed [INFO] [stdout] --> learning/src/oop/pattern_state_example.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | struct Rejected {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> learning/src/patterns_mappings/destructurization.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Color` is never used [INFO] [stdout] --> learning/src/patterns_mappings/destructurization.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> learning/src/patterns_mappings/destructurization.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `desctructurization_struct` is never used [INFO] [stdout] --> learning/src/patterns_mappings/destructurization.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn desctructurization_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `desctructurization_struct_shorter` is never used [INFO] [stdout] --> learning/src/patterns_mappings/destructurization.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn desctructurization_struct_shorter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `desctructurization_struct_with_match` is never used [INFO] [stdout] --> learning/src/patterns_mappings/destructurization.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn desctructurization_struct_with_match() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `desctructurization_enum` is never used [INFO] [stdout] --> learning/src/patterns_mappings/destructurization.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn desctructurization_enum() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `desctructurization_tuples` is never used [INFO] [stdout] --> learning/src/patterns_mappings/destructurization.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn desctructurization_tuples() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `y` and `z` are never read [INFO] [stdout] --> learning/src/patterns_mappings/wildcards.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 2 | x: i32, [INFO] [stdout] 3 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] 4 | z: i32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `baby_name` is never used [INFO] [stdout] --> learning/src/advanced_traits/call_methods_and_functions_with_the_same_name.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl Dog { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 49 | fn baby_name() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_long_type` is never used [INFO] [stdout] --> learning/src/advanced_types/synonym_types.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn takes_long_type(f: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_long_type` is never used [INFO] [stdout] --> learning/src/advanced_types/synonym_types.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn returns_long_type() -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_long_type` is never used [INFO] [stdout] --> learning/src/advanced_types/synonym_types.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | fn takes_long_type(f: Thunk) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_long_type` is never used [INFO] [stdout] --> learning/src/advanced_types/synonym_types.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn returns_long_type() -> Thunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> learning/src/advanced_types/synonym_types.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Write` is never used [INFO] [stdout] --> learning/src/advanced_types/synonym_types.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | pub trait Write { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> learning/src/advanced_functions_and_closures/function_pointer.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | Value(u32), [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] 23 - Value(u32), [INFO] [stdout] 23 + Value(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Stop` is never constructed [INFO] [stdout] --> learning/src/advanced_functions_and_closures/function_pointer.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 22 | enum Status { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 23 | Value(u32), [INFO] [stdout] 24 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_closure` is never used [INFO] [stdout] --> learning/src/advanced_functions_and_closures/return_closures.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn returns_closure() -> Box i32> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> learning/src/unsafe_rust/call_unsafe_functions_or_methods.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | drop(*ptr); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `i32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 10 - drop(*ptr); [INFO] [stdout] 10 + let _ = *ptr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> learning/src/unsafe_rust/access_change_static_variables.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | println!("COUNTER: {COUNTER}"); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> learning/src/advanced_functions_and_closures/function_pointer.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | vec_example.iter().map(|i| i.to_string()).collect::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 17 | let _ = vec_example.iter().map(|i| i.to_string()).collect::(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> learning/src/advanced_functions_and_closures/function_pointer.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | vec_example.iter().map(ToString::to_string).collect::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 18 | let _ = vec_example.iter().map(ToString::to_string).collect::(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "efcbc56be60317747c7ae1633a2a74bff115e1f8b7b437977d4f27ced65c8700", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "efcbc56be60317747c7ae1633a2a74bff115e1f8b7b437977d4f27ced65c8700", kill_on_drop: false }` [INFO] [stdout] efcbc56be60317747c7ae1633a2a74bff115e1f8b7b437977d4f27ced65c8700