[INFO] fetching crate rpmrepo_metadata 0.3.0... [INFO] testing rpmrepo_metadata-0.3.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate rpmrepo_metadata 0.3.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate rpmrepo_metadata 0.3.0 [INFO] removed 1 missing tests [INFO] finished tweaking crates.io crate rpmrepo_metadata 0.3.0 [INFO] tweaked toml for crates.io crate rpmrepo_metadata 0.3.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rpmrepo_metadata 0.3.0 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 150 packages to latest compatible versions [INFO] [stderr] Adding criterion v0.5.1 (available: v0.8.2) [INFO] [stderr] Adding digest v0.10.7 (available: v0.11.2) [INFO] [stderr] Adding generic-array v0.14.7 (available: v0.14.9) [INFO] [stderr] Adding md-5 v0.10.6 (available: v0.11.0) [INFO] [stderr] Adding niffler v2.5.0 (available: v2.7.0) [INFO] [stderr] Adding pyo3 v0.20.3 (available: v0.28.3) [INFO] [stderr] Adding quick-xml v0.23.1 (available: v0.39.2) [INFO] [stderr] Adding rpm v0.12.1 (available: v0.20.0) [INFO] [stderr] Adding sha1 v0.10.6 (available: v0.11.0) [INFO] [stderr] Adding sha2 v0.10.9 (available: v0.11.0) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.18) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ee7ebdc8d015ebf31950e8af00d2175f7fa7615cb30a6d9969f64669b77cdf73 [INFO] running `Command { std: "docker" "start" "-a" "ee7ebdc8d015ebf31950e8af00d2175f7fa7615cb30a6d9969f64669b77cdf73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ee7ebdc8d015ebf31950e8af00d2175f7fa7615cb30a6d9969f64669b77cdf73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee7ebdc8d015ebf31950e8af00d2175f7fa7615cb30a6d9969f64669b77cdf73", kill_on_drop: false }` [INFO] [stdout] ee7ebdc8d015ebf31950e8af00d2175f7fa7615cb30a6d9969f64669b77cdf73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8e877df877aa620a5fbbdf5208502c6f540341608c0b71ef3fbaf06cc6f9cc8 [INFO] running `Command { std: "docker" "start" "-a" "e8e877df877aa620a5fbbdf5208502c6f540341608c0b71ef3fbaf06cc6f9cc8", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.184 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling zstd-safe v6.0.6 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling simd-adler32 v0.3.9 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.17.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling indexmap v2.14.0 [INFO] [stderr] Compiling quick-xml v0.23.1 [INFO] [stderr] Compiling flate2 v1.1.9 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling cc v1.2.60 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling lzma-sys v0.1.20 [INFO] [stderr] Compiling bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Compiling xz2 v0.1.7 [INFO] [stderr] Compiling bzip2 v0.4.4 [INFO] [stderr] Compiling zstd v0.12.4 [INFO] [stderr] Compiling niffler v2.5.0 [INFO] [stderr] Compiling rpmrepo_metadata v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/repository.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/repository.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{BufRead, BufReader, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/metadata.rs:626:27 [INFO] [stdout] | [INFO] [stdout] 626 | Self::Unknown(hash) => unimplemented!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `updateinfo_path` [INFO] [stdout] --> src/repository.rs:345:18 [INFO] [stdout] | [INFO] [stdout] 345 | let (updateinfo_path, updateinfo_writer) = utils::xml_writer_for_path( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_updateinfo_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rpmvercmp` is never used [INFO] [stdout] --> src/common.rs:251:8 [INFO] [stdout] | [INFO] [stdout] 251 | pub fn rpmvercmp(evr1: &str, evr2: &str) -> Ordering { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TAG_REBOOT_SUGGESTED` is never used [INFO] [stdout] --> src/updateinfo.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | const TAG_REBOOT_SUGGESTED: &[u8] = b"reboot_suggested"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/common.rs:132:37 [INFO] [stdout] | [INFO] [stdout] 132 | let mut version1_part = version1.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/common.rs:133:37 [INFO] [stdout] | [INFO] [stdout] 133 | let mut version2_part = version2.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/metadata.rs:725:47 [INFO] [stdout] | [INFO] [stdout] 725 | pub fn to_values<'a>(&'a self) -> Result<(&str, &'a str), MetadataError> { [INFO] [stdout] | -- ^^^^ -- the same lifetime is named here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named 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: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 725 | pub fn to_values<'a>(&'a self) -> Result<(&'a str, &'a str), MetadataError> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 42.49s [INFO] running `Command { std: "docker" "inspect" "e8e877df877aa620a5fbbdf5208502c6f540341608c0b71ef3fbaf06cc6f9cc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8e877df877aa620a5fbbdf5208502c6f540341608c0b71ef3fbaf06cc6f9cc8", kill_on_drop: false }` [INFO] [stdout] e8e877df877aa620a5fbbdf5208502c6f540341608c0b71ef3fbaf06cc6f9cc8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b15f5d5a671809b72feb56cc45b1c083f41efde3c280e0624d334db2da85308a [INFO] running `Command { std: "docker" "start" "-a" "b15f5d5a671809b72feb56cc45b1c083f41efde3c280e0624d334db2da85308a", kill_on_drop: false }` [INFO] [stderr] Compiling zerocopy v0.8.48 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling anstyle v1.0.14 [INFO] [stderr] Compiling zerocopy-derive v0.8.48 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling itoa v1.0.18 [INFO] [stderr] Compiling regex-syntax v0.8.10 [INFO] [stderr] Compiling clap_lex v1.1.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling niffler v2.5.0 [INFO] [stderr] Compiling clap_builder v4.6.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling is-terminal v0.4.17 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling once_cell v1.21.4 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling pretty_assertions v1.4.1 [INFO] [stderr] Compiling tempdir v0.3.7 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling clap v4.6.0 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling rpmrepo_metadata v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/repository.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/repository.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{BufRead, BufReader, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/metadata.rs:626:27 [INFO] [stdout] | [INFO] [stdout] 626 | Self::Unknown(hash) => unimplemented!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `updateinfo_path` [INFO] [stdout] --> src/repository.rs:345:18 [INFO] [stdout] | [INFO] [stdout] 345 | let (updateinfo_path, updateinfo_writer) = utils::xml_writer_for_path( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_updateinfo_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rpmvercmp` is never used [INFO] [stdout] --> src/common.rs:251:8 [INFO] [stdout] | [INFO] [stdout] 251 | pub fn rpmvercmp(evr1: &str, evr2: &str) -> Ordering { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TAG_REBOOT_SUGGESTED` is never used [INFO] [stdout] --> src/updateinfo.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | const TAG_REBOOT_SUGGESTED: &[u8] = b"reboot_suggested"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/common.rs:132:37 [INFO] [stdout] | [INFO] [stdout] 132 | let mut version1_part = version1.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/common.rs:133:37 [INFO] [stdout] | [INFO] [stdout] 133 | let mut version2_part = version2.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/metadata.rs:725:47 [INFO] [stdout] | [INFO] [stdout] 725 | pub fn to_values<'a>(&'a self) -> Result<(&str, &'a str), MetadataError> { [INFO] [stdout] | -- ^^^^ -- the same lifetime is named here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named 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: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 725 | pub fn to_values<'a>(&'a self) -> Result<(&'a str, &'a str), MetadataError> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling half v2.7.1 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/repository.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/repository.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{BufRead, BufReader, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/metadata.rs:626:27 [INFO] [stdout] | [INFO] [stdout] 626 | Self::Unknown(hash) => unimplemented!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `updateinfo_path` [INFO] [stdout] --> src/repository.rs:345:18 [INFO] [stdout] | [INFO] [stdout] 345 | let (updateinfo_path, updateinfo_writer) = utils::xml_writer_for_path( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_updateinfo_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TAG_REBOOT_SUGGESTED` is never used [INFO] [stdout] --> src/updateinfo.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | const TAG_REBOOT_SUGGESTED: &[u8] = b"reboot_suggested"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/common.rs:132:37 [INFO] [stdout] | [INFO] [stdout] 132 | let mut version1_part = version1.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/common.rs:133:37 [INFO] [stdout] | [INFO] [stdout] 133 | let mut version2_part = version2.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/metadata.rs:725:47 [INFO] [stdout] | [INFO] [stdout] 725 | pub fn to_values<'a>(&'a self) -> Result<(&str, &'a str), MetadataError> { [INFO] [stdout] | -- ^^^^ -- the same lifetime is named here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named 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: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 725 | pub fn to_values<'a>(&'a self) -> Result<(&'a str, &'a str), MetadataError> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [optimized + debuginfo] target(s) in 57.51s [INFO] running `Command { std: "docker" "inspect" "b15f5d5a671809b72feb56cc45b1c083f41efde3c280e0624d334db2da85308a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b15f5d5a671809b72feb56cc45b1c083f41efde3c280e0624d334db2da85308a", kill_on_drop: false }` [INFO] [stdout] b15f5d5a671809b72feb56cc45b1c083f41efde3c280e0624d334db2da85308a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 38daf526215399e493b268dad84912a714d2c322c06492317c03bf03c8520264 [INFO] running `Command { std: "docker" "start" "-a" "38daf526215399e493b268dad84912a714d2c322c06492317c03bf03c8520264", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/repository.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `BufRead` [INFO] [stderr] --> src/repository.rs:8:15 [INFO] [stderr] | [INFO] [stderr] 8 | use std::io::{BufRead, BufReader, Write}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hash` [INFO] [stderr] --> src/metadata.rs:626:27 [INFO] [stderr] | [INFO] [stderr] 626 | Self::Unknown(hash) => unimplemented!(), [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `updateinfo_path` [INFO] [stderr] --> src/repository.rs:345:18 [INFO] [stderr] | [INFO] [stderr] 345 | let (updateinfo_path, updateinfo_writer) = utils::xml_writer_for_path( [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_updateinfo_path` [INFO] [stderr] [INFO] [stderr] warning: function `rpmvercmp` is never used [INFO] [stderr] --> src/common.rs:251:8 [INFO] [stderr] | [INFO] [stderr] 251 | pub fn rpmvercmp(evr1: &str, evr2: &str) -> Ordering { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `TAG_REBOOT_SUGGESTED` is never used [INFO] [stderr] --> src/updateinfo.rs:37:7 [INFO] [stderr] | [INFO] [stderr] 37 | const TAG_REBOOT_SUGGESTED: &[u8] = b"reboot_suggested"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/common.rs:132:37 [INFO] [stderr] | [INFO] [stderr] 132 | let mut version1_part = version1.clone(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/common.rs:133:37 [INFO] [stderr] | [INFO] [stderr] 133 | let mut version2_part = version2.clone(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> src/metadata.rs:725:47 [INFO] [stderr] | [INFO] [stderr] 725 | pub fn to_values<'a>(&'a self) -> Result<(&str, &'a str), MetadataError> { [INFO] [stderr] | -- ^^^^ -- the same lifetime is named here [INFO] [stderr] | | | [INFO] [stderr] | | the same lifetime is elided here [INFO] [stderr] | the lifetime is named here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 725 | pub fn to_values<'a>(&'a self) -> Result<(&'a str, &'a str), MetadataError> { [INFO] [stderr] | ++ [INFO] [stderr] [INFO] [stderr] warning: `rpmrepo_metadata` (lib) generated 9 warnings (run `cargo fix --lib -p rpmrepo_metadata` to apply 7 suggestions) [INFO] [stderr] warning: constant `TAG_REBOOT_SUGGESTED` is never used [INFO] [stderr] --> src/updateinfo.rs:37:7 [INFO] [stderr] | [INFO] [stderr] 37 | const TAG_REBOOT_SUGGESTED: &[u8] = b"reboot_suggested"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `rpmrepo_metadata` (lib test) generated 8 warnings (7 duplicates) [INFO] [stderr] Finished `test` profile [optimized + debuginfo] target(s) in 0.18s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rpmrepo_metadata-4479e2fd2df750f6) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test common::test::test_compare_version_string ... ok [INFO] [stdout] test common::test::test_evr_ord ... ok [INFO] [stdout] test common::test::test_rpmvercmp ... ok [INFO] [stdout] test common::test::test_evr_tostr ... ok [INFO] [stdout] test common::test::test_evr_parse ... ok [INFO] [stdout] test common::test::test_edge_cases ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests rpmrepo_metadata [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "38daf526215399e493b268dad84912a714d2c322c06492317c03bf03c8520264", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38daf526215399e493b268dad84912a714d2c322c06492317c03bf03c8520264", kill_on_drop: false }` [INFO] [stdout] 38daf526215399e493b268dad84912a714d2c322c06492317c03bf03c8520264