[INFO] cloning repository https://github.com/Buzov/StudyOfRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Buzov/StudyOfRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBuzov%2FStudyOfRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBuzov%2FStudyOfRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b55ba1e41448c3170bc5e8968f1841e85d8daec8 [INFO] checking Buzov/StudyOfRust against master#0d37dca25a51fb900a402c94c8818ad1c2789e30 for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBuzov%2FStudyOfRust" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Buzov/StudyOfRust on toolchain 0d37dca25a51fb900a402c94c8818ad1c2789e30 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Buzov/StudyOfRust [INFO] finished tweaking git repo https://github.com/Buzov/StudyOfRust [INFO] tweaked toml for git repo https://github.com/Buzov/StudyOfRust written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/Buzov/StudyOfRust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf079665c92cef1b8eecf646cbd732efda43123c657f0e359701369eaf2a21ce [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" "cf079665c92cef1b8eecf646cbd732efda43123c657f0e359701369eaf2a21ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf079665c92cef1b8eecf646cbd732efda43123c657f0e359701369eaf2a21ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf079665c92cef1b8eecf646cbd732efda43123c657f0e359701369eaf2a21ce", kill_on_drop: false }` [INFO] [stdout] cf079665c92cef1b8eecf646cbd732efda43123c657f0e359701369eaf2a21ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d01f351404d70e8587a0e876d212cc2133d3f53ef3ac9d58014fbed3b8aef8c5 [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" "d01f351404d70e8587a0e876d212cc2133d3f53ef3ac9d58014fbed3b8aef8c5", kill_on_drop: false }` [INFO] [stderr] Checking StudyOfRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:267:19 [INFO] [stdout] | [INFO] [stdout] 267 | fn tuple_fn(fun: &Fn() -> (f64,f64)) -> (f64,f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> (f64,f64)` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:267:19 [INFO] [stdout] | [INFO] [stdout] 267 | fn tuple_fn(fun: &Fn() -> (f64,f64)) -> (f64,f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> (f64,f64)` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/structure.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 187 | let x = match void { [INFO] [stdout] | ______________- [INFO] [stdout] 188 | | }; [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 189 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/structure.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 187 | let x = match void { [INFO] [stdout] | ______________- [INFO] [stdout] 188 | | }; [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 189 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 226 | let x: i32 = exclamation_mark_1(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 227 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types.rs:233:5 [INFO] [stdout] | [INFO] [stdout] 232 | let x = exclamation_mark_2(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 233 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/structure.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let t = Zero; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d1` [INFO] [stdout] --> src/structure.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let d1: Distance = Distance { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d2` [INFO] [stdout] --> src/structure.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let d2: Distance = Distance { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/structure.rs:128:14 [INFO] [stdout] | [INFO] [stdout] 128 | Some(value) => println!("Some"), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/structure.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let x = match void { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bottom_left` [INFO] [stdout] --> src/structure.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | Shape::Square { bottom_left, top_right } => { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `bottom_left: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top_right` [INFO] [stdout] --> src/structure.rs:93:42 [INFO] [stdout] | [INFO] [stdout] 93 | Shape::Square { bottom_left, top_right } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `top_right: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/types.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut buf = [0u8; 1024]; // буфер из 1024 элементов, заполненный нулями [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut x: i32 = 92; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let x: Box = Box::new(92); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/types.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn bar(b: &i32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let x: () = while false {}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x2` [INFO] [stdout] --> src/types.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let x2: () = if true { 92; }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bounded` [INFO] [stdout] --> src/types.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let bounded: std::ops::Range = 0..10; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bounded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/types.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let from = 0..; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/types.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let to = ..10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `full` [INFO] [stdout] --> src/types.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let full = ..; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_full` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inclusive` [INFO] [stdout] --> src/types.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let inclusive = 0..=9; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inclusive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/types.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let s = if x > 0 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/types.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let i: i32 = { 1 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/types.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | let i: () = { 1; }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | let x: i32 = exclamation_mark_1(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:232:9 [INFO] [stdout] | [INFO] [stdout] 232 | let x = exclamation_mark_2(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `one` [INFO] [stdout] --> src/types.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | let one: (f32,) = (0.0,); // кортеж из одного элемента, нужна запятая [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut buf = [0u8; 1024]; // буфер из 1024 элементов, заполненный нулями [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/types.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut x: i32 = 92; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 226 | let x: i32 = exclamation_mark_1(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 227 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types.rs:233:5 [INFO] [stdout] | [INFO] [stdout] 232 | let x = exclamation_mark_2(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 233 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dist` [INFO] [stdout] --> src/structure.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn dist(self, other: StructTuple) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Kilometers` [INFO] [stdout] --> src/structure.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Kilometers; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Miles` [INFO] [stdout] --> src/structure.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct Miles; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Distance` [INFO] [stdout] --> src/structure.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct Distance { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_types_struct` [INFO] [stdout] --> src/structure.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn test_types_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Shape` [INFO] [stdout] --> src/structure.rs:73:6 [INFO] [stdout] | [INFO] [stdout] 73 | enum Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `circle` [INFO] [stdout] --> src/structure.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | fn circle(center: Point, radius: f64) -> Shape { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/structure.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Expr` [INFO] [stdout] --> src/structure.rs:100:6 [INFO] [stdout] | [INFO] [stdout] 100 | enum Expr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `binary_search` [INFO] [stdout] --> src/structure.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn binary_search(xs: &[i32], x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo2` [INFO] [stdout] --> src/structure.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn foo2(xs: &[i32]) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Expr1` [INFO] [stdout] --> src/structure.rs:148:6 [INFO] [stdout] | [INFO] [stdout] 148 | enum Expr1 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Expr2` [INFO] [stdout] --> src/structure.rs:161:6 [INFO] [stdout] | [INFO] [stdout] 161 | enum Expr2 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BinOp` [INFO] [stdout] --> src/structure.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | struct BinOp { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `If` [INFO] [stdout] --> src/structure.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | struct If { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Op` [INFO] [stdout] --> src/structure.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | struct Op { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Void` [INFO] [stdout] --> src/structure.rs:184:6 [INFO] [stdout] | [INFO] [stdout] 184 | enum Void {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_enum_void` [INFO] [stdout] --> src/structure.rs:186:4 [INFO] [stdout] | [INFO] [stdout] 186 | fn test_enum_void(void: Void) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `array` [INFO] [stdout] --> src/types.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn array() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_test` [INFO] [stdout] --> src/types.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | pub(super)fn box_test() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> src/types.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn foo() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bar` [INFO] [stdout] --> src/types.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn bar(b: &i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_vec` [INFO] [stdout] --> src/types.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | pub(super)fn test_vec() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_ranges` [INFO] [stdout] --> src/types.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 98 | pub(super)fn test_ranges() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_loop` [INFO] [stdout] --> src/types.rs:111:14 [INFO] [stdout] | [INFO] [stdout] 111 | pub(super)fn test_loop() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_loop_2` [INFO] [stdout] --> src/types.rs:132:14 [INFO] [stdout] | [INFO] [stdout] 132 | pub(super)fn test_loop_2() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_loop_3` [INFO] [stdout] --> src/types.rs:144:14 [INFO] [stdout] | [INFO] [stdout] 144 | pub(super)fn test_loop_3() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_expression` [INFO] [stdout] --> src/types.rs:155:14 [INFO] [stdout] | [INFO] [stdout] 155 | pub(super)fn test_expression() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_fn_like_parameter` [INFO] [stdout] --> src/types.rs:179:14 [INFO] [stdout] | [INFO] [stdout] 179 | pub(super)fn test_fn_like_parameter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fn_like_parameter` [INFO] [stdout] --> src/types.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn fn_like_parameter(func: fn(i32) -> i32, i: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `block` [INFO] [stdout] --> src/types.rs:220:4 [INFO] [stdout] | [INFO] [stdout] 220 | fn block() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exclamation_mark_0` [INFO] [stdout] --> src/types.rs:225:4 [INFO] [stdout] | [INFO] [stdout] 225 | fn exclamation_mark_0() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exclamation_mark_1` [INFO] [stdout] --> src/types.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn exclamation_mark_1() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exclamation_mark_2` [INFO] [stdout] --> src/types.rs:236:4 [INFO] [stdout] | [INFO] [stdout] 236 | fn exclamation_mark_2() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tuple_fn` [INFO] [stdout] --> src/types.rs:267:4 [INFO] [stdout] | [INFO] [stdout] 267 | fn tuple_fn(fun: &Fn() -> (f64,f64)) -> (f64,f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_slice` [INFO] [stdout] --> src/types.rs:284:4 [INFO] [stdout] | [INFO] [stdout] 284 | fn print_slice(xs: &[i32]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `StudyOfRust` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `study_of_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/structure.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let t = Zero; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d1` [INFO] [stdout] --> src/structure.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let d1: Distance = Distance { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d2` [INFO] [stdout] --> src/structure.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let d2: Distance = Distance { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/structure.rs:128:14 [INFO] [stdout] | [INFO] [stdout] 128 | Some(value) => println!("Some"), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/structure.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let x = match void { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bottom_left` [INFO] [stdout] --> src/structure.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | Shape::Square { bottom_left, top_right } => { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `bottom_left: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top_right` [INFO] [stdout] --> src/structure.rs:93:42 [INFO] [stdout] | [INFO] [stdout] 93 | Shape::Square { bottom_left, top_right } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `top_right: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/types.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut buf = [0u8; 1024]; // буфер из 1024 элементов, заполненный нулями [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut x: i32 = 92; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let x: Box = Box::new(92); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/types.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn bar(b: &i32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let x: () = while false {}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x2` [INFO] [stdout] --> src/types.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let x2: () = if true { 92; }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bounded` [INFO] [stdout] --> src/types.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let bounded: std::ops::Range = 0..10; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bounded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/types.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let from = 0..; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/types.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let to = ..10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `full` [INFO] [stdout] --> src/types.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let full = ..; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_full` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inclusive` [INFO] [stdout] --> src/types.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let inclusive = 0..=9; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inclusive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/types.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let s = if x > 0 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/types.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let i: i32 = { 1 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/types.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | let i: () = { 1; }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | let x: i32 = exclamation_mark_1(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:232:9 [INFO] [stdout] | [INFO] [stdout] 232 | let x = exclamation_mark_2(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `one` [INFO] [stdout] --> src/types.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | let one: (f32,) = (0.0,); // кортеж из одного элемента, нужна запятая [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 67 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut buf = [0u8; 1024]; // буфер из 1024 элементов, заполненный нулями [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/types.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut x: i32 = 92; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dist` [INFO] [stdout] --> src/structure.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn dist(self, other: StructTuple) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Kilometers` [INFO] [stdout] --> src/structure.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Kilometers; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Miles` [INFO] [stdout] --> src/structure.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct Miles; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Distance` [INFO] [stdout] --> src/structure.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct Distance { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_types_struct` [INFO] [stdout] --> src/structure.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn test_types_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Shape` [INFO] [stdout] --> src/structure.rs:73:6 [INFO] [stdout] | [INFO] [stdout] 73 | enum Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `circle` [INFO] [stdout] --> src/structure.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | fn circle(center: Point, radius: f64) -> Shape { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/structure.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Expr` [INFO] [stdout] --> src/structure.rs:100:6 [INFO] [stdout] | [INFO] [stdout] 100 | enum Expr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `binary_search` [INFO] [stdout] --> src/structure.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn binary_search(xs: &[i32], x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo2` [INFO] [stdout] --> src/structure.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn foo2(xs: &[i32]) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Expr1` [INFO] [stdout] --> src/structure.rs:148:6 [INFO] [stdout] | [INFO] [stdout] 148 | enum Expr1 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Expr2` [INFO] [stdout] --> src/structure.rs:161:6 [INFO] [stdout] | [INFO] [stdout] 161 | enum Expr2 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BinOp` [INFO] [stdout] --> src/structure.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | struct BinOp { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `If` [INFO] [stdout] --> src/structure.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | struct If { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Op` [INFO] [stdout] --> src/structure.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | struct Op { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Void` [INFO] [stdout] --> src/structure.rs:184:6 [INFO] [stdout] | [INFO] [stdout] 184 | enum Void {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_enum_void` [INFO] [stdout] --> src/structure.rs:186:4 [INFO] [stdout] | [INFO] [stdout] 186 | fn test_enum_void(void: Void) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `array` [INFO] [stdout] --> src/types.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn array() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_test` [INFO] [stdout] --> src/types.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | pub(super)fn box_test() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> src/types.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn foo() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bar` [INFO] [stdout] --> src/types.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn bar(b: &i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_vec` [INFO] [stdout] --> src/types.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | pub(super)fn test_vec() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_ranges` [INFO] [stdout] --> src/types.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 98 | pub(super)fn test_ranges() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_loop` [INFO] [stdout] --> src/types.rs:111:14 [INFO] [stdout] | [INFO] [stdout] 111 | pub(super)fn test_loop() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_loop_2` [INFO] [stdout] --> src/types.rs:132:14 [INFO] [stdout] | [INFO] [stdout] 132 | pub(super)fn test_loop_2() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_loop_3` [INFO] [stdout] --> src/types.rs:144:14 [INFO] [stdout] | [INFO] [stdout] 144 | pub(super)fn test_loop_3() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_expression` [INFO] [stdout] --> src/types.rs:155:14 [INFO] [stdout] | [INFO] [stdout] 155 | pub(super)fn test_expression() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_fn_like_parameter` [INFO] [stdout] --> src/types.rs:179:14 [INFO] [stdout] | [INFO] [stdout] 179 | pub(super)fn test_fn_like_parameter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fn_like_parameter` [INFO] [stdout] --> src/types.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn fn_like_parameter(func: fn(i32) -> i32, i: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `block` [INFO] [stdout] --> src/types.rs:220:4 [INFO] [stdout] | [INFO] [stdout] 220 | fn block() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exclamation_mark_0` [INFO] [stdout] --> src/types.rs:225:4 [INFO] [stdout] | [INFO] [stdout] 225 | fn exclamation_mark_0() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exclamation_mark_1` [INFO] [stdout] --> src/types.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn exclamation_mark_1() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exclamation_mark_2` [INFO] [stdout] --> src/types.rs:236:4 [INFO] [stdout] | [INFO] [stdout] 236 | fn exclamation_mark_2() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tuple_fn` [INFO] [stdout] --> src/types.rs:267:4 [INFO] [stdout] | [INFO] [stdout] 267 | fn tuple_fn(fun: &Fn() -> (f64,f64)) -> (f64,f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_slice` [INFO] [stdout] --> src/types.rs:284:4 [INFO] [stdout] | [INFO] [stdout] 284 | fn print_slice(xs: &[i32]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `StudyOfRust` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `study_of_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 67 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.93s [INFO] running `Command { std: "docker" "inspect" "d01f351404d70e8587a0e876d212cc2133d3f53ef3ac9d58014fbed3b8aef8c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d01f351404d70e8587a0e876d212cc2133d3f53ef3ac9d58014fbed3b8aef8c5", kill_on_drop: false }` [INFO] [stdout] d01f351404d70e8587a0e876d212cc2133d3f53ef3ac9d58014fbed3b8aef8c5