[INFO] cloning repository https://github.com/Lisheri/rust-guess-name [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Lisheri/rust-guess-name" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLisheri%2Frust-guess-name", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLisheri%2Frust-guess-name'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f2a97f54bc3b4b6da4957e26bf17152dcec272f0 [INFO] checking Lisheri/rust-guess-name against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLisheri%2Frust-guess-name" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Lisheri/rust-guess-name on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Lisheri/rust-guess-name [INFO] finished tweaking git repo https://github.com/Lisheri/rust-guess-name [INFO] tweaked toml for git repo https://github.com/Lisheri/rust-guess-name written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Lisheri/rust-guess-name 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded getrandom v0.2.9 [INFO] [stderr] Downloaded backtrace v0.3.59 [INFO] [stderr] Downloaded heim v0.1.0-rc.1 [INFO] [stderr] Downloaded quote v1.0.31 [INFO] [stderr] Downloaded heim-sensors v0.1.0-rc.1 [INFO] [stderr] Downloaded heim-disk v0.1.0-rc.1 [INFO] [stderr] Downloaded darwin-libproc v0.2.0 [INFO] [stderr] Downloaded uom v0.30.0 [INFO] [stderr] Downloaded nix v0.19.1 [INFO] [stderr] Downloaded object v0.24.0 [INFO] [stderr] Downloaded gimli v0.24.0 [INFO] [stderr] Downloaded libc v0.2.144 [INFO] [stderr] Downloaded heim-cpu v0.1.0-rc.1 [INFO] [stderr] Downloaded heim-process v0.1.1-rc.1 [INFO] [stderr] Downloaded heim-common v0.1.0-rc.1 [INFO] [stderr] Downloaded async-net v1.7.0 [INFO] [stderr] Downloaded async-process v1.7.0 [INFO] [stderr] Downloaded smol v1.2.5 [INFO] [stderr] Downloaded heim-runtime v0.1.0-rc.1 [INFO] [stderr] Downloaded raw-cpuid v8.1.2 [INFO] [stderr] Downloaded addr2line v0.15.2 [INFO] [stderr] Downloaded heim-memory v0.1.0-rc.1 [INFO] [stderr] Downloaded darwin-libproc-sys v0.2.0 [INFO] [stderr] Downloaded platforms v1.0.3 [INFO] [stderr] Downloaded heim-host v0.1.0-rc.1 [INFO] [stderr] Downloaded heim-net v0.1.0-rc.1 [INFO] [stderr] Downloaded heim-virt v0.1.0-rc.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 547ec3e7c3d85be7b0d407498938c49904538eb1d03bd95570814c87b1475b90 [INFO] running `Command { std: "docker" "start" "-a" "547ec3e7c3d85be7b0d407498938c49904538eb1d03bd95570814c87b1475b90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "547ec3e7c3d85be7b0d407498938c49904538eb1d03bd95570814c87b1475b90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "547ec3e7c3d85be7b0d407498938c49904538eb1d03bd95570814c87b1475b90", kill_on_drop: false }` [INFO] [stdout] 547ec3e7c3d85be7b0d407498938c49904538eb1d03bd95570814c87b1475b90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5e2d8c093543d56739d741430f517a88ee51349aaa25a4e56a68509b2dd2955f [INFO] running `Command { std: "docker" "start" "-a" "5e2d8c093543d56739d741430f517a88ee51349aaa25a4e56a68509b2dd2955f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.144 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking parking v2.1.0 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Checking async-lock v2.7.0 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking concurrent-queue v2.2.0 [INFO] [stderr] Checking futures-lite v1.13.0 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling rustix v0.37.23 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling quote v1.0.31 [INFO] [stderr] Compiling syn v2.0.26 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Checking async-task v4.4.0 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking atomic-waker v1.1.1 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling async-process v1.7.0 [INFO] [stderr] Compiling async-fs v1.6.0 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking blocking v1.3.1 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Compiling async-net v1.7.0 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking async-executor v1.5.1 [INFO] [stderr] Compiling heim-common v0.1.0-rc.1 [INFO] [stderr] Checking nix v0.19.1 [INFO] [stderr] Checking futures-timer v3.0.2 [INFO] [stderr] Compiling platforms v1.0.3 [INFO] [stderr] Compiling raw-cpuid v8.1.2 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling heim-host v0.1.0-rc.1 [INFO] [stderr] Compiling async-trait v0.1.71 [INFO] [stderr] Checking uom v0.30.0 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking macaddr v1.0.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ordered-float v2.0.1 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Compiling serde_json v1.0.103 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking num-complex v0.4.3 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking smol v1.2.5 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling serde_derive v1.0.171 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Checking serde v1.0.171 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking heim-runtime v0.1.0-rc.1 [INFO] [stderr] Checking heim-cpu v0.1.0-rc.1 [INFO] [stderr] Checking heim-net v0.1.0-rc.1 [INFO] [stderr] Checking heim-disk v0.1.0-rc.1 [INFO] [stderr] Checking heim-sensors v0.1.0-rc.1 [INFO] [stderr] Checking heim-memory v0.1.0-rc.1 [INFO] [stderr] Checking heim-virt v0.1.0-rc.1 [INFO] [stderr] Checking heim-process v0.1.1-rc.1 [INFO] [stderr] Checking heim v0.1.0-rc.1 [INFO] [stderr] Checking guessing_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `num::BigInt` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use num::BigInt; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::bigint::BigUint` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use num::bigint::BigUint; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/../modules/control_flow.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | if (remaining == 9) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 54 - if (remaining == 9) { [INFO] [stdout] 54 + if remaining == 9 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/../modules/ownership.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::{Rc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | / /** [INFO] [stdout] 10 | | * ! 和指针不同, 引用确保指向某个特定类型的有效值 [INFO] [stdout] 11 | | */ [INFO] [stdout] | |______^ [INFO] [stdout] ... [INFO] [stdout] 15 | change_reference(); [INFO] [stdout] | ------------------ rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::abs` [INFO] [stdout] --> src/../modules/enum_mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use num::abs; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> src/../modules/mem_replace.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/../modules/reference/reference.rs:52:60 [INFO] [stdout] | [INFO] [stdout] 52 | struct Anime { name: &'static str, bechdel_pass: bool }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/../modules/reference/reference.rs:80:36 [INFO] [stdout] | [INFO] [stdout] 80 | struct Point { x: i32, y: i32 }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::system_info::Cpu` [INFO] [stdout] --> src/../modules/expression/language.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | use super::system_info::Cpu; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/../modules/expression/language.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | if (true) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 76 - if (true) { [INFO] [stdout] 76 + if true { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/../modules/enum_mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(is_some_and)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/../modules/enum_mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(result_option_inspect)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::BigInt` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use num::BigInt; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::bigint::BigUint` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use num::bigint::BigUint; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/../modules/control_flow.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | if (remaining == 9) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 54 - if (remaining == 9) { [INFO] [stdout] 54 + if remaining == 9 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/../modules/ownership.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::{Rc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | / /** [INFO] [stdout] 10 | | * ! 和指针不同, 引用确保指向某个特定类型的有效值 [INFO] [stdout] 11 | | */ [INFO] [stdout] | |______^ [INFO] [stdout] ... [INFO] [stdout] 15 | change_reference(); [INFO] [stdout] | ------------------ rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::abs` [INFO] [stdout] --> src/../modules/enum_mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use num::abs; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> src/../modules/mem_replace.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/../modules/reference/reference.rs:52:60 [INFO] [stdout] | [INFO] [stdout] 52 | struct Anime { name: &'static str, bechdel_pass: bool }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/../modules/reference/reference.rs:80:36 [INFO] [stdout] | [INFO] [stdout] 80 | struct Point { x: i32, y: i32 }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::system_info::Cpu` [INFO] [stdout] --> src/../modules/expression/language.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | use super::system_info::Cpu; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/../modules/expression/language.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | if (true) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 76 - if (true) { [INFO] [stdout] 76 + if true { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/../modules/enum_mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(is_some_and)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/../modules/enum_mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(result_option_inspect)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `heart_eyed_cat` [INFO] [stdout] --> src/../modules/variables.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let heart_eyed_cat = '😻'; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_heart_eyed_cat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/../modules/variables.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let a = [1, 2, 3, 4]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `months` [INFO] [stdout] --> src/../modules/variables.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let months: [&str; 12] = ["January", "February", "March", "April", "May", "June", "July", [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/../modules/variables.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let a = [3; 5]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/../modules/variables.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let first = a[0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second` [INFO] [stdout] --> src/../modules/variables.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let second = a[1]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_second` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `pre1` is never read [INFO] [stdout] --> src/../modules/control_flow.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | let mut pre1: BigUint = One::one(); [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: `s` [INFO] [stdout] --> src/../modules/ownership.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let s = "hello"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/../modules/ownership.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let y = x; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/../modules/ownership.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | let s3 = s2.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/../modules/ownership.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | let y = x; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/../modules/ownership.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | let s1 = gives_ownership(); // gives_ownership 将返回值的所有权move给s1 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/../modules/ownership.rs:332:9 [INFO] [stdout] | [INFO] [stdout] 332 | let u = s.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `heart_eyed_cat` [INFO] [stdout] --> src/../modules/variables.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let heart_eyed_cat = '😻'; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_heart_eyed_cat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/../modules/variables.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let a = [1, 2, 3, 4]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `months` [INFO] [stdout] --> src/../modules/variables.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let months: [&str; 12] = ["January", "February", "March", "April", "May", "June", "July", [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/../modules/variables.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let a = [3; 5]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/../modules/variables.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let first = a[0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second` [INFO] [stdout] --> src/../modules/variables.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let second = a[1]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_second` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `pre1` is never read [INFO] [stdout] --> src/../modules/control_flow.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | let mut pre1: BigUint = One::one(); [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: `t` [INFO] [stdout] --> src/../modules/ownership.rs:333:9 [INFO] [stdout] | [INFO] [stdout] 333 | let t = s.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str2` [INFO] [stdout] --> src/../modules/ownership.rs:382:9 [INFO] [stdout] | [INFO] [stdout] 382 | let str2 = str1; // 发生move [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/../modules/ownership.rs:446:7 [INFO] [stdout] | [INFO] [stdout] 446 | let t: Rc = s.clone(); // Rc调用 clone 不会深拷贝 T, 而是在栈帧上创建一个新的指针指向同一个堆地址, 同时新增引用计数(JS的引用类 ... [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] --> src/../modules/ownership.rs:447:7 [INFO] [stdout] | [INFO] [stdout] 447 | let u: Rc = s.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/../modules/ownership.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let s = "hello"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reference_to_nothing` [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let reference_to_nothing = dangle(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reference_to_nothing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/../modules/ownership.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let y = x; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/../modules/ownership.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | let s3 = s2.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/../modules/ownership.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | let y = x; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/../modules/ownership.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | let s1 = gives_ownership(); // gives_ownership 将返回值的所有权move给s1 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/../modules/slice.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut s = String::from("hello world"); [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: `u` [INFO] [stdout] --> src/../modules/ownership.rs:332:9 [INFO] [stdout] | [INFO] [stdout] 332 | let u = s.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/../modules/slice.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let mut s = String::from("hello world!"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/../modules/slice.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let s = "hello world!"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/../modules/ownership.rs:333:9 [INFO] [stdout] | [INFO] [stdout] 333 | let t = s.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str2` [INFO] [stdout] --> src/../modules/ownership.rs:382:9 [INFO] [stdout] | [INFO] [stdout] 382 | let str2 = str1; // 发生move [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/../modules/ownership.rs:446:7 [INFO] [stdout] | [INFO] [stdout] 446 | let t: Rc = s.clone(); // Rc调用 clone 不会深拷贝 T, 而是在栈帧上创建一个新的指针指向同一个堆地址, 同时新增引用计数(JS的引用类 ... [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] --> src/../modules/ownership.rs:447:7 [INFO] [stdout] | [INFO] [stdout] 447 | let u: Rc = s.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/../modules/mem_replace.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut f2: BigUint = f0 + &f1; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reference_to_nothing` [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let reference_to_nothing = dangle(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reference_to_nothing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/../modules/slice.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut s = String::from("hello world"); [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/../modules/slice.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let mut s = String::from("hello world!"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/../modules/slice.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let s = "hello world!"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let r: &i32 = &v[1]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/../modules/mem_replace.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut f2: BigUint = f0 + &f1; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let x = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:73:14 [INFO] [stdout] | [INFO] [stdout] 73 | fn g<'a>(p: &'a i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `r` is assigned to, but never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | 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] --> src/../modules/reference/reference_safe.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | r = s.x; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:219:26 [INFO] [stdout] | [INFO] [stdout] 219 | fn f<'a>(r: &'a i32, s: &'a i32) -> &'a i32 { [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] --> src/../modules/reference/reference_safe.rs:224:31 [INFO] [stdout] | [INFO] [stdout] 224 | fn f2<'a, 'b>(r: &'a i32, s: &'b i32) -> &'a i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aside` [INFO] [stdout] --> src/../modules/reference/reference_shared_edit.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let aside = v; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_aside` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/../modules/expression/language.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let name: char = '1'; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let r: &i32 = &v[1]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `name1` is assigned to, but never used [INFO] [stdout] --> src/../modules/expression/language.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let name1: char; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_name1` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `name1` is never read [INFO] [stdout] --> src/../modules/expression/language.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | name1 = '2'; // 通过赋值进行初始化, 但是它并非可变变量, 因此初始化过后不能进行修改 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cookie` [INFO] [stdout] --> src/../modules/expression/language.rs:130:24 [INFO] [stdout] | [INFO] [stdout] 130 | } else if let Some(cookie) = Some("123123") { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cookie` [INFO] [stdout] --> src/../modules/expression/language.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | let cookie: &str = "111"; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/../modules/expression/language.rs:295:9 [INFO] [stdout] | [INFO] [stdout] 295 | let index = x as usize; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let x = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:73:14 [INFO] [stdout] | [INFO] [stdout] 73 | fn g<'a>(p: &'a i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `r` is assigned to, but never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | 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] --> src/../modules/reference/reference_safe.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | r = s.x; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:219:26 [INFO] [stdout] | [INFO] [stdout] 219 | fn f<'a>(r: &'a i32, s: &'a i32) -> &'a i32 { [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] --> src/../modules/reference/reference_safe.rs:224:31 [INFO] [stdout] | [INFO] [stdout] 224 | fn f2<'a, 'b>(r: &'a i32, s: &'b i32) -> &'a i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aside` [INFO] [stdout] --> src/../modules/reference/reference_shared_edit.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let aside = v; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_aside` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guess_number` is never used [INFO] [stdout] --> src/main.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn guess_number() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/../modules/expression/language.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let name: char = '1'; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `name1` is assigned to, but never used [INFO] [stdout] --> src/../modules/expression/language.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let name1: char; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_name1` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `name1` is never read [INFO] [stdout] --> src/../modules/expression/language.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | name1 = '2'; // 通过赋值进行初始化, 但是它并非可变变量, 因此初始化过后不能进行修改 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cookie` [INFO] [stdout] --> src/../modules/expression/language.rs:130:24 [INFO] [stdout] | [INFO] [stdout] 130 | } else if let Some(cookie) = Some("123123") { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cookie` [INFO] [stdout] --> src/../modules/expression/language.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | let cookie: &str = "111"; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/../modules/expression/language.rs:295:9 [INFO] [stdout] | [INFO] [stdout] 295 | let index = x as usize; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variables_main` is never used [INFO] [stdout] --> src/../modules/variables.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn variables_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variables_data_type` is never used [INFO] [stdout] --> src/../modules/variables.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn variables_data_type() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variables_array_fn` is never used [INFO] [stdout] --> src/../modules/variables.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn variables_array_fn() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_labeled_measurement` is never used [INFO] [stdout] --> src/../modules/func.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn print_labeled_measurement(value: i32, unit_label: char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `five` is never used [INFO] [stdout] --> src/../modules/func.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn five() -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plus_one` is never used [INFO] [stdout] --> src/../modules/func.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn plus_one(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `control_flow` is never used [INFO] [stdout] --> src/../modules/control_flow.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn control_flow(number: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loop_flow` is never used [INFO] [stdout] --> src/../modules/control_flow.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn loop_flow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nested_loop` is never used [INFO] [stdout] --> src/../modules/control_flow.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn nested_loop() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `while_fn` is never used [INFO] [stdout] --> src/../modules/control_flow.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn while_fn() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `for_fn` is never used [INFO] [stdout] --> src/../modules/control_flow.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn for_fn() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibonacci` is never used [INFO] [stdout] --> src/../modules/control_flow.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn fibonacci(n: isize) -> BigUint { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibonacci_over_flow` is never used [INFO] [stdout] --> src/../modules/control_flow.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn fibonacci_over_flow(n: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variables_scope` is never used [INFO] [stdout] --> src/../modules/ownership.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn variables_scope() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variables_scope_string` is never used [INFO] [stdout] --> src/../modules/ownership.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn variables_scope_string() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variables_move_and_clone_on_heap` is never used [INFO] [stdout] --> src/../modules/ownership.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn variables_move_and_clone_on_heap() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variables_copy_on_heap` is never used [INFO] [stdout] --> src/../modules/ownership.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn variables_copy_on_heap() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ownership_in_func` is never used [INFO] [stdout] --> src/../modules/ownership.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn ownership_in_func() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_ownership` is never used [INFO] [stdout] --> src/../modules/ownership.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn takes_ownership(some_string: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `makes_copy` is never used [INFO] [stdout] --> src/../modules/ownership.rs:211:4 [INFO] [stdout] | [INFO] [stdout] 211 | fn makes_copy(some_integer: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scope_return_val` is never used [INFO] [stdout] --> src/../modules/ownership.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn scope_return_val() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gives_ownership` is never used [INFO] [stdout] --> src/../modules/ownership.rs:231:4 [INFO] [stdout] | [INFO] [stdout] 231 | fn gives_ownership() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_and_gives_back` is never used [INFO] [stdout] --> src/../modules/ownership.rs:244:4 [INFO] [stdout] | [INFO] [stdout] 244 | fn takes_and_gives_back(a_string: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guess_number` is never used [INFO] [stdout] --> src/main.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn guess_number() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_padovan` is never used [INFO] [stdout] --> src/../modules/ownership.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn print_padovan() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/../modules/ownership.rs:270:8 [INFO] [stdout] | [INFO] [stdout] 270 | struct Person { name: String, birth: i32 } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/../modules/ownership.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 271 | impl Person { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 272 | fn new(name: String, birth: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compose` is never used [INFO] [stdout] --> src/../modules/ownership.rs:277:4 [INFO] [stdout] | [INFO] [stdout] 277 | fn compose() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_func` is never used [INFO] [stdout] --> src/../modules/ownership.rs:312:4 [INFO] [stdout] | [INFO] [stdout] 312 | fn move_func() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person1` is never constructed [INFO] [stdout] --> src/../modules/ownership.rs:338:8 [INFO] [stdout] | [INFO] [stdout] 338 | struct Person1 { name: Option, birth: i32 } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_vector` is never used [INFO] [stdout] --> src/../modules/ownership.rs:340:4 [INFO] [stdout] | [INFO] [stdout] 340 | fn move_vector() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_ownership` is never used [INFO] [stdout] --> src/../modules/ownership.rs:377:4 [INFO] [stdout] | [INFO] [stdout] 377 | fn copy_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Label` is never constructed [INFO] [stdout] --> src/../modules/ownership.rs:412:8 [INFO] [stdout] | [INFO] [stdout] 412 | struct Label { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `custom_copy` is never used [INFO] [stdout] --> src/../modules/ownership.rs:420:4 [INFO] [stdout] | [INFO] [stdout] 420 | fn custom_copy() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shared_ownership` is never used [INFO] [stdout] --> src/../modules/ownership.rs:436:4 [INFO] [stdout] | [INFO] [stdout] 436 | fn shared_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inner_mut` is never used [INFO] [stdout] --> src/../modules/ownership.rs:460:4 [INFO] [stdout] | [INFO] [stdout] 460 | fn inner_mut() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_ownership` is never used [INFO] [stdout] --> src/../modules/ownership.rs:469:8 [INFO] [stdout] | [INFO] [stdout] 469 | pub fn main_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `references_and_borrowing` is never used [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn references_and_borrowing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `references_calculator` is never used [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn references_calculator() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_length` is never used [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn calculate_length(s: &String) -> usize { // 这里的 s是String的引用 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_reference` is never used [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn change_reference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change` is never used [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn change(some_string: &mut String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dangling_references` is never used [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn dangling_references() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dangle` is never used [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn dangle() -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice_references` is never used [INFO] [stdout] --> src/../modules/slice.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn slice_references() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice_first` is never used [INFO] [stdout] --> src/../modules/slice.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn slice_first() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> src/../modules/slice.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn first_word(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_slice_what` is never used [INFO] [stdout] --> src/../modules/slice.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn string_slice_what() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word_re` is never used [INFO] [stdout] --> src/../modules/slice.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn first_word_re(s: &String) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_literal` is never used [INFO] [stdout] --> src/../modules/slice.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn string_literal() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `array_slice` is never used [INFO] [stdout] --> src/../modules/slice.rs:111:4 [INFO] [stdout] | [INFO] [stdout] 111 | fn array_slice() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/../modules/structs.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/../modules/structs.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl User { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 12 | // &self 是 self: &Self 缩写 [INFO] [stdout] 13 | fn get_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/../modules/structs.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Point(i32, i32, i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlwaysEqual` is never constructed [INFO] [stdout] --> src/../modules/structs.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct AlwaysEqual; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `structs_main` is never used [INFO] [stdout] --> src/../modules/structs.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn structs_main() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `area` is never used [INFO] [stdout] --> src/../modules/structs.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn area(width: u32, height: u32) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/../modules/structs.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `area_with_struct` is never used [INFO] [stdout] --> src/../modules/structs.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn area_with_struct(rectangle: &Rectangle) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `area_in_struct`, `can_hold`, `new`, and `square` are never used [INFO] [stdout] --> src/../modules/structs.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 96 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 101 | fn area_in_struct(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | fn new(width: u32, height: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | fn square(size: u32) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_user` is never used [INFO] [stdout] --> src/../modules/structs.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn build_user(email: String, username: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `func_main` is never used [INFO] [stdout] --> src/../modules/structs.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 140 | fn func_main() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddKind` is never used [INFO] [stdout] --> src/../modules/enum_mod.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | enum IpAddKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `route` is never used [INFO] [stdout] --> src/../modules/enum_mod.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn route(ip_kind: &IpAddKind) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/../modules/enum_mod.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call` is never used [INFO] [stdout] --> src/../modules/enum_mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Message { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 29 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tst_message_fn` is never used [INFO] [stdout] --> src/../modules/enum_mod.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn tst_message_fn() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_options_enum` is never used [INFO] [stdout] --> src/../modules/enum_mod.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn use_options_enum() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enum_mod_main` is never used [INFO] [stdout] --> src/../modules/enum_mod.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn enum_mod_main() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_replace` is never used [INFO] [stdout] --> src/../modules/mem_replace.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn use_replace() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibonacci` is never used [INFO] [stdout] --> src/../modules/mem_replace.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn fibonacci(n: usize) -> BigUint { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `climb_stairs` is never used [INFO] [stdout] --> src/../modules/climb_stairs.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn climb_stairs(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/../modules/climb_stairs.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 20 | #[inline] [INFO] [stdout] 21 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Table` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type Table = HashMap>; // 键为String 值为 Vec 的对象 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn show(table: &Table) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_works` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn sort_works(table: &mut Table) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reference_for_value` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn reference_for_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reference_change_address` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn reference_change_address(b: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `infinite_reference` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn infinite_reference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:111:4 [INFO] [stdout] | [INFO] [stdout] 111 | fn factorial(n: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_reference` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn get_all_reference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reference_fn` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn reference_fn() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reference_safe` is never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn reference_safe() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reference_to_params` is never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn reference_to_params() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_reference` is never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn return_reference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `struct_with_reference` is never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn struct_with_reference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lifetime_params` is never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn lifetime_params() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_omit_lifetime_params` is never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 233 | pub fn to_omit_lifetime_params() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_by_prefix` is never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:269:12 [INFO] [stdout] | [INFO] [stdout] 268 | impl StringTable { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 269 | fn find_by_prefix(&self, prefix: &str) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `other_null_pointer` is never used [INFO] [stdout] --> src/../modules/reference/reference_shared_edit.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn other_null_pointer() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice_destroy_reference` is never used [INFO] [stdout] --> src/../modules/reference/reference_shared_edit.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn slice_destroy_reference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `share_and_edit` is never used [INFO] [stdout] --> src/../modules/reference/reference_shared_edit.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn share_and_edit() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bound` is never used [INFO] [stdout] --> src/../modules/expression/language.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn bound() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `statement_fn` is never used [INFO] [stdout] --> src/../modules/expression/language.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn statement_fn() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quicksort` is never used [INFO] [stdout] --> src/../modules/expression/language.rs:263:4 [INFO] [stdout] | [INFO] [stdout] 263 | fn quicksort(slice: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `type_transform` is never used [INFO] [stdout] --> src/../modules/expression/language.rs:292:4 [INFO] [stdout] | [INFO] [stdout] 292 | fn type_transform() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variables_main` is never used [INFO] [stdout] --> src/../modules/variables.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn variables_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variables_data_type` is never used [INFO] [stdout] --> src/../modules/variables.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn variables_data_type() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variables_array_fn` is never used [INFO] [stdout] --> src/../modules/variables.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn variables_array_fn() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_labeled_measurement` is never used [INFO] [stdout] --> src/../modules/func.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn print_labeled_measurement(value: i32, unit_label: char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `five` is never used [INFO] [stdout] --> src/../modules/func.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn five() -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plus_one` is never used [INFO] [stdout] --> src/../modules/func.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn plus_one(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `control_flow` is never used [INFO] [stdout] --> src/../modules/control_flow.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn control_flow(number: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loop_flow` is never used [INFO] [stdout] --> src/../modules/control_flow.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn loop_flow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nested_loop` is never used [INFO] [stdout] --> src/../modules/control_flow.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn nested_loop() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `while_fn` is never used [INFO] [stdout] --> src/../modules/control_flow.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn while_fn() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `for_fn` is never used [INFO] [stdout] --> src/../modules/control_flow.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn for_fn() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibonacci` is never used [INFO] [stdout] --> src/../modules/control_flow.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn fibonacci(n: isize) -> BigUint { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibonacci_over_flow` is never used [INFO] [stdout] --> src/../modules/control_flow.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn fibonacci_over_flow(n: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variables_scope` is never used [INFO] [stdout] --> src/../modules/ownership.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn variables_scope() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variables_scope_string` is never used [INFO] [stdout] --> src/../modules/ownership.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn variables_scope_string() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variables_move_and_clone_on_heap` is never used [INFO] [stdout] --> src/../modules/ownership.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn variables_move_and_clone_on_heap() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variables_copy_on_heap` is never used [INFO] [stdout] --> src/../modules/ownership.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn variables_copy_on_heap() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ownership_in_func` is never used [INFO] [stdout] --> src/../modules/ownership.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn ownership_in_func() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_ownership` is never used [INFO] [stdout] --> src/../modules/ownership.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn takes_ownership(some_string: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `makes_copy` is never used [INFO] [stdout] --> src/../modules/ownership.rs:211:4 [INFO] [stdout] | [INFO] [stdout] 211 | fn makes_copy(some_integer: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scope_return_val` is never used [INFO] [stdout] --> src/../modules/ownership.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn scope_return_val() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gives_ownership` is never used [INFO] [stdout] --> src/../modules/ownership.rs:231:4 [INFO] [stdout] | [INFO] [stdout] 231 | fn gives_ownership() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_and_gives_back` is never used [INFO] [stdout] --> src/../modules/ownership.rs:244:4 [INFO] [stdout] | [INFO] [stdout] 244 | fn takes_and_gives_back(a_string: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_padovan` is never used [INFO] [stdout] --> src/../modules/ownership.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn print_padovan() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/../modules/ownership.rs:270:8 [INFO] [stdout] | [INFO] [stdout] 270 | struct Person { name: String, birth: i32 } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/../modules/ownership.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 271 | impl Person { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 272 | fn new(name: String, birth: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compose` is never used [INFO] [stdout] --> src/../modules/ownership.rs:277:4 [INFO] [stdout] | [INFO] [stdout] 277 | fn compose() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_func` is never used [INFO] [stdout] --> src/../modules/ownership.rs:312:4 [INFO] [stdout] | [INFO] [stdout] 312 | fn move_func() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person1` is never constructed [INFO] [stdout] --> src/../modules/ownership.rs:338:8 [INFO] [stdout] | [INFO] [stdout] 338 | struct Person1 { name: Option, birth: i32 } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_vector` is never used [INFO] [stdout] --> src/../modules/ownership.rs:340:4 [INFO] [stdout] | [INFO] [stdout] 340 | fn move_vector() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_ownership` is never used [INFO] [stdout] --> src/../modules/ownership.rs:377:4 [INFO] [stdout] | [INFO] [stdout] 377 | fn copy_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Label` is never constructed [INFO] [stdout] --> src/../modules/ownership.rs:412:8 [INFO] [stdout] | [INFO] [stdout] 412 | struct Label { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `custom_copy` is never used [INFO] [stdout] --> src/../modules/ownership.rs:420:4 [INFO] [stdout] | [INFO] [stdout] 420 | fn custom_copy() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shared_ownership` is never used [INFO] [stdout] --> src/../modules/ownership.rs:436:4 [INFO] [stdout] | [INFO] [stdout] 436 | fn shared_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inner_mut` is never used [INFO] [stdout] --> src/../modules/ownership.rs:460:4 [INFO] [stdout] | [INFO] [stdout] 460 | fn inner_mut() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_ownership` is never used [INFO] [stdout] --> src/../modules/ownership.rs:469:8 [INFO] [stdout] | [INFO] [stdout] 469 | pub fn main_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `references_and_borrowing` is never used [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn references_and_borrowing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `references_calculator` is never used [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn references_calculator() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_length` is never used [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn calculate_length(s: &String) -> usize { // 这里的 s是String的引用 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_reference` is never used [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn change_reference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change` is never used [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn change(some_string: &mut String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dangling_references` is never used [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn dangling_references() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dangle` is never used [INFO] [stdout] --> src/../modules/references_and_borrowing.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn dangle() -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice_references` is never used [INFO] [stdout] --> src/../modules/slice.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn slice_references() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice_first` is never used [INFO] [stdout] --> src/../modules/slice.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn slice_first() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> src/../modules/slice.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn first_word(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_slice_what` is never used [INFO] [stdout] --> src/../modules/slice.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn string_slice_what() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word_re` is never used [INFO] [stdout] --> src/../modules/slice.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn first_word_re(s: &String) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_literal` is never used [INFO] [stdout] --> src/../modules/slice.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn string_literal() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `array_slice` is never used [INFO] [stdout] --> src/../modules/slice.rs:111:4 [INFO] [stdout] | [INFO] [stdout] 111 | fn array_slice() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/../modules/structs.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/../modules/structs.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl User { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 12 | // &self 是 self: &Self 缩写 [INFO] [stdout] 13 | fn get_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/../modules/structs.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Point(i32, i32, i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlwaysEqual` is never constructed [INFO] [stdout] --> src/../modules/structs.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct AlwaysEqual; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `structs_main` is never used [INFO] [stdout] --> src/../modules/structs.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn structs_main() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `area` is never used [INFO] [stdout] --> src/../modules/structs.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn area(width: u32, height: u32) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/../modules/structs.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `area_with_struct` is never used [INFO] [stdout] --> src/../modules/structs.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn area_with_struct(rectangle: &Rectangle) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `area_in_struct`, `can_hold`, `new`, and `square` are never used [INFO] [stdout] --> src/../modules/structs.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 96 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 101 | fn area_in_struct(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | fn new(width: u32, height: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | fn square(size: u32) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_user` is never used [INFO] [stdout] --> src/../modules/structs.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn build_user(email: String, username: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `func_main` is never used [INFO] [stdout] --> src/../modules/structs.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 140 | fn func_main() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddKind` is never used [INFO] [stdout] --> src/../modules/enum_mod.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | enum IpAddKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `route` is never used [INFO] [stdout] --> src/../modules/enum_mod.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn route(ip_kind: &IpAddKind) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/../modules/enum_mod.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call` is never used [INFO] [stdout] --> src/../modules/enum_mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Message { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 29 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tst_message_fn` is never used [INFO] [stdout] --> src/../modules/enum_mod.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn tst_message_fn() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_options_enum` is never used [INFO] [stdout] --> src/../modules/enum_mod.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn use_options_enum() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enum_mod_main` is never used [INFO] [stdout] --> src/../modules/enum_mod.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn enum_mod_main() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_replace` is never used [INFO] [stdout] --> src/../modules/mem_replace.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn use_replace() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibonacci` is never used [INFO] [stdout] --> src/../modules/mem_replace.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn fibonacci(n: usize) -> BigUint { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `climb_stairs` is never used [INFO] [stdout] --> src/../modules/climb_stairs.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn climb_stairs(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/../modules/climb_stairs.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 20 | #[inline] [INFO] [stdout] 21 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Table` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type Table = HashMap>; // 键为String 值为 Vec 的对象 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn show(table: &Table) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_works` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn sort_works(table: &mut Table) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reference_for_value` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn reference_for_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reference_change_address` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn reference_change_address(b: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `infinite_reference` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn infinite_reference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:111:4 [INFO] [stdout] | [INFO] [stdout] 111 | fn factorial(n: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_reference` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn get_all_reference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reference_fn` is never used [INFO] [stdout] --> src/../modules/reference/reference.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn reference_fn() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reference_safe` is never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn reference_safe() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reference_to_params` is never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn reference_to_params() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_reference` is never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn return_reference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `struct_with_reference` is never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn struct_with_reference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lifetime_params` is never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn lifetime_params() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_omit_lifetime_params` is never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 233 | pub fn to_omit_lifetime_params() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 145 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_by_prefix` is never used [INFO] [stdout] --> src/../modules/reference/reference_safe.rs:269:12 [INFO] [stdout] | [INFO] [stdout] 268 | impl StringTable { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 269 | fn find_by_prefix(&self, prefix: &str) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `other_null_pointer` is never used [INFO] [stdout] --> src/../modules/reference/reference_shared_edit.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn other_null_pointer() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice_destroy_reference` is never used [INFO] [stdout] --> src/../modules/reference/reference_shared_edit.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn slice_destroy_reference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `share_and_edit` is never used [INFO] [stdout] --> src/../modules/reference/reference_shared_edit.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn share_and_edit() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bound` is never used [INFO] [stdout] --> src/../modules/expression/language.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn bound() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `statement_fn` is never used [INFO] [stdout] --> src/../modules/expression/language.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn statement_fn() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quicksort` is never used [INFO] [stdout] --> src/../modules/expression/language.rs:263:4 [INFO] [stdout] | [INFO] [stdout] 263 | fn quicksort(slice: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `type_transform` is never used [INFO] [stdout] --> src/../modules/expression/language.rs:292:4 [INFO] [stdout] | [INFO] [stdout] 292 | fn type_transform() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 35.70s [INFO] [stdout] warning: 145 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5e2d8c093543d56739d741430f517a88ee51349aaa25a4e56a68509b2dd2955f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e2d8c093543d56739d741430f517a88ee51349aaa25a4e56a68509b2dd2955f", kill_on_drop: false }` [INFO] [stdout] 5e2d8c093543d56739d741430f517a88ee51349aaa25a4e56a68509b2dd2955f