[INFO] cloning repository https://github.com/xklf2014/rust_study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xklf2014/rust_study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxklf2014%2Frust_study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxklf2014%2Frust_study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 70f72b16840f16033929201a926e7cf8eab858c3 [INFO] checking xklf2014/rust_study against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxklf2014%2Frust_study" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xklf2014/rust_study on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/xklf2014/rust_study [INFO] finished tweaking git repo https://github.com/xklf2014/rust_study [INFO] tweaked toml for git repo https://github.com/xklf2014/rust_study written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/xklf2014/rust_study already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded smallvec v0.4.5 [INFO] [stderr] Downloaded ferris-says v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 06a1ea9bcf798a69c95fa6fd86195cd1622422573d8b00fa50485528e62b7dca [INFO] running `Command { std: "docker" "start" "-a" "06a1ea9bcf798a69c95fa6fd86195cd1622422573d8b00fa50485528e62b7dca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06a1ea9bcf798a69c95fa6fd86195cd1622422573d8b00fa50485528e62b7dca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06a1ea9bcf798a69c95fa6fd86195cd1622422573d8b00fa50485528e62b7dca", kill_on_drop: false }` [INFO] [stdout] 06a1ea9bcf798a69c95fa6fd86195cd1622422573d8b00fa50485528e62b7dca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2fd202572d5d6810f1113138aa570c7a4cb53c44813b90a782af14ccebb4248d [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" "2fd202572d5d6810f1113138aa570c7a4cb53c44813b90a782af14ccebb4248d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking rustc-demangle v0.1.16 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking smallvec v0.4.5 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling miniz_oxide v0.4.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking backtrace v0.3.50 [INFO] [stderr] Checking error-chain v0.10.0 [INFO] [stderr] Checking ferris-says v0.1.2 [INFO] [stderr] Checking MyFirstRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/basic_test.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / /** [INFO] [stdout] 58 | | 十进制(Decimal) 98_222 [INFO] [stdout] 59 | | 十六进制(Hex) 0xff [INFO] [stdout] 60 | | 八进制(Octal) 0o77 [INFO] [stdout] 61 | | 二进制(Binary) 0b1111_0000 [INFO] [stdout] 62 | | 字节(Byte) (u8 only) b'A' [INFO] [stdout] 63 | | */ [INFO] [stdout] | |______^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ferris_says::say` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ferris_says::say; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter`, `stdout` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{stdout, BufWriter}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Formatter` [INFO] [stdout] --> src/conversion.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fmt::Formatter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/flow_of_control.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/flow_of_control.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | / /** iter [INFO] [stdout] 114 | | This borrows each element of the collection through each iteration. [INFO] [stdout] 115 | | Thus leaving the collection untouched and available for reuse after the loop. [INFO] [stdout] 116 | | */ [INFO] [stdout] | |______^ [INFO] [stdout] 117 | / for name in names.iter() {//此处为元素借用,循环体用完会归还,可以继续使用 [INFO] [stdout] 118 | | match name { [INFO] [stdout] 119 | | &"frank" => println!("There is a rustacean among us!"), [INFO] [stdout] 120 | | _ => println!("hello {}", name), [INFO] [stdout] 121 | | } [INFO] [stdout] 122 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/flow_of_control.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | / /** into_iter [INFO] [stdout] 125 | | This consumes the collection so that on each iteration the exact data is provided. [INFO] [stdout] 126 | | Once the collection has been consumed it is no longer available for reuse as it has been 'moved' within the loop. [INFO] [stdout] 127 | | */ [INFO] [stdout] | |______^ [INFO] [stdout] 128 | / for name in names.into_iter() { [INFO] [stdout] 129 | | match name { [INFO] [stdout] 130 | | "frank" => println!("There is a rustacean among us!"), [INFO] [stdout] 131 | | _ => println!("hello {}", name), [INFO] [stdout] 132 | | } [INFO] [stdout] 133 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/flow_of_control.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | / /** iter_mut [INFO] [stdout] 139 | | This mutably borrows each element of the collection, [INFO] [stdout] 140 | | allowing for the collection to be modified in place [INFO] [stdout] 141 | | */ [INFO] [stdout] | |______^ [INFO] [stdout] 142 | / for word in words.iter_mut() { [INFO] [stdout] 143 | | *word = match word { [INFO] [stdout] 144 | | &mut "fine" => "Fine!Thank you,and you", [INFO] [stdout] 145 | | _ => "Hello world", [INFO] [stdout] 146 | | } [INFO] [stdout] 147 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/basic_test.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / /** [INFO] [stdout] 58 | | 十进制(Decimal) 98_222 [INFO] [stdout] 59 | | 十六进制(Hex) 0xff [INFO] [stdout] 60 | | 八进制(Octal) 0o77 [INFO] [stdout] 61 | | 二进制(Binary) 0b1111_0000 [INFO] [stdout] 62 | | 字节(Byte) (u8 only) b'A' [INFO] [stdout] 63 | | */ [INFO] [stdout] | |______^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ferris_says::say` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ferris_says::say; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter`, `stdout` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{stdout, BufWriter}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Formatter` [INFO] [stdout] --> src/conversion.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fmt::Formatter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/flow_of_control.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/flow_of_control.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | / /** iter [INFO] [stdout] 114 | | This borrows each element of the collection through each iteration. [INFO] [stdout] 115 | | Thus leaving the collection untouched and available for reuse after the loop. [INFO] [stdout] 116 | | */ [INFO] [stdout] | |______^ [INFO] [stdout] 117 | / for name in names.iter() {//此处为元素借用,循环体用完会归还,可以继续使用 [INFO] [stdout] 118 | | match name { [INFO] [stdout] 119 | | &"frank" => println!("There is a rustacean among us!"), [INFO] [stdout] 120 | | _ => println!("hello {}", name), [INFO] [stdout] 121 | | } [INFO] [stdout] 122 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/flow_of_control.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | / /** into_iter [INFO] [stdout] 125 | | This consumes the collection so that on each iteration the exact data is provided. [INFO] [stdout] 126 | | Once the collection has been consumed it is no longer available for reuse as it has been 'moved' within the loop. [INFO] [stdout] 127 | | */ [INFO] [stdout] | |______^ [INFO] [stdout] 128 | / for name in names.into_iter() { [INFO] [stdout] 129 | | match name { [INFO] [stdout] 130 | | "frank" => println!("There is a rustacean among us!"), [INFO] [stdout] 131 | | _ => println!("hello {}", name), [INFO] [stdout] 132 | | } [INFO] [stdout] 133 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/flow_of_control.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | / /** iter_mut [INFO] [stdout] 139 | | This mutably borrows each element of the collection, [INFO] [stdout] 140 | | allowing for the collection to be modified in place [INFO] [stdout] 141 | | */ [INFO] [stdout] | |______^ [INFO] [stdout] 142 | / for word in words.iter_mut() { [INFO] [stdout] 143 | | *word = match word { [INFO] [stdout] 144 | | &mut "fine" => "Fine!Thank you,and you", [INFO] [stdout] 145 | | _ => "Hello world", [INFO] [stdout] 146 | | } [INFO] [stdout] 147 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable if-let pattern [INFO] [stdout] --> src/flow_of_control.rs:342:5 [INFO] [stdout] | [INFO] [stdout] 342 | / if let Foo1::Bar = a { [INFO] [stdout] 343 | | println!("a is foobar"); [INFO] [stdout] 344 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/slicesArrays.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let ys: [i32; 500] = [0; 500]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `un_used_variable` [INFO] [stdout] --> src/variable_binding.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let un_used_variable = 3u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_un_used_variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `noisy_unused_variable` [INFO] [stdout] --> src/variable_binding.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let noisy_unused_variable = 2u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_noisy_unused_variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `long_lived_binding` [INFO] [stdout] --> src/variable_binding.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let long_lived_binding = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_long_lived_binding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/flow_of_control.rs:335:21 [INFO] [stdout] | [INFO] [stdout] 335 | if let Foo::Qux(value @ 100) = c { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable if-let pattern [INFO] [stdout] --> src/flow_of_control.rs:342:5 [INFO] [stdout] | [INFO] [stdout] 342 | / if let Foo1::Bar = a { [INFO] [stdout] 343 | | println!("a is foobar"); [INFO] [stdout] 344 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/slicesArrays.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let ys: [i32; 500] = [0; 500]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `un_used_variable` [INFO] [stdout] --> src/variable_binding.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let un_used_variable = 3u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_un_used_variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `noisy_unused_variable` [INFO] [stdout] --> src/variable_binding.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let noisy_unused_variable = 2u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_noisy_unused_variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `long_lived_binding` [INFO] [stdout] --> src/variable_binding.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let long_lived_binding = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_long_lived_binding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/flow_of_control.rs:335:21 [INFO] [stdout] | [INFO] [stdout] 335 | if let Foo::Qux(value @ 100) = c { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pTuple` [INFO] [stdout] --> src/tuples_test.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn pTuple() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `reverse` [INFO] [stdout] --> src/tuples_test.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn reverse(pair: (i32, bool)) -> (bool, i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `basicTest` [INFO] [stdout] --> src/basic_test.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn basicTest(){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `analyze_slice` [INFO] [stdout] --> src/slicesArrays.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn analyze_slice(slice: &[i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sclies` [INFO] [stdout] --> src/slicesArrays.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn sclies() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Unit` [INFO] [stdout] --> src/custom_types.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct Unit; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pair` [INFO] [stdout] --> src/custom_types.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Pair(i32, f32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `struct_test` [INFO] [stdout] --> src/custom_types.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn struct_test() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `WebEvent` [INFO] [stdout] --> src/custom_types.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | pub enum WebEvent { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inspect` [INFO] [stdout] --> src/custom_types.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn inspect(event: WebEvent) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enum_test` [INFO] [stdout] --> src/custom_types.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn enum_test() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Add` [INFO] [stdout] --> src/custom_types.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Subtract` [INFO] [stdout] --> src/custom_types.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | Subtract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Operations` [INFO] [stdout] --> src/custom_types.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | type Operations = VeryVerboseEnumOfThingsToDoWithNumbers; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/custom_types.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | fn run(&self, x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_alias` [INFO] [stdout] --> src/custom_types.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn test_alias() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Status` [INFO] [stdout] --> src/custom_types.rs:121:6 [INFO] [stdout] | [INFO] [stdout] 121 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Work` [INFO] [stdout] --> src/custom_types.rs:126:6 [INFO] [stdout] | [INFO] [stdout] 126 | enum Work { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Number` [INFO] [stdout] --> src/custom_types.rs:147:6 [INFO] [stdout] | [INFO] [stdout] 147 | enum Number { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Color` [INFO] [stdout] --> src/custom_types.rs:153:6 [INFO] [stdout] | [INFO] [stdout] 153 | enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `c_like_test` [INFO] [stdout] --> src/custom_types.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn c_like_test() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `List` [INFO] [stdout] --> src/custom_types.rs:168:6 [INFO] [stdout] | [INFO] [stdout] 168 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/custom_types.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | fn new() -> List { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `prepend` [INFO] [stdout] --> src/custom_types.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | fn prepend(self, elem: u32) -> List { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/custom_types.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | fn len(&self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stringify` [INFO] [stdout] --> src/custom_types.rs:189:8 [INFO] [stdout] | [INFO] [stdout] 189 | fn stringify(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `linked_list_test` [INFO] [stdout] --> src/custom_types.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn linked_list_test() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `LANGUAGE` [INFO] [stdout] --> src/custom_types.rs:211:1 [INFO] [stdout] | [INFO] [stdout] 211 | static LANGUAGE: &str = "RUST"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `THRESHOLD` [INFO] [stdout] --> src/custom_types.rs:212:1 [INFO] [stdout] | [INFO] [stdout] 212 | const THRESHOLD: i32 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_big` [INFO] [stdout] --> src/custom_types.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn is_big(n: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `constant_test` [INFO] [stdout] --> src/custom_types.rs:218:8 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn constant_test() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_let` [INFO] [stdout] --> src/variable_binding.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn test_let() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_mutability` [INFO] [stdout] --> src/variable_binding.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn test_mutability() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_scope_and_shadowing` [INFO] [stdout] --> src/variable_binding.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn test_scope_and_shadowing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_declare_first` [INFO] [stdout] --> src/variable_binding.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn test_declare_first() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_freezing` [INFO] [stdout] --> src/variable_binding.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn test_freezing(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_casting` [INFO] [stdout] --> src/types.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn test_casting() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_literals` [INFO] [stdout] --> src/types.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn test_literals() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_inference` [INFO] [stdout] --> src/types.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn test_inference() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `NanoSecond` [INFO] [stdout] --> src/types.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | type NanoSecond = u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Inch` [INFO] [stdout] --> src/types.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | type Inch = u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `u64_t` [INFO] [stdout] --> src/types.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | type u64_t = u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_aliasing` [INFO] [stdout] --> src/types.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn test_aliasing() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_from` [INFO] [stdout] --> src/conversion.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn test_from() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_into` [INFO] [stdout] --> src/conversion.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn test_into() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_try_from_and_into` [INFO] [stdout] --> src/conversion.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn test_try_from_and_into() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_convering_to_string` [INFO] [stdout] --> src/conversion.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn test_convering_to_string() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_parsing_string` [INFO] [stdout] --> src/conversion.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn test_parsing_string(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_expressions` [INFO] [stdout] --> src/expressions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn test_expressions(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_if_else` [INFO] [stdout] --> src/flow_of_control.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn test_if_else() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_loop` [INFO] [stdout] --> src/flow_of_control.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn test_loop() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_nesting_and_lables` [INFO] [stdout] --> src/flow_of_control.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn test_nesting_and_lables() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_returning_from_loops` [INFO] [stdout] --> src/flow_of_control.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn test_returning_from_loops() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_while` [INFO] [stdout] --> src/flow_of_control.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn test_while() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_for_and_range` [INFO] [stdout] --> src/flow_of_control.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn test_for_and_range() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_iterators` [INFO] [stdout] --> src/flow_of_control.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn test_iterators() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_match` [INFO] [stdout] --> src/flow_of_control.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn test_match() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_tuples` [INFO] [stdout] --> src/flow_of_control.rs:170:8 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn test_tuples() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Color` [INFO] [stdout] --> src/flow_of_control.rs:181:6 [INFO] [stdout] | [INFO] [stdout] 181 | enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_enum` [INFO] [stdout] --> src/flow_of_control.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn test_enum() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_pointer_and_ref` [INFO] [stdout] --> src/flow_of_control.rs:209:8 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn test_pointer_and_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_structs` [INFO] [stdout] --> src/flow_of_control.rs:237:8 [INFO] [stdout] | [INFO] [stdout] 237 | pub fn test_structs() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_guard` [INFO] [stdout] --> src/flow_of_control.rs:252:8 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn test_guard() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `age` [INFO] [stdout] --> src/flow_of_control.rs:264:4 [INFO] [stdout] | [INFO] [stdout] 264 | fn age() -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `some_number` [INFO] [stdout] --> src/flow_of_control.rs:268:4 [INFO] [stdout] | [INFO] [stdout] 268 | fn some_number() -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_binding` [INFO] [stdout] --> src/flow_of_control.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | pub fn test_binding() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_if_let` [INFO] [stdout] --> src/flow_of_control.rs:289:8 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn test_if_let() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_while_let` [INFO] [stdout] --> src/flow_of_control.rs:347:8 [INFO] [stdout] | [INFO] [stdout] 347 | pub fn test_while_let() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_function` [INFO] [stdout] --> src/functions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn test_function() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_divisible_by` [INFO] [stdout] --> src/functions.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn is_divisible_by(lhs: u32, rhs: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fizzbuzz` [INFO] [stdout] --> src/functions.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn fizzbuzz(n: u32) -> () { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fizzbuzz_to` [INFO] [stdout] --> src/functions.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn fizzbuzz_to(n: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `MyFirstRust` 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: `my_first_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pTuple` should have a snake case name [INFO] [stdout] --> src/tuples_test.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn pTuple() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `p_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `basicTest` should have a snake case name [INFO] [stdout] --> src/basic_test.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn basicTest(){ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `basic_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/expressions.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | 2 * x; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 91 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pTuple` [INFO] [stdout] --> src/tuples_test.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn pTuple() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `reverse` [INFO] [stdout] --> src/tuples_test.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn reverse(pair: (i32, bool)) -> (bool, i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `basicTest` [INFO] [stdout] --> src/basic_test.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn basicTest(){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `analyze_slice` [INFO] [stdout] --> src/slicesArrays.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn analyze_slice(slice: &[i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sclies` [INFO] [stdout] --> src/slicesArrays.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn sclies() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Unit` [INFO] [stdout] --> src/custom_types.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct Unit; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pair` [INFO] [stdout] --> src/custom_types.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Pair(i32, f32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `struct_test` [INFO] [stdout] --> src/custom_types.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn struct_test() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `WebEvent` [INFO] [stdout] --> src/custom_types.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | pub enum WebEvent { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inspect` [INFO] [stdout] --> src/custom_types.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn inspect(event: WebEvent) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enum_test` [INFO] [stdout] --> src/custom_types.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn enum_test() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Add` [INFO] [stdout] --> src/custom_types.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Subtract` [INFO] [stdout] --> src/custom_types.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | Subtract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Operations` [INFO] [stdout] --> src/custom_types.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | type Operations = VeryVerboseEnumOfThingsToDoWithNumbers; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/custom_types.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | fn run(&self, x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_alias` [INFO] [stdout] --> src/custom_types.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn test_alias() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Status` [INFO] [stdout] --> src/custom_types.rs:121:6 [INFO] [stdout] | [INFO] [stdout] 121 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Work` [INFO] [stdout] --> src/custom_types.rs:126:6 [INFO] [stdout] | [INFO] [stdout] 126 | enum Work { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Number` [INFO] [stdout] --> src/custom_types.rs:147:6 [INFO] [stdout] | [INFO] [stdout] 147 | enum Number { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Color` [INFO] [stdout] --> src/custom_types.rs:153:6 [INFO] [stdout] | [INFO] [stdout] 153 | enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `c_like_test` [INFO] [stdout] --> src/custom_types.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn c_like_test() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `List` [INFO] [stdout] --> src/custom_types.rs:168:6 [INFO] [stdout] | [INFO] [stdout] 168 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/custom_types.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | fn new() -> List { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `prepend` [INFO] [stdout] --> src/custom_types.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | fn prepend(self, elem: u32) -> List { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/custom_types.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | fn len(&self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stringify` [INFO] [stdout] --> src/custom_types.rs:189:8 [INFO] [stdout] | [INFO] [stdout] 189 | fn stringify(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `linked_list_test` [INFO] [stdout] --> src/custom_types.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn linked_list_test() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `LANGUAGE` [INFO] [stdout] --> src/custom_types.rs:211:1 [INFO] [stdout] | [INFO] [stdout] 211 | static LANGUAGE: &str = "RUST"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `THRESHOLD` [INFO] [stdout] --> src/custom_types.rs:212:1 [INFO] [stdout] | [INFO] [stdout] 212 | const THRESHOLD: i32 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_big` [INFO] [stdout] --> src/custom_types.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn is_big(n: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `constant_test` [INFO] [stdout] --> src/custom_types.rs:218:8 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn constant_test() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_let` [INFO] [stdout] --> src/variable_binding.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn test_let() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_mutability` [INFO] [stdout] --> src/variable_binding.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn test_mutability() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_scope_and_shadowing` [INFO] [stdout] --> src/variable_binding.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn test_scope_and_shadowing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_declare_first` [INFO] [stdout] --> src/variable_binding.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn test_declare_first() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_freezing` [INFO] [stdout] --> src/variable_binding.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn test_freezing(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_casting` [INFO] [stdout] --> src/types.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn test_casting() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_literals` [INFO] [stdout] --> src/types.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn test_literals() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_inference` [INFO] [stdout] --> src/types.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn test_inference() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `NanoSecond` [INFO] [stdout] --> src/types.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | type NanoSecond = u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Inch` [INFO] [stdout] --> src/types.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | type Inch = u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `u64_t` [INFO] [stdout] --> src/types.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | type u64_t = u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_aliasing` [INFO] [stdout] --> src/types.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn test_aliasing() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_from` [INFO] [stdout] --> src/conversion.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn test_from() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_into` [INFO] [stdout] --> src/conversion.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn test_into() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_try_from_and_into` [INFO] [stdout] --> src/conversion.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn test_try_from_and_into() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_convering_to_string` [INFO] [stdout] --> src/conversion.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn test_convering_to_string() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_parsing_string` [INFO] [stdout] --> src/conversion.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn test_parsing_string(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_expressions` [INFO] [stdout] --> src/expressions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn test_expressions(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_if_else` [INFO] [stdout] --> src/flow_of_control.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn test_if_else() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_loop` [INFO] [stdout] --> src/flow_of_control.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn test_loop() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_nesting_and_lables` [INFO] [stdout] --> src/flow_of_control.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn test_nesting_and_lables() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_returning_from_loops` [INFO] [stdout] --> src/flow_of_control.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn test_returning_from_loops() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_while` [INFO] [stdout] --> src/flow_of_control.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn test_while() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_for_and_range` [INFO] [stdout] --> src/flow_of_control.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn test_for_and_range() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_iterators` [INFO] [stdout] --> src/flow_of_control.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn test_iterators() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_match` [INFO] [stdout] --> src/flow_of_control.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn test_match() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_tuples` [INFO] [stdout] --> src/flow_of_control.rs:170:8 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn test_tuples() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Color` [INFO] [stdout] --> src/flow_of_control.rs:181:6 [INFO] [stdout] | [INFO] [stdout] 181 | enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_enum` [INFO] [stdout] --> src/flow_of_control.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn test_enum() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_pointer_and_ref` [INFO] [stdout] --> src/flow_of_control.rs:209:8 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn test_pointer_and_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_structs` [INFO] [stdout] --> src/flow_of_control.rs:237:8 [INFO] [stdout] | [INFO] [stdout] 237 | pub fn test_structs() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_guard` [INFO] [stdout] --> src/flow_of_control.rs:252:8 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn test_guard() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `age` [INFO] [stdout] --> src/flow_of_control.rs:264:4 [INFO] [stdout] | [INFO] [stdout] 264 | fn age() -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `some_number` [INFO] [stdout] --> src/flow_of_control.rs:268:4 [INFO] [stdout] | [INFO] [stdout] 268 | fn some_number() -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_binding` [INFO] [stdout] --> src/flow_of_control.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | pub fn test_binding() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_if_let` [INFO] [stdout] --> src/flow_of_control.rs:289:8 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn test_if_let() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_while_let` [INFO] [stdout] --> src/flow_of_control.rs:347:8 [INFO] [stdout] | [INFO] [stdout] 347 | pub fn test_while_let() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_function` [INFO] [stdout] --> src/functions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn test_function() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_divisible_by` [INFO] [stdout] --> src/functions.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn is_divisible_by(lhs: u32, rhs: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fizzbuzz` [INFO] [stdout] --> src/functions.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn fizzbuzz(n: u32) -> () { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fizzbuzz_to` [INFO] [stdout] --> src/functions.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn fizzbuzz_to(n: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `MyFirstRust` 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: `my_first_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pTuple` should have a snake case name [INFO] [stdout] --> src/tuples_test.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn pTuple() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `p_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `basicTest` should have a snake case name [INFO] [stdout] --> src/basic_test.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn basicTest(){ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `basic_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/expressions.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | 2 * x; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 91 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 11.27s [INFO] running `Command { std: "docker" "inspect" "2fd202572d5d6810f1113138aa570c7a4cb53c44813b90a782af14ccebb4248d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fd202572d5d6810f1113138aa570c7a4cb53c44813b90a782af14ccebb4248d", kill_on_drop: false }` [INFO] [stdout] 2fd202572d5d6810f1113138aa570c7a4cb53c44813b90a782af14ccebb4248d