[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#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjwfy%2Frust-learn" "/workspace/builds/worker-95/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-95/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jwfy/rust-learn on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "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-95/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: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-95/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-95/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 87788c20006f338c953e6c0715fbd04142fe3d743be60700184eaef2cd2d1290 [INFO] running `Command { std: "docker" "start" "-a" "87788c20006f338c953e6c0715fbd04142fe3d743be60700184eaef2cd2d1290", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "87788c20006f338c953e6c0715fbd04142fe3d743be60700184eaef2cd2d1290", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87788c20006f338c953e6c0715fbd04142fe3d743be60700184eaef2cd2d1290", kill_on_drop: false }` [INFO] [stdout] 87788c20006f338c953e6c0715fbd04142fe3d743be60700184eaef2cd2d1290 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-95/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-95/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 376c2c51b835b2d1b235cc862724758bf49cdac48413dc4fd818181d9a076dc1 [INFO] running `Command { std: "docker" "start" "-a" "376c2c51b835b2d1b235cc862724758bf49cdac48413dc4fd818181d9a076dc1", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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] Checking rust-learn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Formatter`, `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: 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] | ^^^^^^^^^^ help: use `dyn`: `dyn PointTrait` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] [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: 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] | ^^^^^ help: use `dyn`: `dyn Write` [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] [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: 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: 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] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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: 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: 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: 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 imports: `Formatter`, `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: 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] | ^^^^^^^^^^ help: use `dyn`: `dyn PointTrait` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] [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: field is never read: `id` [INFO] [stdout] --> src/threadpool/threadpool.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | id : usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `thread` [INFO] [stdout] --> src/threadpool/threadpool.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | thread: JoinHandle<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `workers` [INFO] [stdout] --> src/threadpool/threadpool.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | workers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_1` [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 is never used: `test_2` [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 is never used: `test_3` [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 is never used: `test` [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 is never used: `dynaimic_dispatch` [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 is never used: `static_dispatch` [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 is never used: `static_dispatch_1` [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 is never used: `test_1` [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: function is never used: `test_1` [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 is never used: `test_2` [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 is never used: `test_3` [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 is never used: `test_4` [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 is never used: `test_box` [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 is never used: `point` [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: function is never used: `test_trait` [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 is never used: `test_drop` [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 is never used: `test_box` [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 is never used: `test` [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: function is never used: `test1` [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 is never used: `test` [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 is never used: `test_deref` [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: function is never used: `test_deref2` [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: function is never used: `test_default` [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: function is never used: `test` [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: associated function is never used: `into_iter` [INFO] [stdout] --> src/list/second.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn into_iter(self) -> IntoIter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/live_coding/file_io.rs:22:12 [INFO] [stdout] | [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: 53 warnings emitted [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: 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: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: 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: field is never read: `id` [INFO] [stdout] --> src/threadpool/threadpool.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | id : usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `thread` [INFO] [stdout] --> src/threadpool/threadpool.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | thread: JoinHandle<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `workers` [INFO] [stdout] --> src/threadpool/threadpool.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | workers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_1` [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 is never used: `test_2` [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 is never used: `test_3` [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 is never used: `test` [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 is never used: `dynaimic_dispatch` [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 is never used: `static_dispatch` [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 is never used: `static_dispatch_1` [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 is never used: `test_1` [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: function is never used: `test_1` [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 is never used: `test_2` [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 is never used: `test_3` [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 is never used: `test_4` [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 is never used: `test_box` [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 is never used: `point` [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: function is never used: `test_trait` [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 is never used: `test_drop` [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 is never used: `test_box` [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 is never used: `test` [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: associated function is never used: `new` [INFO] [stdout] --> src/basic/iter.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn new() -> Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `piter` [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 is never used: `test1` [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 is never used: `test` [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 is never used: `test_deref` [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: function is never used: `test_deref2` [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: function is never used: `test_default` [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: function is never used: `test` [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 is never used: `format` [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 is never constructed: `More` [INFO] [stdout] --> src/list/first.rs:39:3 [INFO] [stdout] | [INFO] [stdout] 39 | More(Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `elem` [INFO] [stdout] --> src/list/first.rs:43:3 [INFO] [stdout] | [INFO] [stdout] 43 | elem: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/list/first.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/list/first.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn push(&mut self, elem:i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/list/first.rs:72:10 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/list/second.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/list/second.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn push(&mut self, elem: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/list/second.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn peek(&self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_mut` [INFO] [stdout] --> src/list/second.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn peek_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `into_iter` [INFO] [stdout] --> src/list/second.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn into_iter(self) -> IntoIter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/live_coding/file_io.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(name: String, age: i32, genger: Genger) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load` [INFO] [stdout] --> src/live_coding/file_io.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn load(file_name: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `store` [INFO] [stdout] --> src/live_coding/file_io.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn store(&self, file_name: &str) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `strtok` [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 is never used: `new` [INFO] [stdout] --> src/live_coding/fibonacci.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(total: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Event` [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 function is never used: `new` [INFO] [stdout] --> src/live_coding/encoder.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(id: Id, data: Data) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `encode` [INFO] [stdout] --> src/live_coding/encoder.rs:20:12 [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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 30.76s [INFO] running `Command { std: "docker" "inspect" "376c2c51b835b2d1b235cc862724758bf49cdac48413dc4fd818181d9a076dc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "376c2c51b835b2d1b235cc862724758bf49cdac48413dc4fd818181d9a076dc1", kill_on_drop: false }` [INFO] [stdout] 376c2c51b835b2d1b235cc862724758bf49cdac48413dc4fd818181d9a076dc1