[INFO] cloning repository https://github.com/NeuropathyCC/rust_study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NeuropathyCC/rust_study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNeuropathyCC%2Frust_study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNeuropathyCC%2Frust_study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1bdc9ad0fd2846fc01b40ca0f2d193ea51842c68 [INFO] checking NeuropathyCC/rust_study against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNeuropathyCC%2Frust_study" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NeuropathyCC/rust_study on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/NeuropathyCC/rust_study [INFO] finished tweaking git repo https://github.com/NeuropathyCC/rust_study [INFO] tweaked toml for git repo https://github.com/NeuropathyCC/rust_study written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c2c2e804584a6e652b1ea0d3d456d079acce834ba5efc68219e84cf58b2a6f97 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c2c2e804584a6e652b1ea0d3d456d079acce834ba5efc68219e84cf58b2a6f97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c2c2e804584a6e652b1ea0d3d456d079acce834ba5efc68219e84cf58b2a6f97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2c2e804584a6e652b1ea0d3d456d079acce834ba5efc68219e84cf58b2a6f97", kill_on_drop: false }` [INFO] [stdout] c2c2e804584a6e652b1ea0d3d456d079acce834ba5efc68219e84cf58b2a6f97 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 36d63a38580433d562d7fb8202881320e7c8f5c6d49cf1812ef132644e520a61 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "36d63a38580433d562d7fb8202881320e7c8f5c6d49cf1812ef132644e520a61", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.88 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking itertools v0.10.0 [INFO] [stderr] Checking mio v0.7.9 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rustlearning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/function/closure.rs:119:6 [INFO] [stdout] | [INFO] [stdout] 119 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iterator::ExtIteator` [INFO] [stdout] --> src/function/mod.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | use iterator::ExtIteator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/function/closure.rs:119:6 [INFO] [stdout] | [INFO] [stdout] 119 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/oop/mod.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | let t2= (PrintDrop("a"), PrintDrop("b"), panic!()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--------^ [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/borrow/borrow.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let r1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/borrow/borrow.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let r1 = &s; // no problem [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/borrow/borrow.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let r2 = &s; // no problem [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/lifetime/lifetime.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | fn eg_2<'a>(a: &'a str, b: &'a str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ref2` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let mut ref2 = vec_ref.borrow_mut(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ref2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spaces` [INFO] [stdout] --> src/variable/scala_type.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let spaces = spaces.len(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spaces` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/trait_demo/trait_two.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | fn some_function (t: T, u: U) -> i32 where T: Display + Clone, U: Clone + Debug { [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/trait_demo/trait_two.rs:57:32 [INFO] [stdout] | [INFO] [stdout] 57 | fn some_function (t: T, u: U) -> i32 where T: Display + Clone, U: Clone + Debug { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/collection_demo/string.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let s2 = String::from("initial contents"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/collection_demo/string.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let s3 = s1 + &s2; // note s1 has been moved here and can no longer be used [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arr` [INFO] [stdout] --> src/collection_demo/vector.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let arr = [1, 2, 3]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/oop/mod.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let x = PrintDrop("x"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/oop/mod.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let y = PrintDrop("y"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t1` [INFO] [stdout] --> src/oop/mod.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let t1= (PrintDrop("x"), PrintDrop("y"), PrintDrop("z")); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t2` [INFO] [stdout] --> src/oop/mod.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let t2= (PrintDrop("a"), PrintDrop("b"), panic!()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/borrow/borrow.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let mut s = String::from("hello"); [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: `r1` [INFO] [stdout] --> src/borrow/borrow.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let r1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/borrow/borrow.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let r1 = &s; // no problem [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/borrow/borrow.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let r2 = &s; // no problem [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/lifetime/lifetime.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | fn eg_2<'a>(a: &'a str, b: &'a str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ref2` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let mut ref2 = vec_ref.borrow_mut(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ref2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spaces` [INFO] [stdout] --> src/variable/scala_type.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let spaces = spaces.len(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spaces` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/trait_demo/trait_two.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | fn some_function (t: T, u: U) -> i32 where T: Display + Clone, U: Clone + Debug { [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/trait_demo/trait_two.rs:57:32 [INFO] [stdout] | [INFO] [stdout] 57 | fn some_function (t: T, u: U) -> i32 where T: Display + Clone, U: Clone + Debug { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/collection_demo/string.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let s2 = String::from("initial contents"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/collection_demo/string.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let s3 = s1 + &s2; // note s1 has been moved here and can no longer be used [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arr` [INFO] [stdout] --> src/collection_demo/vector.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let arr = [1, 2, 3]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/borrow/borrow.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let mut s = String::from("hello"); [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/lifetime/smartptr_ownership.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let mut ref2 = vec_ref.borrow_mut(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let mut ref2 = vec_ref.borrow_mut(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership/ownership.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut s = String::from("hello"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership/ownership.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut s = String::from("hello"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collection_demo/hashmap.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | let mut scores: HashMap<_, _> = teams.iter().zip(initial_scores.iter()).collect(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collection_demo/string.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut data = "initial content"; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/collection_demo/string.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | #[warn(unused_mut)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collection_demo/hashmap.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | let mut scores: HashMap<_, _> = teams.iter().zip(initial_scores.iter()).collect(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collection_demo/string.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut data = "initial content"; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/collection_demo/string.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | #[warn(unused_mut)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compute` [INFO] [stdout] --> src/borrow/borrow.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn compute(input: &u32, output: &mut u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_length` [INFO] [stdout] --> src/borrow/borrow.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn calculate_length(s: &String) -> usize { // s is a reference to a String [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `change` [INFO] [stdout] --> src/borrow/borrow.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn change(some_string: &mut String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `error_mut_refs` [INFO] [stdout] --> src/borrow/borrow.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn error_mut_refs() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `problem_mut_refs` [INFO] [stdout] --> src/borrow/borrow.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn problem_mut_refs() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `without_problem_mut_refs` [INFO] [stdout] --> src/borrow/borrow.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn without_problem_mut_refs() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `snake_case` [INFO] [stdout] --> src/function/functions.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn snake_case() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fn` [INFO] [stdout] --> src/function/functions.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn r#fn() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `f` [INFO] [stdout] --> src/function/functions.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn f() { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/function/functions.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fm` [INFO] [stdout] --> src/function/functions.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn fm(ref _s: S) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> src/function/functions.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn foo(_: i32) { // 忽略参数 [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `addsub` [INFO] [stdout] --> src/function/functions.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn addsub(x: usize, y: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `square` [INFO] [stdout] --> src/function/functions.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn square>(x: T, y: T) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `show` [INFO] [stdout] --> src/function/functions.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn show(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `show_user` [INFO] [stdout] --> src/function/functions.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn show_user() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `MathOp` [INFO] [stdout] --> src/function/higherorderfunction.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | type MathOp = fn(i32, i32) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `math` [INFO] [stdout] --> src/function/higherorderfunction.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn math(op: MathOp, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hello` [INFO] [stdout] --> src/function/higherorderfunction.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn hello() {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `one_arg` [INFO] [stdout] --> src/function/higherorderfunction.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn one_arg(x: i32) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/function/higherorderfunction.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `counter` [INFO] [stdout] --> src/function/closure.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn counter(x: i32) -> impl Fn(i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `closure` [INFO] [stdout] --> src/function/closure.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn closure() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `escape_closure` [INFO] [stdout] --> src/function/closure.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | pub fn escape_closure() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `return_closure` [INFO] [stdout] --> src/function/closure.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn return_closure() -> impl Fn(i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `return_fn_once` [INFO] [stdout] --> src/function/closure.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn return_fn_once() -> impl FnOnce(i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> src/function/higherrankedlifetime.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn foo(d: Box DoSth<&'a u32>>){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pick` [INFO] [stdout] --> src/function/higherrankedlifetime.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct Pick { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `call` [INFO] [stdout] --> src/function/higherrankedlifetime.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn call<'a>(&'a self) -> &'a i32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max` [INFO] [stdout] --> src/function/higherrankedlifetime.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn max(data: &(i32, i32)) -> &i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pick_test` [INFO] [stdout] --> src/function/higherrankedlifetime.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn pick_test() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inner_iterator` [INFO] [stdout] --> src/function/iterator.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn inner_iterator() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `out_iterator` [INFO] [stdout] --> src/function/iterator.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn out_iterator() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_2` [INFO] [stdout] --> src/lifetime/lifetime.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn eg_2<'a>(a: &'a str, b: &'a str) -> &'a str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest_str` [INFO] [stdout] --> src/lifetime/lifetime.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn longest_str<'a>(a: &'a str, b: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/lifetime/lifetime.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn longest<'a, 'b: 'a>(a: &'a str, b: &'b str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/lifetime/lifetime.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | name: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fool` [INFO] [stdout] --> src/lifetime/lifetime.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn fool<'a>(s: &'a str) -> Box + 'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `empty` [INFO] [stdout] --> src/lifetime/lifetime.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn empty() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_1` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn eg_1() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_2` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn eg_2() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_rc` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn eg_rc() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Foo` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | struct Foo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `refcell` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn refcell() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `abs_all` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn abs_all(v: &mut Cow<[i32]>) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cowref` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn cowref() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ownership` [INFO] [stdout] --> src/ownership/ownership.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn ownership() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `string_copy` [INFO] [stdout] --> src/ownership/ownership.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn string_copy() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stack_only_data_copy` [INFO] [stdout] --> src/ownership/ownership.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn stack_only_data_copy() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `takes_ownership` [INFO] [stdout] --> src/ownership/ownership.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn takes_ownership(some_string: String) { // some_string comes into scope [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `makes_copy` [INFO] [stdout] --> src/ownership/ownership.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn makes_copy(some_integer: i32) { // some_integer comes into scope [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_length` [INFO] [stdout] --> src/ownership/ownership.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn calculate_length(s: String) -> (String, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `no_dangle` [INFO] [stdout] --> src/ownership/ownership.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn no_dangle() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `guss` [INFO] [stdout] --> src/guess_number/guess.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn guss() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `scala_type` [INFO] [stdout] --> src/variable/scala_type.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn scala_type() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compound_type` [INFO] [stdout] --> src/variable/compound_type.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn compound_type() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `flow` [INFO] [stdout] --> src/variable/control_flow.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | fn flow() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `range_with_rev` [INFO] [stdout] --> src/variable/control_flow.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | fn range_with_rev() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `if_condition` [INFO] [stdout] --> src/variable/control_flow.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | fn if_condition() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `condition` [INFO] [stdout] --> src/variable/control_flow.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | fn condition() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `loop_demo` [INFO] [stdout] --> src/variable/control_flow.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn loop_demo() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `loop_with_result` [INFO] [stdout] --> src/variable/control_flow.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn loop_with_result() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `condition_loop_with_while` [INFO] [stdout] --> src/variable/control_flow.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn condition_loop_with_while() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `loop_with_for` [INFO] [stdout] --> src/variable/control_flow.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn loop_with_for() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `float` [INFO] [stdout] --> src/variable/float.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn float() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_result` [INFO] [stdout] --> src/variable/match_pattern.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn match_result() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alabama` [INFO] [stdout] --> src/variable/match_pattern.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alaska` [INFO] [stdout] --> src/variable/match_pattern.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Penny` [INFO] [stdout] --> src/variable/match_pattern.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Nickel` [INFO] [stdout] --> src/variable/match_pattern.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Dime` [INFO] [stdout] --> src/variable/match_pattern.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quarter` [INFO] [stdout] --> src/variable/match_pattern.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Quarter(UsState), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Cc` [INFO] [stdout] --> src/variable/match_pattern.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | Cc, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `value_in_cents` [INFO] [stdout] --> src/variable/match_pattern.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn value_in_cents(coin: Coin) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `error` [INFO] [stdout] --> src/error/error.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn error() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SERVER` [INFO] [stdout] --> src/mio/mio_demo.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const SERVER:Token = Token(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CLIENT` [INFO] [stdout] --> src/mio/mio_demo.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const CLIENT:Token = Token(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `change` [INFO] [stdout] --> src/borrow/borrow.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn change(some_string: &mut String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `demo` [INFO] [stdout] --> src/mio/mio_demo.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn demo() -> ioResult<()>{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V4` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | V4, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `error_mut_refs` [INFO] [stdout] --> src/borrow/borrow.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn error_mut_refs() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V6` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | V6, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `problem_mut_refs` [INFO] [stdout] --> src/borrow/borrow.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn problem_mut_refs() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | Quit, // has no data associated with it at all [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | Move { x: i32, y: i32 },// includes an anonymous struct inside it [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Write(String), // includes a single String [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeColor` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | ChangeColor(i32, i32, i32), // includes three i32 values [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `call` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `QuitMesseage` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct QuitMesseage; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MoveMesseage` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct MoveMesseage { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `WriteMesseage` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | struct WriteMesseage(String); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ChangeColorMesseage` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct ChangeColorMesseage(i32, i32, i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `User` [INFO] [stdout] --> src/struct_and_enum/struct_demo.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/struct_and_enum/struct_demo.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_user` [INFO] [stdout] --> src/struct_and_enum/struct_demo.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn build_user(email: String, username: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/struct_and_enum/struct_example.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn area(&self) -> u32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/struct_and_enum/struct_example.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `square` [INFO] [stdout] --> src/struct_and_enum/struct_example.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn square(size: u32) -> Rectangle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/struct_and_enum/struct_example.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/struct_and_enum/struct_example.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn area(rectangle: &Rectangle) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/trait_demo/trait_two.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `notify` [INFO] [stdout] --> src/trait_demo/trait_two.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn notify(item: impl Summary) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `notify_actually` [INFO] [stdout] --> src/trait_demo/trait_two.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn notify_actually(item: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `some_function` [INFO] [stdout] --> src/trait_demo/trait_two.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn some_function (t: T, u: U) -> i32 where T: Display + Clone, U: Clone + Debug { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `returns_summarized` [INFO] [stdout] --> src/trait_demo/trait_two.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn returns_summarized() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/trait_demo/trait_demo.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/trait_demo/structrefs.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest_with_an_announcement` [INFO] [stdout] --> src/trait_demo/structrefs.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn longest_with_an_announcement<'a, T>(x: &'a str, y: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/trait_demo/lifetime.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/trait_demo/lifetime.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/trait_demo/largestfunction.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `largest` [INFO] [stdout] --> src/trait_demo/largestfunction.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn largest (list: &[T]) -> T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/trait_demo/generic.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mixup` [INFO] [stdout] --> src/trait_demo/generic.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn mixup(self, other: Point) -> Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `SinglePoint` [INFO] [stdout] --> src/trait_demo/generic.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct SinglePoint { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x` [INFO] [stdout] --> src/trait_demo/generic.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `distance_from_origin` [INFO] [stdout] --> src/trait_demo/generic.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn distance_from_origin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/trait_demo/generic.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/trait_demo/conditionallyimpltrait.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pair` [INFO] [stdout] --> src/trait_demo/conditionallyimpltrait.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/trait_demo/conditionallyimpltrait.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cmp_display` [INFO] [stdout] --> src/trait_demo/conditionallyimpltrait.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/collection_demo/hashmap.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `insert_values_no_key` [INFO] [stdout] --> src/collection_demo/hashmap.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn insert_values_no_key () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `counting_occurrences_of_word` [INFO] [stdout] --> src/collection_demo/hashmap.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn counting_occurrences_of_word () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/collection_demo/string.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `str_concat` [INFO] [stdout] --> src/collection_demo/string.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn str_concat() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/collection_demo/vector.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Int` [INFO] [stdout] --> src/collection_demo/vector.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | Int(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Float` [INFO] [stdout] --> src/collection_demo/vector.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | Float(f64), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Text` [INFO] [stdout] --> src/collection_demo/vector.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | Text(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | value: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `without_problem_mut_refs` [INFO] [stdout] --> src/borrow/borrow.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn without_problem_mut_refs() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `snake_case` [INFO] [stdout] --> src/function/functions.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn snake_case() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fn` [INFO] [stdout] --> src/function/functions.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn r#fn() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `f` [INFO] [stdout] --> src/function/functions.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn f() { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/function/functions.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fm` [INFO] [stdout] --> src/function/functions.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn fm(ref _s: S) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> src/function/functions.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn foo(_: i32) { // 忽略参数 [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `addsub` [INFO] [stdout] --> src/function/functions.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn addsub(x: usize, y: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `square` [INFO] [stdout] --> src/function/functions.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn square>(x: T, y: T) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `show` [INFO] [stdout] --> src/function/functions.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn show(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `show_user` [INFO] [stdout] --> src/function/functions.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn show_user() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `MathOp` [INFO] [stdout] --> src/function/higherorderfunction.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | type MathOp = fn(i32, i32) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `math` [INFO] [stdout] --> src/function/higherorderfunction.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn math(op: MathOp, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hello` [INFO] [stdout] --> src/function/higherorderfunction.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn hello() {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `one_arg` [INFO] [stdout] --> src/function/higherorderfunction.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn one_arg(x: i32) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/function/higherorderfunction.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `counter` [INFO] [stdout] --> src/function/closure.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn counter(x: i32) -> impl Fn(i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_2` [INFO] [stdout] --> src/lifetime/lifetime.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn eg_2<'a>(a: &'a str, b: &'a str) -> &'a str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest_str` [INFO] [stdout] --> src/lifetime/lifetime.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn longest_str<'a>(a: &'a str, b: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/lifetime/lifetime.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn longest<'a, 'b: 'a>(a: &'a str, b: &'b str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/lifetime/lifetime.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | name: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fool` [INFO] [stdout] --> src/lifetime/lifetime.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn fool<'a>(s: &'a str) -> Box + 'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `empty` [INFO] [stdout] --> src/lifetime/lifetime.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn empty() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_1` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn eg_1() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_2` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn eg_2() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_rc` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn eg_rc() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Foo` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | struct Foo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `refcell` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn refcell() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `abs_all` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn abs_all(v: &mut Cow<[i32]>) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cowref` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn cowref() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ownership` [INFO] [stdout] --> src/ownership/ownership.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn ownership() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `string_copy` [INFO] [stdout] --> src/ownership/ownership.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn string_copy() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stack_only_data_copy` [INFO] [stdout] --> src/ownership/ownership.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn stack_only_data_copy() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `takes_ownership` [INFO] [stdout] --> src/ownership/ownership.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn takes_ownership(some_string: String) { // some_string comes into scope [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `makes_copy` [INFO] [stdout] --> src/ownership/ownership.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn makes_copy(some_integer: i32) { // some_integer comes into scope [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_length` [INFO] [stdout] --> src/ownership/ownership.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn calculate_length(s: String) -> (String, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `scala_type` [INFO] [stdout] --> src/variable/scala_type.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn scala_type() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compound_type` [INFO] [stdout] --> src/variable/compound_type.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn compound_type() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `flow` [INFO] [stdout] --> src/variable/control_flow.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | fn flow() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `range_with_rev` [INFO] [stdout] --> src/variable/control_flow.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | fn range_with_rev() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `if_condition` [INFO] [stdout] --> src/variable/control_flow.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | fn if_condition() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `condition` [INFO] [stdout] --> src/variable/control_flow.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | fn condition() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `loop_demo` [INFO] [stdout] --> src/variable/control_flow.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn loop_demo() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `loop_with_result` [INFO] [stdout] --> src/variable/control_flow.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn loop_with_result() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `condition_loop_with_while` [INFO] [stdout] --> src/variable/control_flow.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn condition_loop_with_while() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `loop_with_for` [INFO] [stdout] --> src/variable/control_flow.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn loop_with_for() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `float` [INFO] [stdout] --> src/variable/float.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn float() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_result` [INFO] [stdout] --> src/variable/match_pattern.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn match_result() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alabama` [INFO] [stdout] --> src/variable/match_pattern.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alaska` [INFO] [stdout] --> src/variable/match_pattern.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Penny` [INFO] [stdout] --> src/variable/match_pattern.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Nickel` [INFO] [stdout] --> src/variable/match_pattern.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Dime` [INFO] [stdout] --> src/variable/match_pattern.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quarter` [INFO] [stdout] --> src/variable/match_pattern.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Quarter(UsState), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Cc` [INFO] [stdout] --> src/variable/match_pattern.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | Cc, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `value_in_cents` [INFO] [stdout] --> src/variable/match_pattern.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn value_in_cents(coin: Coin) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `error` [INFO] [stdout] --> src/error/error.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn error() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SERVER` [INFO] [stdout] --> src/mio/mio_demo.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const SERVER:Token = Token(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CLIENT` [INFO] [stdout] --> src/mio/mio_demo.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const CLIENT:Token = Token(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `demo` [INFO] [stdout] --> src/mio/mio_demo.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn demo() -> ioResult<()>{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V4` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | V4, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V6` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | V6, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | Quit, // has no data associated with it at all [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | Move { x: i32, y: i32 },// includes an anonymous struct inside it [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Write(String), // includes a single String [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeColor` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | ChangeColor(i32, i32, i32), // includes three i32 values [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `call` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `QuitMesseage` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct QuitMesseage; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MoveMesseage` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct MoveMesseage { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `WriteMesseage` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | struct WriteMesseage(String); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ChangeColorMesseage` [INFO] [stdout] --> src/struct_and_enum/enum_demo.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct ChangeColorMesseage(i32, i32, i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `User` [INFO] [stdout] --> src/struct_and_enum/struct_demo.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/struct_and_enum/struct_demo.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_user` [INFO] [stdout] --> src/struct_and_enum/struct_demo.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn build_user(email: String, username: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/struct_and_enum/struct_example.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn area(&self) -> u32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/struct_and_enum/struct_example.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `square` [INFO] [stdout] --> src/struct_and_enum/struct_example.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn square(size: u32) -> Rectangle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/struct_and_enum/struct_example.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/struct_and_enum/struct_example.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn area(rectangle: &Rectangle) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/trait_demo/trait_two.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `notify` [INFO] [stdout] --> src/trait_demo/trait_two.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn notify(item: impl Summary) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `notify_actually` [INFO] [stdout] --> src/trait_demo/trait_two.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn notify_actually(item: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `some_function` [INFO] [stdout] --> src/trait_demo/trait_two.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn some_function (t: T, u: U) -> i32 where T: Display + Clone, U: Clone + Debug { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `returns_summarized` [INFO] [stdout] --> src/trait_demo/trait_two.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn returns_summarized() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/trait_demo/trait_demo.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/trait_demo/structrefs.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest_with_an_announcement` [INFO] [stdout] --> src/trait_demo/structrefs.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn longest_with_an_announcement<'a, T>(x: &'a str, y: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/trait_demo/lifetime.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/trait_demo/lifetime.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/trait_demo/largestfunction.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `largest` [INFO] [stdout] --> src/trait_demo/largestfunction.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn largest (list: &[T]) -> T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/trait_demo/generic.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mixup` [INFO] [stdout] --> src/trait_demo/generic.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn mixup(self, other: Point) -> Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `SinglePoint` [INFO] [stdout] --> src/trait_demo/generic.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct SinglePoint { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x` [INFO] [stdout] --> src/trait_demo/generic.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `distance_from_origin` [INFO] [stdout] --> src/trait_demo/generic.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn distance_from_origin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/trait_demo/generic.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/trait_demo/conditionallyimpltrait.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pair` [INFO] [stdout] --> src/trait_demo/conditionallyimpltrait.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/trait_demo/conditionallyimpltrait.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cmp_display` [INFO] [stdout] --> src/trait_demo/conditionallyimpltrait.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/collection_demo/hashmap.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `insert_values_no_key` [INFO] [stdout] --> src/collection_demo/hashmap.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn insert_values_no_key () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `counting_occurrences_of_word` [INFO] [stdout] --> src/collection_demo/hashmap.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn counting_occurrences_of_word () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/collection_demo/string.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `str_concat` [INFO] [stdout] --> src/collection_demo/string.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn str_concat() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/collection_demo/vector.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Int` [INFO] [stdout] --> src/collection_demo/vector.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | Int(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Float` [INFO] [stdout] --> src/collection_demo/vector.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | Float(f64), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Text` [INFO] [stdout] --> src/collection_demo/vector.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | Text(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 148 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 138 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.50s [INFO] running `Command { std: "docker" "inspect" "36d63a38580433d562d7fb8202881320e7c8f5c6d49cf1812ef132644e520a61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36d63a38580433d562d7fb8202881320e7c8f5c6d49cf1812ef132644e520a61", kill_on_drop: false }` [INFO] [stdout] 36d63a38580433d562d7fb8202881320e7c8f5c6d49cf1812ef132644e520a61