[INFO] cloning repository https://github.com/Wcubed/asset_keeper [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Wcubed/asset_keeper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWcubed%2Fasset_keeper", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWcubed%2Fasset_keeper'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 23526b40bdf5b47c75b0fc7bd4fe51b52a252d41 [INFO] checking Wcubed/asset_keeper against try#18c1d185ac7a6a3bf399296b35e4b2736809a756 for pr-146972 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWcubed%2Fasset_keeper" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Wcubed/asset_keeper [INFO] finished tweaking git repo https://github.com/Wcubed/asset_keeper [INFO] tweaked toml for git repo https://github.com/Wcubed/asset_keeper written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Wcubed/asset_keeper on toolchain 18c1d185ac7a6a3bf399296b35e4b2736809a756 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+18c1d185ac7a6a3bf399296b35e4b2736809a756" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Wcubed/asset_keeper 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" "+18c1d185ac7a6a3bf399296b35e4b2736809a756" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded naughty-strings v0.2.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+18c1d185ac7a6a3bf399296b35e4b2736809a756" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c5c4a56f9fb534e21bf1741185fa0bf1147837c3879df31d23af8a8d7b71f67d [INFO] running `Command { std: "docker" "start" "-a" "c5c4a56f9fb534e21bf1741185fa0bf1147837c3879df31d23af8a8d7b71f67d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c5c4a56f9fb534e21bf1741185fa0bf1147837c3879df31d23af8a8d7b71f67d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5c4a56f9fb534e21bf1741185fa0bf1147837c3879df31d23af8a8d7b71f67d", kill_on_drop: false }` [INFO] [stdout] c5c4a56f9fb534e21bf1741185fa0bf1147837c3879df31d23af8a8d7b71f67d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+18c1d185ac7a6a3bf399296b35e4b2736809a756" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18bc6419e891bed519aca12ff4d88b271b4ad4b8abc306c94a8a1c43f6cfcc81 [INFO] running `Command { std: "docker" "start" "-a" "18bc6419e891bed519aca12ff4d88b271b4ad4b8abc306c94a8a1c43f6cfcc81", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Compiling serde v1.0.115 [INFO] [stderr] Compiling anyhow v1.0.32 [INFO] [stderr] Checking ppv-lite86 v0.2.9 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking asset_keeper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Data` is never constructed [INFO] [stdout] --> src/data.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Data { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_file_from_disk`, `file_count`, `file_iter`, and `get_file_info` are never used [INFO] [stdout] --> src/data.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Data { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn new(save_dir: &Path, files_dir: &Path) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn add_file_from_disk(&mut self, title: &str, file: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn file_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn file_iter(&self) -> Iter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn get_file_info(&self, id: FileId) -> Option<&File> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileId` is never constructed [INFO] [stdout] --> src/stores/file_store.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct FileId(u32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/stores/file_store.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl FileId { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 13 | fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileStore` is never constructed [INFO] [stdout] --> src/stores/file_store.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FileStore { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `new_file` are never used [INFO] [stdout] --> src/stores/file_store.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl FileStore { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 26 | pub fn new() -> FileStore { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn new_file(&mut self, title: &str, extension: KnownExtension) -> (FileId, PathBuf) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `File` is never constructed [INFO] [stdout] --> src/stores/file_store.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct File { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `title`, `extension`, `file_name`, and `system_tags` are never used [INFO] [stdout] --> src/stores/file_store.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl File { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 85 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn extension(&self) -> &KnownExtension { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn file_name(&self) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn system_tags(&self) -> &HashSet { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `KnownExtension` is never used [INFO] [stdout] --> src/stores/file_store.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum KnownExtension { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_str`, `from_path`, and `to_str` are never used [INFO] [stdout] --> src/stores/file_store.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 109 | impl KnownExtension { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn from_str(string: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn from_path(path: &Path) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn to_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SystemTag` is never used [INFO] [stdout] --> src/stores/file_store.rs:133:10 [INFO] [stdout] | [INFO] [stdout] 133 | pub enum SystemTag { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IndexedStore` is never used [INFO] [stdout] --> src/stores/traits.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait IndexedStore { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `StoreId` is never used [INFO] [stdout] --> src/stores/traits.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait StoreId: Eq + PartialEq + Hash + Copy + Clone {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/data.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn file_iter(&self) -> Iter { [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] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 70 | pub fn file_iter(&self) -> Iter<'_, FileId, File> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/stores/file_store.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | fn iter(&self) -> Iter { [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] 72 | fn iter(&self) -> Iter<'_, Self::Id, Self::Item> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/stores/traits.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | fn iter(&self) -> Iter; [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] 14 | fn iter(&self) -> Iter<'_, Self::Id, Self::Item>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Checking serde_json v1.0.57 [INFO] [stderr] Checking naughty-strings v0.2.3 [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/data.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let data = Data::new(&save_dir, &file_dir); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `save_dir` is never read [INFO] [stdout] --> src/data.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Data { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 8 | save_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `file_iter` is never used [INFO] [stdout] --> src/data.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Data { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn file_iter(&self) -> Iter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `system_tags` is never read [INFO] [stdout] --> src/stores/file_store.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct File { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 81 | system_tags: HashSet, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `extension` and `system_tags` are never used [INFO] [stdout] --> src/stores/file_store.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl File { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn extension(&self) -> &KnownExtension { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn system_tags(&self) -> &HashSet { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Transparent` is never constructed [INFO] [stdout] --> src/stores/file_store.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub enum SystemTag { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 134 | /// Indicates an image that has some kind of transparency to it. [INFO] [stdout] 135 | Transparent, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SystemTag` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `iter` is never used [INFO] [stdout] --> src/stores/traits.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait IndexedStore { [INFO] [stdout] | ------------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | fn iter(&self) -> Iter; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/data.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn file_iter(&self) -> Iter { [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] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 70 | pub fn file_iter(&self) -> Iter<'_, FileId, File> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/stores/file_store.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | fn iter(&self) -> Iter { [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] 72 | fn iter(&self) -> Iter<'_, Self::Id, Self::Item> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/stores/traits.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | fn iter(&self) -> Iter; [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] 14 | fn iter(&self) -> Iter<'_, Self::Id, Self::Item>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.16s [INFO] running `Command { std: "docker" "inspect" "18bc6419e891bed519aca12ff4d88b271b4ad4b8abc306c94a8a1c43f6cfcc81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18bc6419e891bed519aca12ff4d88b271b4ad4b8abc306c94a8a1c43f6cfcc81", kill_on_drop: false }` [INFO] [stdout] 18bc6419e891bed519aca12ff4d88b271b4ad4b8abc306c94a8a1c43f6cfcc81