[INFO] fetching crate libimagstore 0.10.1... [INFO] checking libimagstore-0.10.1 against master#020bbe46bdf613c0b8211984eaa8e5fe97d6c92d for pr-122960 [INFO] extracting crate libimagstore 0.10.1 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate libimagstore 0.10.1 on toolchain 020bbe46bdf613c0b8211984eaa8e5fe97d6c92d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+020bbe46bdf613c0b8211984eaa8e5fe97d6c92d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate libimagstore 0.10.1 [INFO] finished tweaking crates.io crate libimagstore 0.10.1 [INFO] tweaked toml for crates.io crate libimagstore 0.10.1 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+020bbe46bdf613c0b8211984eaa8e5fe97d6c92d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+020bbe46bdf613c0b8211984eaa8e5fe97d6c92d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded darling_macro v0.8.6 [INFO] [stderr] Downloaded toml-query_derive v0.9.2 [INFO] [stderr] Downloaded toml-query v0.9.2 [INFO] [stderr] Downloaded libimagerror v0.10.1 [INFO] [stderr] Downloaded libimagutil v0.10.1 [INFO] [stderr] Downloaded darling v0.8.6 [INFO] [stderr] Downloaded is-match v0.1.0 [INFO] [stderr] Downloaded darling_core v0.8.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+020bbe46bdf613c0b8211984eaa8e5fe97d6c92d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 74a0061f27d0fd7ca3f7c69c65bd86ffe0f4ec3154c8672277893f40c98b9092 [INFO] running `Command { std: "docker" "start" "-a" "74a0061f27d0fd7ca3f7c69c65bd86ffe0f4ec3154c8672277893f40c98b9092", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "74a0061f27d0fd7ca3f7c69c65bd86ffe0f4ec3154c8672277893f40c98b9092", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74a0061f27d0fd7ca3f7c69c65bd86ffe0f4ec3154c8672277893f40c98b9092", kill_on_drop: false }` [INFO] [stdout] 74a0061f27d0fd7ca3f7c69c65bd86ffe0f4ec3154c8672277893f40c98b9092 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+020bbe46bdf613c0b8211984eaa8e5fe97d6c92d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6e4a091182f233c86ecab37aca8556cc7ea45ec9ed3e0a2f8d76f25ab681fa5d [INFO] running `Command { std: "docker" "start" "-a" "6e4a091182f233c86ecab37aca8556cc7ea45ec9ed3e0a2f8d76f25ab681fa5d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling cc v1.0.90 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking gimli v0.28.1 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking object v0.32.2 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling backtrace v0.3.71 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Checking addr2line v0.21.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking fastrand v2.0.2 [INFO] [stderr] Checking chrono v0.4.35 [INFO] [stderr] Compiling darling_core v0.8.6 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking is-match v0.1.0 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking tempfile v3.10.1 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking boolinator v2.4.0 [INFO] [stderr] Checking semver-parser v0.7.0 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking semver v0.9.0 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking libimagutil v0.10.1 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking tempdir v0.3.7 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking libimagerror v0.10.1 [INFO] [stderr] Compiling darling_macro v0.8.6 [INFO] [stderr] Compiling darling v0.8.6 [INFO] [stderr] Compiling toml-query_derive v0.9.2 [INFO] [stderr] Checking toml-query v0.9.2 [INFO] [stderr] Checking libimagstore v0.10.1 (/opt/rustwide/workdir) [INFO] [stdout] error: unnecessary qualification [INFO] [stdout] --> src/storeid.rs:350:17 [INFO] [stdout] | [INFO] [stdout] 350 | let p = crate::storeid::test::module_path::new_id("test"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | unused_qualifications, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 350 - let p = crate::storeid::test::module_path::new_id("test"); [INFO] [stdout] 350 + let p = module_path::new_id("test"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary qualification [INFO] [stdout] --> src/storeid.rs:357:17 [INFO] [stdout] | [INFO] [stdout] 357 | let p = crate::storeid::test::module_path::new_id("1/2/3/4/5/6/7/8/9/0").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 357 - let p = crate::storeid::test::module_path::new_id("1/2/3/4/5/6/7/8/9/0").unwrap(); [INFO] [stdout] 357 + let p = module_path::new_id("1/2/3/4/5/6/7/8/9/0").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `Drop` is imported redundantly [INFO] [stdout] --> src/store.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use std::ops::Drop; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Drop` is already defined here [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | unused_imports, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `Drop` is imported redundantly [INFO] [stdout] --> src/store.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use std::ops::Drop; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Drop` is already defined here [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | unused_imports, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: methods `drain` and `fill` are never used [INFO] [stdout] --> src/file_abstraction/mod.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub(crate) trait FileAbstraction : Debug { [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 48 | fn drain(&self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 49 | fn fill(&mut self, d: Drain) -> Result<()>; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | dead_code, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Drain` is never constructed [INFO] [stdout] --> src/file_abstraction/mod.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Drain(HashMap); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: associated items `new`, `empty`, and `iter` are never used [INFO] [stdout] --> src/file_abstraction/mod.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl Drain { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 68 | [INFO] [stdout] 69 | pub fn new(hm: HashMap) -> Drain { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn empty() -> Drain { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn iter(&mut self) -> DrainIter<'_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: method `backend_cloned` is never used [INFO] [stdout] --> src/file_abstraction/inmemory.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 96 | impl InMemoryFileAbstraction { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | fn backend_cloned(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `libimagstore` (lib) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: methods `drain` and `fill` are never used [INFO] [stdout] --> src/file_abstraction/mod.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub(crate) trait FileAbstraction : Debug { [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 48 | fn drain(&self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 49 | fn fill(&mut self, d: Drain) -> Result<()>; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | dead_code, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Drain` is never constructed [INFO] [stdout] --> src/file_abstraction/mod.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Drain(HashMap); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: associated items `new`, `empty`, and `iter` are never used [INFO] [stdout] --> src/file_abstraction/mod.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl Drain { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 68 | [INFO] [stdout] 69 | pub fn new(hm: HashMap) -> Drain { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn empty() -> Drain { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn iter(&mut self) -> DrainIter<'_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: method `backend_cloned` is never used [INFO] [stdout] --> src/file_abstraction/inmemory.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 96 | impl InMemoryFileAbstraction { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | fn backend_cloned(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `libimagstore` (lib test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "6e4a091182f233c86ecab37aca8556cc7ea45ec9ed3e0a2f8d76f25ab681fa5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e4a091182f233c86ecab37aca8556cc7ea45ec9ed3e0a2f8d76f25ab681fa5d", kill_on_drop: false }` [INFO] [stdout] 6e4a091182f233c86ecab37aca8556cc7ea45ec9ed3e0a2f8d76f25ab681fa5d