[INFO] fetching crate libalpm 0.1.2... [INFO] checking libalpm-0.1.2 against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] extracting crate libalpm 0.1.2 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate libalpm 0.1.2 on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate libalpm 0.1.2 [INFO] finished tweaking crates.io crate libalpm 0.1.2 [INFO] tweaked toml for crates.io crate libalpm 0.1.2 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded alpm-sys v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8e409602ab77bde772660e336865e3e338e3f8a32b84826d39bcbe1ad8d58542 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8e409602ab77bde772660e336865e3e338e3f8a32b84826d39bcbe1ad8d58542", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8e409602ab77bde772660e336865e3e338e3f8a32b84826d39bcbe1ad8d58542", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e409602ab77bde772660e336865e3e338e3f8a32b84826d39bcbe1ad8d58542", kill_on_drop: false }` [INFO] [stdout] 8e409602ab77bde772660e336865e3e338e3f8a32b84826d39bcbe1ad8d58542 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c1d4e239804578014da7bacc500d7185a8646e143b5c74efe2d4441f04c3786 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3c1d4e239804578014da7bacc500d7185a8646e143b5c74efe2d4441f04c3786", kill_on_drop: false }` [INFO] [stderr] Compiling curl v0.4.33 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking term v0.4.6 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling libz-sys v1.1.2 [INFO] [stderr] Compiling curl-sys v0.4.36+curl-7.71.1 [INFO] [stderr] Compiling libarchive3-sys v0.1.2 [INFO] [stderr] Compiling printf v0.1.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking socket2 v0.3.15 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking num-integer v0.1.43 [INFO] [stderr] Checking num-iter v0.1.41 [INFO] [stderr] Checking alpm-sys v0.1.2 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking chrono v0.3.0 [INFO] [stderr] Checking libalpm v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Package` [INFO] [stdout] --> src/event.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use package::{Package, PackageOperation}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/db.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use libc::{self, c_char}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 45 | static ref LOG_CB: Mutex>> = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(LogLevels, String) + Send` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 45 | static ref LOG_CB: Mutex>> = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(LogLevels, String) + Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:46:46 [INFO] [stdout] | [INFO] [stdout] 46 | static ref DOWNLOAD_CB: Mutex>> = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&str, u64, u64) + Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:47:43 [INFO] [stdout] | [INFO] [stdout] 47 | static ref FETCH_CB: Mutex DownloadResult + Send>>> = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&str, &str, bool) -> DownloadResult + Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:48:45 [INFO] [stdout] | [INFO] [stdout] 48 | static ref DLTOTAL_CB: Mutex>> = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(u64) + Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:49:43 [INFO] [stdout] | [INFO] [stdout] 49 | static ref EVENT_CB: Mutex>> = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(Event) + Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / lazy_static! { [INFO] [stdout] 45 | | static ref LOG_CB: Mutex>> = Default::default(); [INFO] [stdout] 46 | | static ref DOWNLOAD_CB: Mutex>> = Default::default(); [INFO] [stdout] 47 | | static ref FETCH_CB: Mutex DownloadResult + Send>>> = Default::default(); [INFO] [stdout] ... | [INFO] [stdout] 51 | | //static ref PROGRESS_CB: Mutex>> = Default::default(); [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / lazy_static! { [INFO] [stdout] 45 | | static ref LOG_CB: Mutex>> = Default::default(); [INFO] [stdout] 46 | | static ref DOWNLOAD_CB: Mutex>> = Default::default(); [INFO] [stdout] 47 | | static ref FETCH_CB: Mutex DownloadResult + Send>>> = Default::default(); [INFO] [stdout] ... | [INFO] [stdout] 51 | | //static ref PROGRESS_CB: Mutex>> = Default::default(); [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / lazy_static! { [INFO] [stdout] 45 | | static ref LOG_CB: Mutex>> = Default::default(); [INFO] [stdout] 46 | | static ref DOWNLOAD_CB: Mutex>> = Default::default(); [INFO] [stdout] 47 | | static ref FETCH_CB: Mutex DownloadResult + Send>>> = Default::default(); [INFO] [stdout] ... | [INFO] [stdout] 51 | | //static ref PROGRESS_CB: Mutex>> = Default::default(); [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / lazy_static! { [INFO] [stdout] 45 | | static ref LOG_CB: Mutex>> = Default::default(); [INFO] [stdout] 46 | | static ref DOWNLOAD_CB: Mutex>> = Default::default(); [INFO] [stdout] 47 | | static ref FETCH_CB: Mutex DownloadResult + Send>>> = Default::default(); [INFO] [stdout] ... | [INFO] [stdout] 51 | | //static ref PROGRESS_CB: Mutex>> = Default::default(); [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / lazy_static! { [INFO] [stdout] 45 | | static ref LOG_CB: Mutex>> = Default::default(); [INFO] [stdout] 46 | | static ref DOWNLOAD_CB: Mutex>> = Default::default(); [INFO] [stdout] 47 | | static ref FETCH_CB: Mutex DownloadResult + Send>>> = Default::default(); [INFO] [stdout] ... | [INFO] [stdout] 51 | | //static ref PROGRESS_CB: Mutex>> = Default::default(); [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:203:30 [INFO] [stdout] | [INFO] [stdout] 203 | write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/package.rs:734:13 [INFO] [stdout] | [INFO] [stdout] 733 | ALPM_PKG_VALIDATION_UNKNWON => Validation::Unknown, [INFO] [stdout] | --------------------------- matches any value [INFO] [stdout] 734 | ALPM_PKG_VALIDATION_NONE => Validation::None, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/package.rs:735:13 [INFO] [stdout] | [INFO] [stdout] 733 | ALPM_PKG_VALIDATION_UNKNWON => Validation::Unknown, [INFO] [stdout] | --------------------------- matches any value [INFO] [stdout] 734 | ALPM_PKG_VALIDATION_NONE => Validation::None, [INFO] [stdout] 735 | other => Validation::Some(ValidationMethod { [INFO] [stdout] | ^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> src/lib.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn with_options(options: &Options) -> AlpmResult { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/lib.rs:227:40 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn question_function(&self, func: F) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/lib.rs:239:40 [INFO] [stdout] | [INFO] [stdout] 239 | pub fn progress_function(&self, func: F) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ALPM_PKG_VALIDATION_UNKNWON` [INFO] [stdout] --> src/package.rs:733:13 [INFO] [stdout] | [INFO] [stdout] 733 | ALPM_PKG_VALIDATION_UNKNWON => Validation::Unknown, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ALPM_PKG_VALIDATION_UNKNWON` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/package.rs:735:13 [INFO] [stdout] | [INFO] [stdout] 735 | other => Validation::Some(ValidationMethod { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/package.rs:832:13 [INFO] [stdout] | [INFO] [stdout] 832 | for i in 0..count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loc` [INFO] [stdout] --> src/options.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn from_ini(loc: &Path) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_loc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/util.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let first = raw; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/util.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | let mut p = libc::calloc(len + 1, mem::size_of::()) as *mut libc::c_char; [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: unnecessary `unsafe` block [INFO] [stdout] --> src/db.rs:66:54 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 66 | let list = vec_to_alpm_list(servers, |s| unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `handle` [INFO] [stdout] --> src/package.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | handle: &'a Alpm [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/package.rs:512:26 [INFO] [stdout] | [INFO] [stdout] 512 | pub(crate) unsafe fn new<'b>(name: *const c_char, packages: *const alpm_list_t) -> Group<'b> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `pub_restricted` has been stable since 1.18.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(pub_restricted)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ALPM_PKG_VALIDATION_UNKNWON` should have a snake case name [INFO] [stdout] --> src/package.rs:733:13 [INFO] [stdout] | [INFO] [stdout] 733 | ALPM_PKG_VALIDATION_UNKNWON => Validation::Unknown, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `alpm_pkg_validation_unknwon` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loc` [INFO] [stdout] --> examples/download_package.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | fn fetch(url: &str, loc: &str, force: bool) -> DownloadResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_loc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `force` [INFO] [stdout] --> examples/download_package.rs:13:32 [INFO] [stdout] | [INFO] [stdout] 13 | fn fetch(url: &str, loc: &str, force: bool) -> DownloadResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_force` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Package` [INFO] [stdout] --> src/event.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use package::{Package, PackageOperation}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/db.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use libc::{self, c_char}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 45 | static ref LOG_CB: Mutex>> = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(LogLevels, String) + Send` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 45 | static ref LOG_CB: Mutex>> = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(LogLevels, String) + Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:46:46 [INFO] [stdout] | [INFO] [stdout] 46 | static ref DOWNLOAD_CB: Mutex>> = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&str, u64, u64) + Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:47:43 [INFO] [stdout] | [INFO] [stdout] 47 | static ref FETCH_CB: Mutex DownloadResult + Send>>> = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&str, &str, bool) -> DownloadResult + Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:48:45 [INFO] [stdout] | [INFO] [stdout] 48 | static ref DLTOTAL_CB: Mutex>> = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(u64) + Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:49:43 [INFO] [stdout] | [INFO] [stdout] 49 | static ref EVENT_CB: Mutex>> = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(Event) + Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / lazy_static! { [INFO] [stdout] 45 | | static ref LOG_CB: Mutex>> = Default::default(); [INFO] [stdout] 46 | | static ref DOWNLOAD_CB: Mutex>> = Default::default(); [INFO] [stdout] 47 | | static ref FETCH_CB: Mutex DownloadResult + Send>>> = Default::default(); [INFO] [stdout] ... | [INFO] [stdout] 51 | | //static ref PROGRESS_CB: Mutex>> = Default::default(); [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / lazy_static! { [INFO] [stdout] 45 | | static ref LOG_CB: Mutex>> = Default::default(); [INFO] [stdout] 46 | | static ref DOWNLOAD_CB: Mutex>> = Default::default(); [INFO] [stdout] 47 | | static ref FETCH_CB: Mutex DownloadResult + Send>>> = Default::default(); [INFO] [stdout] ... | [INFO] [stdout] 51 | | //static ref PROGRESS_CB: Mutex>> = Default::default(); [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / lazy_static! { [INFO] [stdout] 45 | | static ref LOG_CB: Mutex>> = Default::default(); [INFO] [stdout] 46 | | static ref DOWNLOAD_CB: Mutex>> = Default::default(); [INFO] [stdout] 47 | | static ref FETCH_CB: Mutex DownloadResult + Send>>> = Default::default(); [INFO] [stdout] ... | [INFO] [stdout] 51 | | //static ref PROGRESS_CB: Mutex>> = Default::default(); [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / lazy_static! { [INFO] [stdout] 45 | | static ref LOG_CB: Mutex>> = Default::default(); [INFO] [stdout] 46 | | static ref DOWNLOAD_CB: Mutex>> = Default::default(); [INFO] [stdout] 47 | | static ref FETCH_CB: Mutex DownloadResult + Send>>> = Default::default(); [INFO] [stdout] ... | [INFO] [stdout] 51 | | //static ref PROGRESS_CB: Mutex>> = Default::default(); [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / lazy_static! { [INFO] [stdout] 45 | | static ref LOG_CB: Mutex>> = Default::default(); [INFO] [stdout] 46 | | static ref DOWNLOAD_CB: Mutex>> = Default::default(); [INFO] [stdout] 47 | | static ref FETCH_CB: Mutex DownloadResult + Send>>> = Default::default(); [INFO] [stdout] ... | [INFO] [stdout] 51 | | //static ref PROGRESS_CB: Mutex>> = Default::default(); [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> examples/package.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:203:30 [INFO] [stdout] | [INFO] [stdout] 203 | write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> examples/package.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | db.add_server(&fixed_servers.next().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/package.rs:734:13 [INFO] [stdout] | [INFO] [stdout] 733 | ALPM_PKG_VALIDATION_UNKNWON => Validation::Unknown, [INFO] [stdout] | --------------------------- matches any value [INFO] [stdout] 734 | ALPM_PKG_VALIDATION_NONE => Validation::None, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/package.rs:735:13 [INFO] [stdout] | [INFO] [stdout] 733 | ALPM_PKG_VALIDATION_UNKNWON => Validation::Unknown, [INFO] [stdout] | --------------------------- matches any value [INFO] [stdout] 734 | ALPM_PKG_VALIDATION_NONE => Validation::None, [INFO] [stdout] 735 | other => Validation::Some(ValidationMethod { [INFO] [stdout] | ^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> src/lib.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn with_options(options: &Options) -> AlpmResult { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/lib.rs:227:40 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn question_function(&self, func: F) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/lib.rs:239:40 [INFO] [stdout] | [INFO] [stdout] 239 | pub fn progress_function(&self, func: F) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ALPM_PKG_VALIDATION_UNKNWON` [INFO] [stdout] --> src/package.rs:733:13 [INFO] [stdout] | [INFO] [stdout] 733 | ALPM_PKG_VALIDATION_UNKNWON => Validation::Unknown, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ALPM_PKG_VALIDATION_UNKNWON` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/package.rs:735:13 [INFO] [stdout] | [INFO] [stdout] 735 | other => Validation::Some(ValidationMethod { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/package.rs:832:13 [INFO] [stdout] | [INFO] [stdout] 832 | for i in 0..count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loc` [INFO] [stdout] --> src/options.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn from_ini(loc: &Path) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_loc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/util.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let first = raw; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/util.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | let mut p = libc::calloc(len + 1, mem::size_of::()) as *mut libc::c_char; [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: unnecessary `unsafe` block [INFO] [stdout] --> src/package.rs:575:5 [INFO] [stdout] | [INFO] [stdout] 575 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/db.rs:66:54 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 66 | let list = vec_to_alpm_list(servers, |s| unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `handle` [INFO] [stdout] --> src/package.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | handle: &'a Alpm [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/package.rs:512:26 [INFO] [stdout] | [INFO] [stdout] 512 | pub(crate) unsafe fn new<'b>(name: *const c_char, packages: *const alpm_list_t) -> Group<'b> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `pub_restricted` has been stable since 1.18.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(pub_restricted)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ALPM_PKG_VALIDATION_UNKNWON` should have a snake case name [INFO] [stdout] --> src/package.rs:733:13 [INFO] [stdout] | [INFO] [stdout] 733 | ALPM_PKG_VALIDATION_UNKNWON => Validation::Unknown, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `alpm_pkg_validation_unknwon` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 29.67s [INFO] running `Command { std: "docker" "inspect" "3c1d4e239804578014da7bacc500d7185a8646e143b5c74efe2d4441f04c3786", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c1d4e239804578014da7bacc500d7185a8646e143b5c74efe2d4441f04c3786", kill_on_drop: false }` [INFO] [stdout] 3c1d4e239804578014da7bacc500d7185a8646e143b5c74efe2d4441f04c3786