[INFO] fetching crate libalpm 0.1.2... [INFO] checking libalpm-0.1.2 against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] extracting crate libalpm 0.1.2 into /workspace/builds/worker-14/source [INFO] validating manifest of crates.io crate libalpm 0.1.2 on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "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-14/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 09d8d4d0335c03d9752482111f92b1eb681d4049b11ae9c578afed9e48b141a3 [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" "09d8d4d0335c03d9752482111f92b1eb681d4049b11ae9c578afed9e48b141a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "09d8d4d0335c03d9752482111f92b1eb681d4049b11ae9c578afed9e48b141a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09d8d4d0335c03d9752482111f92b1eb681d4049b11ae9c578afed9e48b141a3", kill_on_drop: false }` [INFO] [stdout] 09d8d4d0335c03d9752482111f92b1eb681d4049b11ae9c578afed9e48b141a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 671a048d0cd1a336abff481f72704c4842c768c37ba81311012a0e12adf58e89 [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" "671a048d0cd1a336abff481f72704c4842c768c37ba81311012a0e12adf58e89", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling curl v0.4.34 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking term v0.4.6 [INFO] [stderr] Checking tinyvec v1.1.0 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling libarchive3-sys v0.1.2 [INFO] [stderr] Compiling printf v0.1.0 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Compiling libz-sys v1.1.2 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Compiling curl-sys v0.4.39+curl-7.74.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking alpm-sys v0.1.2 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking chrono v0.3.0 [INFO] [stderr] Checking url v1.7.2 [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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/package.rs:40:69 [INFO] [stdout] | [INFO] [stdout] 40 | ... CString::new(filename).unwrap().as_ptr(), [INFO] [stdout] | ------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [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] [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: `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: 2 warnings emitted [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: 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: 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: 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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/package.rs:40:69 [INFO] [stdout] | [INFO] [stdout] 40 | ... CString::new(filename).unwrap().as_ptr(), [INFO] [stdout] | ------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [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: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 44.10s [INFO] running `Command { std: "docker" "inspect" "671a048d0cd1a336abff481f72704c4842c768c37ba81311012a0e12adf58e89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "671a048d0cd1a336abff481f72704c4842c768c37ba81311012a0e12adf58e89", kill_on_drop: false }` [INFO] [stdout] 671a048d0cd1a336abff481f72704c4842c768c37ba81311012a0e12adf58e89