[INFO] fetching crate siquery 1.2.0... [INFO] building siquery-1.2.0 against try#615edd3ad1cf6871c977dc900317cb6c2070fd6b for pr-97334 [INFO] extracting crate siquery 1.2.0 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate siquery 1.2.0 on toolchain 615edd3ad1cf6871c977dc900317cb6c2070fd6b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate siquery 1.2.0 [INFO] finished tweaking crates.io crate siquery 1.2.0 [INFO] tweaked toml for crates.io crate siquery 1.2.0 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3b4ef8e25a59c303fdaf38d43ccf18592cbf4fea4b7dcc359ccaf153e65fdf96 [INFO] running `Command { std: "docker" "start" "-a" "3b4ef8e25a59c303fdaf38d43ccf18592cbf4fea4b7dcc359ccaf153e65fdf96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3b4ef8e25a59c303fdaf38d43ccf18592cbf4fea4b7dcc359ccaf153e65fdf96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b4ef8e25a59c303fdaf38d43ccf18592cbf4fea4b7dcc359ccaf153e65fdf96", kill_on_drop: false }` [INFO] [stdout] 3b4ef8e25a59c303fdaf38d43ccf18592cbf4fea4b7dcc359ccaf153e65fdf96 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7e4aabf69d90a1ad59b7dba6784a14fee98e7d927e00e8dda8d5e2fe01540add [INFO] running `Command { std: "docker" "start" "-a" "7e4aabf69d90a1ad59b7dba6784a14fee98e7d927e00e8dda8d5e2fe01540add", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling gimli v0.26.1 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling nix v0.11.1 [INFO] [stderr] Compiling rustc-serialize v0.3.24 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Compiling term v0.4.6 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling itoa v1.0.2 [INFO] [stderr] Compiling encode_unicode v0.3.6 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling siquery v1.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling horrorshow v0.6.6 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> build.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | const WINDOWS_TABLES: &'static [(&'static str)] = &[ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 3 - const WINDOWS_TABLES: &'static [(&'static str)] = &[ [INFO] [stdout] 3 + const WINDOWS_TABLES: &'static [&'static str] = &[ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> build.rs:44:31 [INFO] [stdout] | [INFO] [stdout] 44 | const LINUX_TABLES: &'static [(&'static str)] = &[ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - const LINUX_TABLES: &'static [(&'static str)] = &[ [INFO] [stdout] 44 + const LINUX_TABLES: &'static [&'static str] = &[ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> build.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | const MACOS_TABLES: &'static [(&'static str)] = &[ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 64 - const MACOS_TABLES: &'static [(&'static str)] = &[ [INFO] [stdout] 64 + const MACOS_TABLES: &'static [&'static str] = &[ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> build.rs:82:38 [INFO] [stdout] | [INFO] [stdout] 82 | fn emit_features(features: &'static [(&'static str)]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - fn emit_features(features: &'static [(&'static str)]) { [INFO] [stdout] 82 + fn emit_features(features: &'static [&'static str]) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling miniz_oxide v0.5.3 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling backtrace v0.3.65 [INFO] [stderr] Compiling libsqlite3-sys v0.9.4 [INFO] [stderr] Compiling object v0.28.4 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling csv-core v0.1.10 [INFO] [stderr] Compiling memchr v1.0.2 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling errno v0.2.8 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling uname v0.1.1 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling sysconf v0.3.4 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling csv v0.15.0 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling addr2line v0.17.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling regex v1.5.6 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling bstr v0.2.17 [INFO] [stderr] Compiling prettytable-rs v0.6.7 [INFO] [stderr] Compiling proxy_cfg v0.1.0 [INFO] [stderr] Compiling csv v1.1.6 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling treexml v0.7.0 [INFO] [stderr] Compiling rusqlite v0.14.0 [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vtab.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | let arg = try!(str::from_utf8(c_slice)).trim(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vtab.rs:65:34 [INFO] [stdout] | [INFO] [stdout] 65 | let (param, value) = try!(SiqueryTab::parameter(c_slice)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/printer.rs:39:69 [INFO] [stdout] | [INFO] [stdout] 39 | wtr.write_record(row).expect("could not write row");; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/linux/proxies.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/linux/interface_details.rs:63:53 [INFO] [stdout] | [INFO] [stdout] 63 | let mut addrs: *mut ifaddrs = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/hosts.rs:30:37 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn get_specific_ex(reader: &EtcHostsIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 - pub fn get_specific_ex(reader: &EtcHostsIface) -> Vec { [INFO] [stdout] 30 + pub fn get_specific_ex(reader: &dyn EtcHostsIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/services.rs:35:37 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn get_specific_ex(reader: &EtcServicesIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 - pub fn get_specific_ex(reader: &EtcServicesIface) -> Vec { [INFO] [stdout] 35 + pub fn get_specific_ex(reader: &dyn EtcServicesIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/protocols.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn get_specific_ex(reader: &EtcProtocolsIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 34 - pub fn get_specific_ex(reader: &EtcProtocolsIface) -> Vec { [INFO] [stdout] 34 + pub fn get_specific_ex(reader: &dyn EtcProtocolsIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/os_version.rs:38:44 [INFO] [stdout] | [INFO] [stdout] 38 | pub(crate) fn get_specific_ex(reader: &OsVersionIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 38 - pub(crate) fn get_specific_ex(reader: &OsVersionIface) -> Vec { [INFO] [stdout] 38 + pub(crate) fn get_specific_ex(reader: &dyn OsVersionIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/system_info.rs:58:37 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get_specific_ex(reader: &SystemInfoDataIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 58 - pub fn get_specific_ex(reader: &SystemInfoDataIface) -> Vec { [INFO] [stdout] 58 + pub fn get_specific_ex(reader: &dyn SystemInfoDataIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/system_info.rs:83:41 [INFO] [stdout] | [INFO] [stdout] 83 | fn get_cpu_info(&mut self, reader: &SystemInfoDataIface) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 83 - fn get_cpu_info(&mut self, reader: &SystemInfoDataIface) -> Option { [INFO] [stdout] 83 + fn get_cpu_info(&mut self, reader: &dyn SystemInfoDataIface) -> Option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/hosts.rs:65:25 [INFO] [stdout] | [INFO] [stdout] 65 | let reader: Box = Box::new(EtcHostsReader{}); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 65 - let reader: Box = Box::new(EtcHostsReader{}); [INFO] [stdout] 65 + let reader: Box = Box::new(EtcHostsReader{}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/services.rs:109:25 [INFO] [stdout] | [INFO] [stdout] 109 | let reader: Box = Box::new(EtcServicesReader{}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 109 - let reader: Box = Box::new(EtcServicesReader{}); [INFO] [stdout] 109 + let reader: Box = Box::new(EtcServicesReader{}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/protocols.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | let reader: Box = Box::new(EtcProtocolsReader{}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 86 - let reader: Box = Box::new(EtcProtocolsReader{}); [INFO] [stdout] 86 + let reader: Box = Box::new(EtcProtocolsReader{}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/os_version.rs:87:25 [INFO] [stdout] | [INFO] [stdout] 87 | let reader: Box = Box::new(Reader::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 87 - let reader: Box = Box::new(Reader::new()); [INFO] [stdout] 87 + let reader: Box = Box::new(Reader::new()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/linux/system_info.rs:67:42 [INFO] [stdout] | [INFO] [stdout] 67 | .and_then(|v| v.trim_left_matches(' ').split(' ').next()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/system_info.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | let reader: Box = Box::new(Reader{}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 94 - let reader: Box = Box::new(Reader{}); [INFO] [stdout] 94 + let reader: Box = Box::new(Reader{}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/linux/proxies.rs:13:45 [INFO] [stdout] | [INFO] [stdout] 13 | url:url.to_string().trim_right_matches('/').to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/linux/process_open_sockets.rs:95:37 [INFO] [stdout] | [INFO] [stdout] 95 | ... let mut local_address: String; [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/linux/process_open_sockets.rs:137:37 [INFO] [stdout] | [INFO] [stdout] 137 | ... let mut remote_address: String; [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/linux/process_open_sockets.rs:268:17 [INFO] [stdout] | [INFO] [stdout] 268 | let mut net_ns : String; [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/linux/process_open_sockets.rs:298:25 [INFO] [stdout] | [INFO] [stdout] 298 | let mut state_string : String; [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/linux/process_open_sockets.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | let mut state_string : String; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/linux/groups.rs:22:51 [INFO] [stdout] | [INFO] [stdout] 22 | let groupname = unsafe{CStr::from_ptr(unsafe {*group_p}.gr_name).to_str().unwrap_or("")}; [INFO] [stdout] | ------ ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | | [INFO] [stdout] | because it's nested under this `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/query.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | &db.execute_batch(&sql).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 302 | let _ = &db.execute_batch(&sql).unwrap(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | &file.read_to_string(&mut content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 79 | let _ = &file.read_to_string(&mut content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | &file.read_to_string(&mut content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 209 | let _ = &file.read_to_string(&mut content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | &file.read_to_string(&mut status_content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 282 | let _ = &file.read_to_string(&mut status_content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:323:13 [INFO] [stdout] | [INFO] [stdout] 323 | &file.read_to_string(&mut stat_content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 323 | let _ = &file.read_to_string(&mut stat_content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | &file.read_to_string(&mut io_content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 359 | let _ = &file.read_to_string(&mut io_content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 27.09s [INFO] running `Command { std: "docker" "inspect" "7e4aabf69d90a1ad59b7dba6784a14fee98e7d927e00e8dda8d5e2fe01540add", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e4aabf69d90a1ad59b7dba6784a14fee98e7d927e00e8dda8d5e2fe01540add", kill_on_drop: false }` [INFO] [stdout] 7e4aabf69d90a1ad59b7dba6784a14fee98e7d927e00e8dda8d5e2fe01540add [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6689baa6ed6f3ffef283ed059ba7738d776ca89055acb449fa0a95fa11fb5aca [INFO] running `Command { std: "docker" "start" "-a" "6689baa6ed6f3ffef283ed059ba7738d776ca89055acb449fa0a95fa11fb5aca", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> build.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | const WINDOWS_TABLES: &'static [(&'static str)] = &[ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 3 - const WINDOWS_TABLES: &'static [(&'static str)] = &[ [INFO] [stdout] 3 + const WINDOWS_TABLES: &'static [&'static str] = &[ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> build.rs:44:31 [INFO] [stdout] | [INFO] [stdout] 44 | const LINUX_TABLES: &'static [(&'static str)] = &[ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - const LINUX_TABLES: &'static [(&'static str)] = &[ [INFO] [stdout] 44 + const LINUX_TABLES: &'static [&'static str] = &[ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> build.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | const MACOS_TABLES: &'static [(&'static str)] = &[ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 64 - const MACOS_TABLES: &'static [(&'static str)] = &[ [INFO] [stdout] 64 + const MACOS_TABLES: &'static [&'static str] = &[ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> build.rs:82:38 [INFO] [stdout] | [INFO] [stdout] 82 | fn emit_features(features: &'static [(&'static str)]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - fn emit_features(features: &'static [(&'static str)]) { [INFO] [stdout] 82 + fn emit_features(features: &'static [&'static str]) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vtab.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | let arg = try!(str::from_utf8(c_slice)).trim(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vtab.rs:65:34 [INFO] [stdout] | [INFO] [stdout] 65 | let (param, value) = try!(SiqueryTab::parameter(c_slice)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/printer.rs:39:69 [INFO] [stdout] | [INFO] [stdout] 39 | wtr.write_record(row).expect("could not write row");; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/linux/proxies.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/linux/interface_details.rs:63:53 [INFO] [stdout] | [INFO] [stdout] 63 | let mut addrs: *mut ifaddrs = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/hosts.rs:30:37 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn get_specific_ex(reader: &EtcHostsIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 - pub fn get_specific_ex(reader: &EtcHostsIface) -> Vec { [INFO] [stdout] 30 + pub fn get_specific_ex(reader: &dyn EtcHostsIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/services.rs:35:37 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn get_specific_ex(reader: &EtcServicesIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 - pub fn get_specific_ex(reader: &EtcServicesIface) -> Vec { [INFO] [stdout] 35 + pub fn get_specific_ex(reader: &dyn EtcServicesIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/protocols.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn get_specific_ex(reader: &EtcProtocolsIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 34 - pub fn get_specific_ex(reader: &EtcProtocolsIface) -> Vec { [INFO] [stdout] 34 + pub fn get_specific_ex(reader: &dyn EtcProtocolsIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/os_version.rs:38:44 [INFO] [stdout] | [INFO] [stdout] 38 | pub(crate) fn get_specific_ex(reader: &OsVersionIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 38 - pub(crate) fn get_specific_ex(reader: &OsVersionIface) -> Vec { [INFO] [stdout] 38 + pub(crate) fn get_specific_ex(reader: &dyn OsVersionIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/system_info.rs:58:37 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get_specific_ex(reader: &SystemInfoDataIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 58 - pub fn get_specific_ex(reader: &SystemInfoDataIface) -> Vec { [INFO] [stdout] 58 + pub fn get_specific_ex(reader: &dyn SystemInfoDataIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/system_info.rs:83:41 [INFO] [stdout] | [INFO] [stdout] 83 | fn get_cpu_info(&mut self, reader: &SystemInfoDataIface) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 83 - fn get_cpu_info(&mut self, reader: &SystemInfoDataIface) -> Option { [INFO] [stdout] 83 + fn get_cpu_info(&mut self, reader: &dyn SystemInfoDataIface) -> Option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/hosts.rs:65:25 [INFO] [stdout] | [INFO] [stdout] 65 | let reader: Box = Box::new(EtcHostsReader{}); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 65 - let reader: Box = Box::new(EtcHostsReader{}); [INFO] [stdout] 65 + let reader: Box = Box::new(EtcHostsReader{}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/services.rs:109:25 [INFO] [stdout] | [INFO] [stdout] 109 | let reader: Box = Box::new(EtcServicesReader{}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 109 - let reader: Box = Box::new(EtcServicesReader{}); [INFO] [stdout] 109 + let reader: Box = Box::new(EtcServicesReader{}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/protocols.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | let reader: Box = Box::new(EtcProtocolsReader{}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 86 - let reader: Box = Box::new(EtcProtocolsReader{}); [INFO] [stdout] 86 + let reader: Box = Box::new(EtcProtocolsReader{}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/os_version.rs:87:25 [INFO] [stdout] | [INFO] [stdout] 87 | let reader: Box = Box::new(Reader::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 87 - let reader: Box = Box::new(Reader::new()); [INFO] [stdout] 87 + let reader: Box = Box::new(Reader::new()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/linux/system_info.rs:67:42 [INFO] [stdout] | [INFO] [stdout] 67 | .and_then(|v| v.trim_left_matches(' ').split(' ').next()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/system_info.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | let reader: Box = Box::new(Reader{}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 94 - let reader: Box = Box::new(Reader{}); [INFO] [stdout] 94 + let reader: Box = Box::new(Reader{}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/linux/proxies.rs:13:45 [INFO] [stdout] | [INFO] [stdout] 13 | url:url.to_string().trim_right_matches('/').to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/linux/process_open_sockets.rs:95:37 [INFO] [stdout] | [INFO] [stdout] 95 | ... let mut local_address: String; [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] [stderr] Compiling siquery v1.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/linux/process_open_sockets.rs:137:37 [INFO] [stdout] | [INFO] [stdout] 137 | ... let mut remote_address: String; [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/linux/process_open_sockets.rs:268:17 [INFO] [stdout] | [INFO] [stdout] 268 | let mut net_ns : String; [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/linux/process_open_sockets.rs:298:25 [INFO] [stdout] | [INFO] [stdout] 298 | let mut state_string : String; [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/linux/process_open_sockets.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | let mut state_string : String; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/linux/groups.rs:22:51 [INFO] [stdout] | [INFO] [stdout] 22 | let groupname = unsafe{CStr::from_ptr(unsafe {*group_p}.gr_name).to_str().unwrap_or("")}; [INFO] [stdout] | ------ ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | | [INFO] [stdout] | because it's nested under this `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/query.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | &db.execute_batch(&sql).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 302 | let _ = &db.execute_batch(&sql).unwrap(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | &file.read_to_string(&mut content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 79 | let _ = &file.read_to_string(&mut content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | &file.read_to_string(&mut content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 209 | let _ = &file.read_to_string(&mut content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | &file.read_to_string(&mut status_content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 282 | let _ = &file.read_to_string(&mut status_content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:323:13 [INFO] [stdout] | [INFO] [stdout] 323 | &file.read_to_string(&mut stat_content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 323 | let _ = &file.read_to_string(&mut stat_content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | &file.read_to_string(&mut io_content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 359 | let _ = &file.read_to_string(&mut io_content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vtab.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | let arg = try!(str::from_utf8(c_slice)).trim(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vtab.rs:65:34 [INFO] [stdout] | [INFO] [stdout] 65 | let (param, value) = try!(SiqueryTab::parameter(c_slice)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/printer.rs:39:69 [INFO] [stdout] | [INFO] [stdout] 39 | wtr.write_record(row).expect("could not write row");; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/linux/proxies.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/linux/interface_details.rs:63:53 [INFO] [stdout] | [INFO] [stdout] 63 | let mut addrs: *mut ifaddrs = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/hosts.rs:30:37 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn get_specific_ex(reader: &EtcHostsIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 - pub fn get_specific_ex(reader: &EtcHostsIface) -> Vec { [INFO] [stdout] 30 + pub fn get_specific_ex(reader: &dyn EtcHostsIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/services.rs:35:37 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn get_specific_ex(reader: &EtcServicesIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 - pub fn get_specific_ex(reader: &EtcServicesIface) -> Vec { [INFO] [stdout] 35 + pub fn get_specific_ex(reader: &dyn EtcServicesIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/protocols.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn get_specific_ex(reader: &EtcProtocolsIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 34 - pub fn get_specific_ex(reader: &EtcProtocolsIface) -> Vec { [INFO] [stdout] 34 + pub fn get_specific_ex(reader: &dyn EtcProtocolsIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/os_version.rs:38:44 [INFO] [stdout] | [INFO] [stdout] 38 | pub(crate) fn get_specific_ex(reader: &OsVersionIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 38 - pub(crate) fn get_specific_ex(reader: &OsVersionIface) -> Vec { [INFO] [stdout] 38 + pub(crate) fn get_specific_ex(reader: &dyn OsVersionIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/system_info.rs:58:37 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get_specific_ex(reader: &SystemInfoDataIface) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 58 - pub fn get_specific_ex(reader: &SystemInfoDataIface) -> Vec { [INFO] [stdout] 58 + pub fn get_specific_ex(reader: &dyn SystemInfoDataIface) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/system_info.rs:83:41 [INFO] [stdout] | [INFO] [stdout] 83 | fn get_cpu_info(&mut self, reader: &SystemInfoDataIface) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 83 - fn get_cpu_info(&mut self, reader: &SystemInfoDataIface) -> Option { [INFO] [stdout] 83 + fn get_cpu_info(&mut self, reader: &dyn SystemInfoDataIface) -> Option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/hosts.rs:65:25 [INFO] [stdout] | [INFO] [stdout] 65 | let reader: Box = Box::new(EtcHostsReader{}); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 65 - let reader: Box = Box::new(EtcHostsReader{}); [INFO] [stdout] 65 + let reader: Box = Box::new(EtcHostsReader{}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/services.rs:109:25 [INFO] [stdout] | [INFO] [stdout] 109 | let reader: Box = Box::new(EtcServicesReader{}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 109 - let reader: Box = Box::new(EtcServicesReader{}); [INFO] [stdout] 109 + let reader: Box = Box::new(EtcServicesReader{}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/protocols.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | let reader: Box = Box::new(EtcProtocolsReader{}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 86 - let reader: Box = Box::new(EtcProtocolsReader{}); [INFO] [stdout] 86 + let reader: Box = Box::new(EtcProtocolsReader{}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/hosts.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | let reader: Box = Box::new(EtcHostsTest {}); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 82 - let reader: Box = Box::new(EtcHostsTest {}); [INFO] [stdout] 82 + let reader: Box = Box::new(EtcHostsTest {}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/services.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | let reader: Box = Box::new(EtcServicesTest {}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 126 - let reader: Box = Box::new(EtcServicesTest {}); [INFO] [stdout] 126 + let reader: Box = Box::new(EtcServicesTest {}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/protocols.rs:103:25 [INFO] [stdout] | [INFO] [stdout] 103 | let reader: Box = Box::new(EtcProtocolsTest {}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 103 - let reader: Box = Box::new(EtcProtocolsTest {}); [INFO] [stdout] 103 + let reader: Box = Box::new(EtcProtocolsTest {}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/os_version.rs:87:25 [INFO] [stdout] | [INFO] [stdout] 87 | let reader: Box = Box::new(Reader::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 87 - let reader: Box = Box::new(Reader::new()); [INFO] [stdout] 87 + let reader: Box = Box::new(Reader::new()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/linux/system_info.rs:67:42 [INFO] [stdout] | [INFO] [stdout] 67 | .and_then(|v| v.trim_left_matches(' ').split(' ').next()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/system_info.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | let reader: Box = Box::new(Reader{}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 94 - let reader: Box = Box::new(Reader{}); [INFO] [stdout] 94 + let reader: Box = Box::new(Reader{}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/linux/proxies.rs:13:45 [INFO] [stdout] | [INFO] [stdout] 13 | url:url.to_string().trim_right_matches('/').to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/os_version.rs:110:25 [INFO] [stdout] | [INFO] [stdout] 110 | let reader: Box = Box::new(Test{}); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 110 - let reader: Box = Box::new(Test{}); [INFO] [stdout] 110 + let reader: Box = Box::new(Test{}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux/system_info.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | let reader: Box = Box::new(Test{}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 126 - let reader: Box = Box::new(Test{}); [INFO] [stdout] 126 + let reader: Box = Box::new(Test{}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/linux/process_open_sockets.rs:95:37 [INFO] [stdout] | [INFO] [stdout] 95 | ... let mut local_address: String; [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/linux/process_open_sockets.rs:137:37 [INFO] [stdout] | [INFO] [stdout] 137 | ... let mut remote_address: String; [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/linux/process_open_sockets.rs:268:17 [INFO] [stdout] | [INFO] [stdout] 268 | let mut net_ns : String; [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/linux/process_open_sockets.rs:298:25 [INFO] [stdout] | [INFO] [stdout] 298 | let mut state_string : String; [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/linux/process_open_sockets.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | let mut state_string : String; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/linux/groups.rs:22:51 [INFO] [stdout] | [INFO] [stdout] 22 | let groupname = unsafe{CStr::from_ptr(unsafe {*group_p}.gr_name).to_str().unwrap_or("")}; [INFO] [stdout] | ------ ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | | [INFO] [stdout] | because it's nested under this `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/query.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | &db.execute_batch(&sql).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 302 | let _ = &db.execute_batch(&sql).unwrap(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | &file.read_to_string(&mut content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 79 | let _ = &file.read_to_string(&mut content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | &file.read_to_string(&mut content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 209 | let _ = &file.read_to_string(&mut content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | &file.read_to_string(&mut status_content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 282 | let _ = &file.read_to_string(&mut status_content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:323:13 [INFO] [stdout] | [INFO] [stdout] 323 | &file.read_to_string(&mut stat_content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 323 | let _ = &file.read_to_string(&mut stat_content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/linux/processes.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | &file.read_to_string(&mut io_content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 359 | let _ = &file.read_to_string(&mut io_content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 18.30s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/siquery-e200426a0c26f316) [INFO] running `Command { std: "docker" "inspect" "6689baa6ed6f3ffef283ed059ba7738d776ca89055acb449fa0a95fa11fb5aca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6689baa6ed6f3ffef283ed059ba7738d776ca89055acb449fa0a95fa11fb5aca", kill_on_drop: false }` [INFO] [stdout] 6689baa6ed6f3ffef283ed059ba7738d776ca89055acb449fa0a95fa11fb5aca