[INFO] cloning repository https://github.com/paritytech/subdb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/paritytech/subdb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparitytech%2Fsubdb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparitytech%2Fsubdb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 353bd49a95e618641b552fe890b272f0feb6d752 [INFO] checking paritytech/subdb against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparitytech%2Fsubdb" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/paritytech/subdb [INFO] finished tweaking git repo https://github.com/paritytech/subdb [INFO] tweaked toml for git repo https://github.com/paritytech/subdb written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/paritytech/subdb on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/paritytech/subdb already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c547c2b29975a61e42f9809f9a1186208506fcd46aa39cfacb96cb0d89c106b5 [INFO] running `Command { std: "docker" "start" "-a" "c547c2b29975a61e42f9809f9a1186208506fcd46aa39cfacb96cb0d89c106b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c547c2b29975a61e42f9809f9a1186208506fcd46aa39cfacb96cb0d89c106b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c547c2b29975a61e42f9809f9a1186208506fcd46aa39cfacb96cb0d89c106b5", kill_on_drop: false }` [INFO] [stdout] c547c2b29975a61e42f9809f9a1186208506fcd46aa39cfacb96cb0d89c106b5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 47f791f3cac7553af2f06ad56ac4816a8702e39e7c688ea12e82be1833e4b6c7 [INFO] running `Command { std: "docker" "start" "-a" "47f791f3cac7553af2f06ad56ac4816a8702e39e7c688ea12e82be1833e4b6c7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling serde v1.0.105 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling ryu v1.0.3 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking regex-syntax v0.6.17 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking smallvec v1.2.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking lock_api v0.3.3 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking radium v0.3.0 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking arrayvec v0.5.1 [INFO] [stderr] Checking bitvec v0.17.4 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking byte-slice-cast v0.3.5 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Checking blake2-rfc v0.2.18 [INFO] [stderr] Checking remove_dir_all v0.5.2 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking num_cpus v1.12.0 [INFO] [stderr] Checking parking_lot_core v0.7.0 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking crossbeam-queue v0.2.1 [INFO] [stderr] Checking term v0.6.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking hash-db v0.15.2 [INFO] [stderr] Checking parking_lot v0.10.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking oorandom v11.1.0 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking plotters v0.2.12 [INFO] [stderr] Checking criterion-plot v0.4.1 [INFO] [stderr] Checking regex v1.3.6 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking rayon v1.3.0 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking simplelog v0.7.5 [INFO] [stderr] Checking twox-hash v1.5.0 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Checking serde_json v1.0.50 [INFO] [stderr] Checking bstr v0.2.12 [INFO] [stderr] Compiling toml v0.5.6 [INFO] [stderr] Checking csv v1.1.3 [INFO] [stderr] Checking tinytemplate v1.0.3 [INFO] [stderr] Compiling proc-macro-crate v0.1.4 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling impl-trait-for-tuples v0.1.3 [INFO] [stderr] Compiling parity-util-mem-derive v0.1.0 [INFO] [stderr] Compiling parity-scale-codec-derive v1.2.0 [INFO] [stderr] Compiling derive_more v0.99.5 [INFO] [stderr] Compiling serde_derive v1.0.105 [INFO] [stderr] Checking parity-scale-codec v1.3.0 [INFO] [stderr] Checking parity-util-mem v0.6.0 [INFO] [stderr] Checking kvdb v0.5.0 [INFO] [stderr] Checking sp-database v2.0.0-alpha.5 (https://github.com/paritytech/substrate?branch=gav-db-trait#ad4b0107) [INFO] [stderr] Checking subdb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/content_address.rs:6:55 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Encode, Decode)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Encode` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Encode` may come from an old version of the `parity_scale_codec_derive` crate, try updating your dependency with `cargo update -p parity_scale_codec_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Encode` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/content_address.rs:6:63 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Encode, Decode)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Decode` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Decode` may come from an old version of the `parity_scale_codec_derive` crate, try updating your dependency with `cargo update -p parity_scale_codec_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Decode` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/table.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Clone, Copy, Encode, Decode, Debug)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Encode` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Encode` may come from an old version of the `parity_scale_codec_derive` crate, try updating your dependency with `cargo update -p parity_scale_codec_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Encode` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/table.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Clone, Copy, Encode, Decode, Debug)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Decode` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Decode` may come from an old version of the `parity_scale_codec_derive` crate, try updating your dependency with `cargo update -p parity_scale_codec_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Decode` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking criterion v0.3.1 [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/index.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 124 | 17..=32 => u32::from_le_bytes(hash[..4].try_into().expect("hash len must be >=4")) as usize, [INFO] [stdout] | ------- this range overlaps on `32_usize`... [INFO] [stdout] 125 | 32..=64 => u64::from_le_bytes(hash[..8].try_into().expect("hash len must be >=8")) as usize, [INFO] [stdout] | ^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] = note: `#[warn(overlapping_range_endpoints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blake2Output` is never constructed [INFO] [stdout] --> src/types.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Blake2Output(pub T); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/content.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn item_ref(&self, address: &ContentAddress, check_hash: Option<&K>) -> Result, ()> { [INFO] [stdout] | ^^^^^ the lifetime is elided here --------------------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 51 | pub fn item_ref(&self, address: &ContentAddress, check_hash: Option<&K>) -> Result, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/database.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn get_ref(&self, hash: &K) -> Option> { [INFO] [stdout] | ^^^^^ --------------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 197 | pub fn get_ref(&self, hash: &K) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/table.rs:270:19 [INFO] [stdout] | [INFO] [stdout] 270 | ...mapped(&self, i: TableItemIndex, create: Option) -> Result>>, ()> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ----------------------------------------------------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 270 | fn ensure_mapped(&self, i: TableItemIndex, create: Option) -> Result>>, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/table.rs:275:39 [INFO] [stdout] | [INFO] [stdout] 275 | let maps = if maps.get(i).ok_or(())?.deref().is_some() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option<(MmapMut, AtomicU64)>` does not implement `Deref`, so calling `deref` on `&Option<(MmapMut, AtomicU64)>` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 275 - let maps = if maps.get(i).ok_or(())?.deref().is_some() { [INFO] [stdout] 275 + let maps = if maps.get(i).ok_or(())?.is_some() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/content_address.rs:6:55 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Encode, Decode)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Encode` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Encode` may come from an old version of the `parity_scale_codec_derive` crate, try updating your dependency with `cargo update -p parity_scale_codec_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Encode` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/content_address.rs:6:63 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Encode, Decode)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Decode` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Decode` may come from an old version of the `parity_scale_codec_derive` crate, try updating your dependency with `cargo update -p parity_scale_codec_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Decode` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/table.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Clone, Copy, Encode, Decode, Debug)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Encode` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Encode` may come from an old version of the `parity_scale_codec_derive` crate, try updating your dependency with `cargo update -p parity_scale_codec_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Encode` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/table.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Clone, Copy, Encode, Decode, Debug)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Decode` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Decode` may come from an old version of the `parity_scale_codec_derive` crate, try updating your dependency with `cargo update -p parity_scale_codec_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Decode` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0438]: const `SIZE` is not a member of trait `KeyType` [INFO] [stdout] --> benches/my_benchmark.rs:13:2 [INFO] [stdout] | [INFO] [stdout] 13 | const SIZE: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `KeyType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_data` is not a member of trait `KeyType` [INFO] [stdout] --> benches/my_benchmark.rs:14:2 [INFO] [stdout] | [INFO] [stdout] 14 | / fn from_data(data: &[u8]) -> Self { [INFO] [stdout] 15 | | let mut key = [0u8; 32]; [INFO] [stdout] 16 | | let mut h = XxHash64::with_seed(0); [INFO] [stdout] 17 | | h.write(data); [INFO] [stdout] ... | [INFO] [stdout] 23 | | Self(key) [INFO] [stdout] 24 | | } [INFO] [stdout] | |_____^ not a member of trait `KeyType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> benches/my_benchmark.rs:9:49 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Encode, Decode, Debug)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Encode` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Encode` may come from an old version of the `parity_scale_codec_derive` crate, try updating your dependency with `cargo update -p parity_scale_codec_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Encode` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> benches/my_benchmark.rs:9:57 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Encode, Decode, Debug)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Decode` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Decode` may come from an old version of the `parity_scale_codec_derive` crate, try updating your dependency with `cargo update -p parity_scale_codec_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Decode` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Xx256: Default` is not satisfied [INFO] [stdout] --> benches/my_benchmark.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl KeyType for Xx256 { [INFO] [stdout] | ^^^^^ the trait `Default` is not implemented for `Xx256` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `KeyType` [INFO] [stdout] --> /opt/rustwide/workdir/src/types.rs:8:48 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait KeyType: AsRef<[u8]> + AsMut<[u8]> + Default + Eq + PartialEq + Clone + Debug + Send + Sync {} [INFO] [stdout] | ^^^^^^^ required by this bound in `KeyType` [INFO] [stdout] help: consider annotating `Xx256` with `#[derive(Default)]` [INFO] [stdout] | [INFO] [stdout] 10 + #[derive(Default)] [INFO] [stdout] 11 | struct Xx256([u8; 32]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_data` found for array `[u8; 32]` in the current scope [INFO] [stdout] --> benches/my_benchmark.rs:36:25 [INFO] [stdout] | [INFO] [stdout] 36 | let key = <[u8; 32]>::from_data(data.as_bytes()); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `[u8; 32]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 55 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:55:37 [INFO] [stdout] | [INFO] [stdout] 55 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:63:20 [INFO] [stdout] | [INFO] [stdout] 63 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:63:37 [INFO] [stdout] | [INFO] [stdout] 63 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 71 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:71:37 [INFO] [stdout] | [INFO] [stdout] 71 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:79:37 [INFO] [stdout] | [INFO] [stdout] 79 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:87:20 [INFO] [stdout] | [INFO] [stdout] 87 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:87:37 [INFO] [stdout] | [INFO] [stdout] 87 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:95:20 [INFO] [stdout] | [INFO] [stdout] 95 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:95:37 [INFO] [stdout] | [INFO] [stdout] 95 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:103:37 [INFO] [stdout] | [INFO] [stdout] 103 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/index.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 124 | 17..=32 => u32::from_le_bytes(hash[..4].try_into().expect("hash len must be >=4")) as usize, [INFO] [stdout] | ------- this range overlaps on `32_usize`... [INFO] [stdout] 125 | 32..=64 => u64::from_le_bytes(hash[..8].try_into().expect("hash len must be >=8")) as usize, [INFO] [stdout] | ^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] = note: `#[warn(overlapping_range_endpoints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 111 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:111:37 [INFO] [stdout] | [INFO] [stdout] 111 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:119:20 [INFO] [stdout] | [INFO] [stdout] 119 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:119:37 [INFO] [stdout] | [INFO] [stdout] 119 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:128:20 [INFO] [stdout] | [INFO] [stdout] 128 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:128:37 [INFO] [stdout] | [INFO] [stdout] 128 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:142:20 [INFO] [stdout] | [INFO] [stdout] 142 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:142:37 [INFO] [stdout] | [INFO] [stdout] 142 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:147:20 [INFO] [stdout] | [INFO] [stdout] 147 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:147:37 [INFO] [stdout] | [INFO] [stdout] 147 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/content.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn item_ref(&self, address: &ContentAddress, check_hash: Option<&K>) -> Result, ()> { [INFO] [stdout] | ^^^^^ the lifetime is elided here --------------------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 51 | pub fn item_ref(&self, address: &ContentAddress, check_hash: Option<&K>) -> Result, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/database.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn get_ref(&self, hash: &K) -> Option> { [INFO] [stdout] | ^^^^^ --------------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 197 | pub fn get_ref(&self, hash: &K) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/table.rs:270:19 [INFO] [stdout] | [INFO] [stdout] 270 | ...mapped(&self, i: TableItemIndex, create: Option) -> Result>>, ()> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ----------------------------------------------------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 270 | fn ensure_mapped(&self, i: TableItemIndex, create: Option) -> Result>>, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:156:20 [INFO] [stdout] | [INFO] [stdout] 156 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> benches/my_benchmark.rs:156:37 [INFO] [stdout] | [INFO] [stdout] 156 | db.insert(data.as_ref(), Some(k.clone())); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/table.rs:275:39 [INFO] [stdout] | [INFO] [stdout] 275 | let maps = if maps.get(i).ok_or(())?.deref().is_some() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option<(MmapMut, AtomicU64)>` does not implement `Deref`, so calling `deref` on `&Option<(MmapMut, AtomicU64)>` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 275 - let maps = if maps.get(i).ok_or(())?.deref().is_some() { [INFO] [stdout] 275 + let maps = if maps.get(i).ok_or(())?.is_some() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0407, E0438, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `subdb` (bench "my_benchmark") due to 30 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "47f791f3cac7553af2f06ad56ac4816a8702e39e7c688ea12e82be1833e4b6c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47f791f3cac7553af2f06ad56ac4816a8702e39e7c688ea12e82be1833e4b6c7", kill_on_drop: false }` [INFO] [stdout] 47f791f3cac7553af2f06ad56ac4816a8702e39e7c688ea12e82be1833e4b6c7