[INFO] cloning repository https://github.com/oswaldoooo/myrust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/oswaldoooo/myrust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foswaldoooo%2Fmyrust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foswaldoooo%2Fmyrust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] af0e1e5e51229bdace488578643915252d4cca8e [INFO] checking oswaldoooo/myrust against master#64b185eddaa1d7ddf5e0c024be23b9cbba6c1722 for pr-143929 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foswaldoooo%2Fmyrust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/oswaldoooo/myrust [INFO] finished tweaking git repo https://github.com/oswaldoooo/myrust [INFO] tweaked toml for git repo https://github.com/oswaldoooo/myrust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/oswaldoooo/myrust on toolchain 64b185eddaa1d7ddf5e0c024be23b9cbba6c1722 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/oswaldoooo/myrust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bplustree v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 618c548d837e8be921e8a819c2b29013425ffe7d95d5b000d0fe6d349397d408 [INFO] running `Command { std: "docker" "start" "-a" "618c548d837e8be921e8a819c2b29013425ffe7d95d5b000d0fe6d349397d408", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "618c548d837e8be921e8a819c2b29013425ffe7d95d5b000d0fe6d349397d408", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "618c548d837e8be921e8a819c2b29013425ffe7d95d5b000d0fe6d349397d408", kill_on_drop: false }` [INFO] [stdout] 618c548d837e8be921e8a819c2b29013425ffe7d95d5b000d0fe6d349397d408 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] edb347d74b3629add71134760023863275c8391e61e0466f4d30d3c92e2132af [INFO] running `Command { std: "docker" "start" "-a" "edb347d74b3629add71134760023863275c8391e61e0466f4d30d3c92e2132af", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling rust_decimal v1.35.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling strum_macros v0.21.1 [INFO] [stderr] Compiling getset v0.1.2 [INFO] [stderr] Checking bplustree v0.1.0 [INFO] [stderr] Checking strum v0.21.0 [INFO] [stderr] Checking myrs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BufReader` and `Read` [INFO] [stdout] --> src/dep/stockadv.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{BufReader, Read}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::Cow` [INFO] [stdout] --> src/dep/stockadv.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | borrow::Cow, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::interfaces::Node` [INFO] [stdout] --> src/tests/one_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use self::interfaces::Node; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | mod tests; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BPlusTree` [INFO] [stdout] --> src/tests/btree_test.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use bplustree::{iter::RawSharedIter, BPlusTree}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/one_test.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | mod btree_test; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader` and `Read` [INFO] [stdout] --> src/dep/stockadv.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{BufReader, Read}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::Cow` [INFO] [stdout] --> src/dep/stockadv.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | borrow::Cow, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::interfaces::Node` [INFO] [stdout] --> src/tests/one_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use self::interfaces::Node; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BTreeMap` [INFO] [stdout] --> src/tests/btree_test.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::BTreeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dep/person.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new(name: String, age: u8, ClassName: String) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `age` [INFO] [stdout] --> src/dep/person.rs:49:34 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new(name: String, age: u8, ClassName: String) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_age` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ClassName` [INFO] [stdout] --> src/dep/person.rs:49:43 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new(name: String, age: u8, ClassName: String) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ClassName` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `things` [INFO] [stdout] --> src/dep/stock.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | Some(things) => {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_things` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ans` [INFO] [stdout] --> src/dep/stock.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | Ok(ans) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/dep/stockadv.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | let mut f = fs::File::open(rpath).unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buff2` [INFO] [stdout] --> src/dep/stockadv.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let buff2 = &buff[..]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_buff2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dep/stockadv.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut f = fs::File::open(rpath).unwrap(); [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/dep/stockadv.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut buff: &[u8] = &[0u8; 1 << 10]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buff` [INFO] [stdout] --> src/dep/stockadv.rs:77:28 [INFO] [stdout] | [INFO] [stdout] 77 | fn send(&mut self, buff: &mut [u8]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_buff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buff` [INFO] [stdout] --> src/dep/stockadv.rs:81:32 [INFO] [stdout] | [INFO] [stdout] 81 | fn recv<'a>(&mut self, buff: &'a mut [u8]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_buff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/tests/btree_test.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut i = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listed` [INFO] [stdout] --> src/tests/one_test.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut listed: collections::LinkList = collections::LinkList::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_listed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut listed: collections::LinkList = collections::LinkList::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/tests/one_test.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let mut bval: Box> = Box::new(Node::new(_val)); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | let mut bptr = Box::leak(bval); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/tests/one_test.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | let mut bval: Box> = Box::new(Node::new(_val)); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let mut bptr = Box::leak(bval); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | let mut i: usize = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | let mut i: usize = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | let mut i: usize = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:167:21 [INFO] [stdout] | [INFO] [stdout] 167 | let mut nextnode = self.node.clone().unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:179:21 [INFO] [stdout] | [INFO] [stdout] 179 | let mut rawptr = self.node.clone().unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let p = crate::dep::person::Person { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `getContent` is never used [INFO] [stdout] --> src/dep/stockadv.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl StockAdv1 { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 7 | pub fn getContent<'a>(rpath: &'a str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_box` is never used [INFO] [stdout] --> src/tests/one_test.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn test_box() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Order` is never constructed [INFO] [stdout] --> src/tests/btree_test.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Order { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `printallnode` is never used [INFO] [stdout] --> src/tests/btree_test.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn printallnode(mut iter: RawSharedIter<'_, Decimal, Order, 128, 256>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyStruct` is never constructed [INFO] [stdout] --> src/tests/reflect.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | struct MyStruct { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_field1`, `set_field1`, `get_field2`, and `set_field2` are never used [INFO] [stdout] --> src/tests/reflect.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 42 | / impl $struct_name { [INFO] [stdout] 43 | | $( [INFO] [stdout] 44 | | [INFO] [stdout] 45 | | pub fn [](&self) -> &$field_type { [INFO] [stdout] | | ^^^^^^^^^^^^^^ [INFO] [stdout] ... | [INFO] [stdout] 48 | | pub fn [](&mut self, value: $field_type) { [INFO] [stdout] | | ^^^^^^^^^^^^^^ [INFO] [stdout] ... | [INFO] [stdout] 58 | | )* [INFO] [stdout] 59 | | } [INFO] [stdout] | |_______- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | / struct_getters_setters!(MyStruct { [INFO] [stdout] 70 | | field1: i32, [INFO] [stdout] 71 | | field2: String [INFO] [stdout] 72 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `struct_getters_setters` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/tests/reflect.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | struct Person{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Node` is never used [INFO] [stdout] --> src/tests/one_test.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Node [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/tests/one_test.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Node [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/tests/one_test.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 29 | impl Node { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 30 | pub fn new(_val: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkList` is never constructed [INFO] [stdout] --> src/tests/one_test.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct LinkList [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `iter`, `push_back`, and `push_front` are never used [INFO] [stdout] --> src/tests/one_test.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 56 | impl LinkList { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 57 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn iter(&self) -> iter::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn push_back(&mut self, _val: T) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn push_front(&mut self, _val: T) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/tests/one_test.rs:153:20 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct Node [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `next`, and `push_back` are never used [INFO] [stdout] --> src/tests/one_test.rs:160:20 [INFO] [stdout] | [INFO] [stdout] 159 | impl Node { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 160 | pub fn new(_val: *mut super::Node, _size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn next(&self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn push_back(&mut self, _next: &Self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ClassName` should have a snake case name [INFO] [stdout] --> src/dep/person.rs:49:43 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new(name: String, age: u8, ClassName: String) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `class_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/dep/stock.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | STOCK_LIST.push(*_stock); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getContent` should have a snake case name [INFO] [stdout] --> src/dep/stockadv.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn getContent<'a>(rpath: &'a str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/dep/stockadv.rs:7:35 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn getContent<'a>(rpath: &'a str) -> Option> { [INFO] [stdout] | ^^ ----- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 7 | pub fn getContent<'a>(rpath: &'a str) -> Option> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dep/person.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new(name: String, age: u8, ClassName: String) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `age` [INFO] [stdout] --> src/dep/person.rs:49:34 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new(name: String, age: u8, ClassName: String) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_age` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ClassName` [INFO] [stdout] --> src/dep/person.rs:49:43 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new(name: String, age: u8, ClassName: String) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ClassName` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `things` [INFO] [stdout] --> src/dep/stock.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | Some(things) => {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_things` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ans` [INFO] [stdout] --> src/dep/stock.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | Ok(ans) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/dep/stockadv.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | let mut f = fs::File::open(rpath).unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buff2` [INFO] [stdout] --> src/dep/stockadv.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let buff2 = &buff[..]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_buff2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dep/stockadv.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut f = fs::File::open(rpath).unwrap(); [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/dep/stockadv.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut buff: &[u8] = &[0u8; 1 << 10]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buff` [INFO] [stdout] --> src/dep/stockadv.rs:77:28 [INFO] [stdout] | [INFO] [stdout] 77 | fn send(&mut self, buff: &mut [u8]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_buff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buff` [INFO] [stdout] --> src/dep/stockadv.rs:81:32 [INFO] [stdout] | [INFO] [stdout] 81 | fn recv<'a>(&mut self, buff: &'a mut [u8]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_buff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/btree_test.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut bpm: BPlusTree = BPlusTree::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/btree_test.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut iter = bpm.raw_iter(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/tests/btree_test.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut i = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/reflect.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let mut my_struct = MyStruct { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/tests/reflect.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let mut obj=json::from("{\"name\":\"jackson\",\"age\":23}"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/reflect.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let mut obj=json::from("{\"name\":\"jackson\",\"age\":23}"); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listed` [INFO] [stdout] --> src/tests/one_test.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut listed: collections::LinkList = collections::LinkList::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_listed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut listed: collections::LinkList = collections::LinkList::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/tests/one_test.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let mut bval: Box> = Box::new(Node::new(_val)); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | let mut bptr = Box::leak(bval); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/tests/one_test.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | let mut bval: Box> = Box::new(Node::new(_val)); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let mut bptr = Box::leak(bval); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | let mut i: usize = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | let mut i: usize = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | let mut i: usize = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:167:21 [INFO] [stdout] | [INFO] [stdout] 167 | let mut nextnode = self.node.clone().unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/one_test.rs:179:21 [INFO] [stdout] | [INFO] [stdout] 179 | let mut rawptr = self.node.clone().unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let p = crate::dep::person::Person { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `getContent` is never used [INFO] [stdout] --> src/dep/stockadv.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl StockAdv1 { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 7 | pub fn getContent<'a>(rpath: &'a str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_box` is never used [INFO] [stdout] --> src/tests/one_test.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn test_box() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_field1` and `set_field2` are never used [INFO] [stdout] --> src/tests/reflect.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 42 | / impl $struct_name { [INFO] [stdout] 43 | | $( [INFO] [stdout] 44 | | [INFO] [stdout] 45 | | pub fn [](&self) -> &$field_type { [INFO] [stdout] ... | [INFO] [stdout] 48 | | pub fn [](&mut self, value: $field_type) { [INFO] [stdout] | | ^^^^^^^^^^^^^^ [INFO] [stdout] ... | [INFO] [stdout] 58 | | )* [INFO] [stdout] 59 | | } [INFO] [stdout] | |_______- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | / struct_getters_setters!(MyStruct { [INFO] [stdout] 70 | | field1: i32, [INFO] [stdout] 71 | | field2: String [INFO] [stdout] 72 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `struct_getters_setters` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Node` is never used [INFO] [stdout] --> src/tests/one_test.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Node [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/tests/one_test.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Node [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/tests/one_test.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 29 | impl Node { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 30 | pub fn new(_val: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkList` is never constructed [INFO] [stdout] --> src/tests/one_test.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct LinkList [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `iter`, `push_back`, and `push_front` are never used [INFO] [stdout] --> src/tests/one_test.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 56 | impl LinkList { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 57 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn iter(&self) -> iter::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn push_back(&mut self, _val: T) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn push_front(&mut self, _val: T) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/tests/one_test.rs:153:20 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct Node [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `next`, and `push_back` are never used [INFO] [stdout] --> src/tests/one_test.rs:160:20 [INFO] [stdout] | [INFO] [stdout] 159 | impl Node { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 160 | pub fn new(_val: *mut super::Node, _size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn next(&self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn push_back(&mut self, _next: &Self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ClassName` should have a snake case name [INFO] [stdout] --> src/dep/person.rs:49:43 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new(name: String, age: u8, ClassName: String) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `class_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/dep/stock.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | STOCK_LIST.push(*_stock); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getContent` should have a snake case name [INFO] [stdout] --> src/dep/stockadv.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn getContent<'a>(rpath: &'a str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/dep/stockadv.rs:7:35 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn getContent<'a>(rpath: &'a str) -> Option> { [INFO] [stdout] | ^^ ----- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 7 | pub fn getContent<'a>(rpath: &'a str) -> Option> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests/reflect.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | json::parse("{\"name\":\"jackson\",\"age\":23}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 98 | let _ = json::parse("{\"name\":\"jackson\",\"age\":23}"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.47s [INFO] running `Command { std: "docker" "inspect" "edb347d74b3629add71134760023863275c8391e61e0466f4d30d3c92e2132af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edb347d74b3629add71134760023863275c8391e61e0466f4d30d3c92e2132af", kill_on_drop: false }` [INFO] [stdout] edb347d74b3629add71134760023863275c8391e61e0466f4d30d3c92e2132af