[INFO] cloning repository https://github.com/jwfy/rust-learn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jwfy/rust-learn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjwfy%2Frust-learn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjwfy%2Frust-learn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fea3642a5516386a605fc34601a8a06e59deba7b [INFO] checking jwfy/rust-learn against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjwfy%2Frust-learn" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jwfy/rust-learn on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jwfy/rust-learn [INFO] finished tweaking git repo https://github.com/jwfy/rust-learn [INFO] tweaked toml for git repo https://github.com/jwfy/rust-learn written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jwfy/rust-learn 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ced2821ba2a29487c604c0fa783716a868a900f4d02cfe8354db451bbc3565d2 [INFO] running `Command { std: "docker" "start" "-a" "ced2821ba2a29487c604c0fa783716a868a900f4d02cfe8354db451bbc3565d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ced2821ba2a29487c604c0fa783716a868a900f4d02cfe8354db451bbc3565d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ced2821ba2a29487c604c0fa783716a868a900f4d02cfe8354db451bbc3565d2", kill_on_drop: false }` [INFO] [stdout] ced2821ba2a29487c604c0fa783716a868a900f4d02cfe8354db451bbc3565d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 11e9090475b070113c7d163325c3db546307c44778de3596e65f40863aeef4c6 [INFO] running `Command { std: "docker" "start" "-a" "11e9090475b070113c7d163325c3db546307c44778de3596e65f40863aeef4c6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling serde_derive v1.0.127 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking rust-learn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Formatter` and `Pointer` [INFO] [stdout] --> src/basic/owner_ship.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | use std::fmt::{Formatter, Pointer}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/basic/type_system.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/basic/threads.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::spawn` [INFO] [stdout] --> src/basic/threads.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use std::thread::spawn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Formatter` and `Pointer` [INFO] [stdout] --> src/basic/owner_ship.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | use std::fmt::{Formatter, Pointer}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/basic/owner_ship.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | mod copy_test { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/basic/type_system.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/basic/type_system.rs:97:1 [INFO] [stdout] | [INFO] [stdout] 97 | mod box_test { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/basic/threads.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::spawn` [INFO] [stdout] --> src/basic/threads.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use std::thread::spawn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/basic/type_system.rs:18:40 [INFO] [stdout] | [INFO] [stdout] 18 | fn dynaimic_dispatch(point_trait: &PointTrait) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 | fn dynaimic_dispatch(point_trait: &dyn PointTrait) -> i32 { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/basic/type_system.rs:18:40 [INFO] [stdout] | [INFO] [stdout] 18 | fn dynaimic_dispatch(point_trait: &PointTrait) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 | fn dynaimic_dispatch(point_trait: &dyn PointTrait) -> i32 { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/basic/trait0.rs:128:26 [INFO] [stdout] | [INFO] [stdout] 128 | let write1: &mut Write = &mut buf; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 128 | let write1: &mut dyn Write = &mut buf; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b2` [INFO] [stdout] --> src/basic/owner_ship.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let b2 = a2; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2` [INFO] [stdout] --> src/basic/owner_ship.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let p2 = p1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2` [INFO] [stdout] --> src/basic/type_system.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let p2 = p1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1` [INFO] [stdout] --> src/basic/type_system.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let p1 = Point { x: 11, y: 22 }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2` [INFO] [stdout] --> src/basic/type_system.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | let p2 = Point { x: 44, y: 33 }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/basic/type_system.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let mut p1 = Point { x: 11, y: 22 }; [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: `p1` [INFO] [stdout] --> src/basic/type_system.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let p1 = Point { x: 1, y: 2 }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1` [INFO] [stdout] --> src/basic/type_system.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let p1 = Point { x: 3, y: 4 }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/basic/type_system.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | let mut second = Box::new(Node { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b2` [INFO] [stdout] --> src/basic/owner_ship.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let b2 = a2; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2` [INFO] [stdout] --> src/basic/owner_ship.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let p2 = p1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2` [INFO] [stdout] --> src/basic/type_system.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let p2 = p1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1` [INFO] [stdout] --> src/basic/type_system.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let p1 = Point { x: 11, y: 22 }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2` [INFO] [stdout] --> src/basic/type_system.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | let p2 = Point { x: 44, y: 33 }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/basic/type_system.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let mut p1 = Point { x: 11, y: 22 }; [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: `p1` [INFO] [stdout] --> src/basic/type_system.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let p1 = Point { x: 1, y: 2 }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1` [INFO] [stdout] --> src/basic/type_system.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let p1 = Point { x: 3, y: 4 }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/basic/type_system.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | let mut second = Box::new(Node { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ss1` is never read [INFO] [stdout] --> src/basic/type_system.rs:208:17 [INFO] [stdout] | [INFO] [stdout] 208 | let mut ss1 = ss; [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: `iter` [INFO] [stdout] --> src/basic/iter.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let iter = v1.iter(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iter` [INFO] [stdout] --> src/basic/iter.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let iter = &v1.iter(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/basic/threads.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let s1 = "hello world"; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `thread` are never read [INFO] [stdout] --> src/threadpool/threadpool.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Worker { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | id : usize, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | thread: JoinHandle<()> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `workers` is never read [INFO] [stdout] --> src/threadpool/threadpool.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct ThreadPool { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 29 | workers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/basic/owner_ship.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_1` is never used [INFO] [stdout] --> src/basic/owner_ship.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn test_1() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_2` is never used [INFO] [stdout] --> src/basic/owner_ship.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn test_2() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `write1` [INFO] [stdout] --> src/basic/trait0.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let write1: &mut Write = &mut buf; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_write1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_3` is never used [INFO] [stdout] --> src/basic/owner_ship.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn test_3() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_trait` is never used [INFO] [stdout] --> src/basic/type_system.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn test_trait() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_drop` is never used [INFO] [stdout] --> src/basic/type_system.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn test_drop() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_box` is never used [INFO] [stdout] --> src/basic/type_system.rs:185:8 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn test_box() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/basic/type_system.rs:189:8 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/basic/type_system.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PointTrait` is never used [INFO] [stdout] --> src/basic/type_system.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | trait PointTrait { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dynaimic_dispatch` is never used [INFO] [stdout] --> src/basic/type_system.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn dynaimic_dispatch(point_trait: &PointTrait) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_dispatch` is never used [INFO] [stdout] --> src/basic/type_system.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn static_dispatch(t: &T) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_dispatch_1` is never used [INFO] [stdout] --> src/basic/type_system.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | fn static_dispatch_1(t: T) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_1` is never used [INFO] [stdout] --> src/basic/type_system.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn test_1() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/basic/type_system.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 46 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 47 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_1` is never used [INFO] [stdout] --> src/basic/type_system.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn test_1() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_2` is never used [INFO] [stdout] --> src/basic/type_system.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn test_2() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_3` is never used [INFO] [stdout] --> src/basic/type_system.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn test_3() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_4` is never used [INFO] [stdout] --> src/basic/type_system.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn test_4() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_box` is never used [INFO] [stdout] --> src/basic/type_system.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | fn test_box() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `point` is never used [INFO] [stdout] --> src/basic/type_system.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn point() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/basic/type_system.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 148 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 149 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/basic/iter.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/basic/iter.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Counter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 7 | fn new() -> Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `piter` is never used [INFO] [stdout] --> src/basic/iter.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn piter(t : T) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/basic/threads.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test1` is never used [INFO] [stdout] --> src/basic/threads.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn test1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/basic/trait0.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_deref` is never used [INFO] [stdout] --> src/basic/trait0.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn test_deref() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/basic/trait0.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 9 | impl Point { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_deref2` is never used [INFO] [stdout] --> src/basic/trait0.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn test_deref2() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/basic/trait0.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 37 | impl P2 { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 38 | pub fn new(t: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_default` is never used [INFO] [stdout] --> src/basic/trait0.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn test_default() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/basic/trait0.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 58 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 59 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 60 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `format` is never used [INFO] [stdout] --> src/basic/trait0.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub trait Formatter { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 83 | fn format(&self, input: &String) -> bool; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format` is never used [INFO] [stdout] --> src/basic/trait0.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn format(input: &String, formatter: Box) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `More` is never constructed [INFO] [stdout] --> src/list/first.rs:39:3 [INFO] [stdout] | [INFO] [stdout] 37 | enum Link { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 38 | Empty, [INFO] [stdout] 39 | More(Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `elem` is never read [INFO] [stdout] --> src/list/first.rs:43:3 [INFO] [stdout] | [INFO] [stdout] 42 | struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 43 | elem: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, and `pop` are never used [INFO] [stdout] --> src/list/first.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 47 | impl List { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 48 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn push(&mut self, elem:i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `peek`, `peek_mut`, and `into_iter` are never used [INFO] [stdout] --> src/list/second.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl List { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 29 | // 这需要从impl List 变成当前的模样,都需要添加 [INFO] [stdout] 30 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn push(&mut self, elem: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn peek(&self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn peek_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn into_iter(self) -> IntoIter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `load`, and `store` are never used [INFO] [stdout] --> src/live_coding/file_io.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl User { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 22 | pub fn new(name: String, age: i32, genger: Genger) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn load(file_name: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn store(&self, file_name: &str) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `strtok` is never used [INFO] [stdout] --> src/live_coding/strtok.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn strtok<'a>(s: &'a mut &str, p: char) -> &'a str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/live_coding/fibonacci.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Fibonacci { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 9 | pub fn new(total: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encode` is never used [INFO] [stdout] --> src/live_coding/encoder.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Encoder { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 2 | type Target; [INFO] [stdout] 3 | fn encode(&self) -> Option>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Event` is never constructed [INFO] [stdout] --> src/live_coding/encoder.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Event { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `encode` are never used [INFO] [stdout] --> src/live_coding/encoder.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 11 | / impl Event [INFO] [stdout] 12 | | where [INFO] [stdout] 13 | | Id: Encoder, [INFO] [stdout] 14 | | Data: Encoder, [INFO] [stdout] | |_______________________________- associated items in this implementation [INFO] [stdout] 15 | { [INFO] [stdout] 16 | pub fn new(id: Id, data: Data) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn encode(&self) -> Option> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: path statement drops value [INFO] [stdout] --> src/basic/type_system.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | p1; [INFO] [stdout] | ^^^ help: use `drop` to clarify the intent: `drop(p1);` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/basic/type_system.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | &pp; [INFO] [stdout] | ^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 160 | let _ = &pp; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Foo` should have an upper case name [INFO] [stdout] --> src/basic/threads.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | static Foo : RefCell = RefCell::new(1) [INFO] [stdout] | ^^^ help: convert the identifier to upper case (notice the capitalization): `FOO` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `dynTrait` should have a snake case name [INFO] [stdout] --> src/basic/trait0.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | mod dynTrait { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `dyn_trait` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 66 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `thread` are never read [INFO] [stdout] --> src/threadpool/threadpool.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Worker { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | id : usize, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | thread: JoinHandle<()> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `workers` is never read [INFO] [stdout] --> src/threadpool/threadpool.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct ThreadPool { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 29 | workers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/basic/owner_ship.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_1` is never used [INFO] [stdout] --> src/basic/owner_ship.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn test_1() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_2` is never used [INFO] [stdout] --> src/basic/owner_ship.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn test_2() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_3` is never used [INFO] [stdout] --> src/basic/owner_ship.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn test_3() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_trait` is never used [INFO] [stdout] --> src/basic/type_system.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn test_trait() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_drop` is never used [INFO] [stdout] --> src/basic/type_system.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn test_drop() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_box` is never used [INFO] [stdout] --> src/basic/type_system.rs:185:8 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn test_box() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/basic/type_system.rs:189:8 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/basic/type_system.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PointTrait` is never used [INFO] [stdout] --> src/basic/type_system.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | trait PointTrait { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dynaimic_dispatch` is never used [INFO] [stdout] --> src/basic/type_system.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn dynaimic_dispatch(point_trait: &PointTrait) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_dispatch` is never used [INFO] [stdout] --> src/basic/type_system.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn static_dispatch(t: &T) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_dispatch_1` is never used [INFO] [stdout] --> src/basic/type_system.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | fn static_dispatch_1(t: T) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_1` is never used [INFO] [stdout] --> src/basic/type_system.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn test_1() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/basic/type_system.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 46 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 47 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_1` is never used [INFO] [stdout] --> src/basic/type_system.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn test_1() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_2` is never used [INFO] [stdout] --> src/basic/type_system.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn test_2() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_3` is never used [INFO] [stdout] --> src/basic/type_system.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn test_3() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_4` is never used [INFO] [stdout] --> src/basic/type_system.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn test_4() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_box` is never used [INFO] [stdout] --> src/basic/type_system.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | fn test_box() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `point` is never used [INFO] [stdout] --> src/basic/type_system.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn point() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/basic/type_system.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 148 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 149 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/basic/threads.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test1` is never used [INFO] [stdout] --> src/basic/threads.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn test1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/basic/trait0.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_deref` is never used [INFO] [stdout] --> src/basic/trait0.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn test_deref() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/basic/trait0.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 9 | impl Point { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_deref2` is never used [INFO] [stdout] --> src/basic/trait0.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn test_deref2() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/basic/trait0.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 37 | impl P2 { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 38 | pub fn new(t: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_default` is never used [INFO] [stdout] --> src/basic/trait0.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn test_default() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/basic/trait0.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 58 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 59 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 60 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_iter` is never used [INFO] [stdout] --> src/list/second.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl List { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn into_iter(self) -> IntoIter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/live_coding/file_io.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl User { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 22 | pub fn new(name: String, age: i32, genger: Genger) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: path statement drops value [INFO] [stdout] --> src/basic/type_system.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | p1; [INFO] [stdout] | ^^^ help: use `drop` to clarify the intent: `drop(p1);` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/basic/type_system.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | &pp; [INFO] [stdout] | ^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 160 | let _ = &pp; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Foo` should have an upper case name [INFO] [stdout] --> src/basic/threads.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | static Foo : RefCell = RefCell::new(1) [INFO] [stdout] | ^^^ help: convert the identifier to upper case (notice the capitalization): `FOO` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `dynTrait` should have a snake case name [INFO] [stdout] --> src/basic/trait0.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | mod dynTrait { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `dyn_trait` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::slice::Iter` that must be used [INFO] [stdout] --> src/list/second.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | q.iter(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 127 | let _ = q.iter(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 60 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.87s [INFO] running `Command { std: "docker" "inspect" "11e9090475b070113c7d163325c3db546307c44778de3596e65f40863aeef4c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11e9090475b070113c7d163325c3db546307c44778de3596e65f40863aeef4c6", kill_on_drop: false }` [INFO] [stdout] 11e9090475b070113c7d163325c3db546307c44778de3596e65f40863aeef4c6