[INFO] fetching crate rpmrepo_metadata 0.3.0... [INFO] testing rpmrepo_metadata-0.3.0 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate rpmrepo_metadata 0.3.0 into /workspace/builds/worker-7-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-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rpmrepo_metadata 0.3.0 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 159 packages to latest compatible versions [INFO] [stderr] Adding criterion v0.5.1 (available: v0.7.0) [INFO] [stderr] Adding niffler v2.5.0 (available: v2.7.0) [INFO] [stderr] Adding pyo3 v0.20.3 (available: v0.26.0) [INFO] [stderr] Adding quick-xml v0.23.1 (available: v0.38.3) [INFO] [stderr] Adding rpm v0.12.1 (available: v0.18.2) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.17) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 45f979123c3de7e2238f44b22df60ec8486326e5deb78dceffb120ffecf6501c [INFO] running `Command { std: "docker" "start" "-a" "45f979123c3de7e2238f44b22df60ec8486326e5deb78dceffb120ffecf6501c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "45f979123c3de7e2238f44b22df60ec8486326e5deb78dceffb120ffecf6501c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45f979123c3de7e2238f44b22df60ec8486326e5deb78dceffb120ffecf6501c", kill_on_drop: false }` [INFO] [stdout] 45f979123c3de7e2238f44b22df60ec8486326e5deb78dceffb120ffecf6501c [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 969847d494cdec6d21a51fb7a74e6661f203b5a27722962c91533cdae719039b [INFO] running `Command { std: "docker" "start" "-a" "969847d494cdec6d21a51fb7a74e6661f203b5a27722962c91533cdae719039b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling zstd-safe v6.0.6 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling quick-xml v0.23.1 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Compiling lzma-sys v0.1.20 [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 32.35s [INFO] running `Command { std: "docker" "inspect" "969847d494cdec6d21a51fb7a74e6661f203b5a27722962c91533cdae719039b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "969847d494cdec6d21a51fb7a74e6661f203b5a27722962c91533cdae719039b", kill_on_drop: false }` [INFO] [stdout] 969847d494cdec6d21a51fb7a74e6661f203b5a27722962c91533cdae719039b [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6d4ccf25df0a36d77de21053a73c06fb4483ec4e0fb731b5b4a9847ae3569afb [INFO] running `Command { std: "docker" "start" "-a" "6d4ccf25df0a36d77de21053a73c06fb4483ec4e0fb731b5b4a9847ae3569afb", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling clap_builder v4.5.48 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [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] Compiling tempdir v0.3.7 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling pretty_assertions v1.4.1 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling clap v4.5.48 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling criterion v0.5.1 [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: 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 46.10s [INFO] running `Command { std: "docker" "inspect" "6d4ccf25df0a36d77de21053a73c06fb4483ec4e0fb731b5b4a9847ae3569afb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d4ccf25df0a36d77de21053a73c06fb4483ec4e0fb731b5b4a9847ae3569afb", kill_on_drop: false }` [INFO] [stdout] 6d4ccf25df0a36d77de21053a73c06fb4483ec4e0fb731b5b4a9847ae3569afb [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8e05a2ccf4e4502ff9e0b536d2807fb0228b163f2e0cdd1590d768e0e2a429f8 [INFO] running `Command { std: "docker" "start" "-a" "8e05a2ccf4e4502ff9e0b536d2807fb0228b163f2e0cdd1590d768e0e2a429f8", 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: 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) generated 9 warnings (run `cargo fix --lib -p rpmrepo_metadata` to apply 5 suggestions) [INFO] [stderr] warning: `rpmrepo_metadata` (lib test) generated 8 warnings (7 duplicates) [INFO] [stderr] Finished `test` profile [optimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rpmrepo_metadata-1852cf178482dcd1) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test common::test::test_compare_version_string ... ok [INFO] [stdout] test common::test::test_edge_cases ... ok [INFO] [stdout] test common::test::test_evr_ord ... ok [INFO] [stdout] test common::test::test_evr_parse ... ok [INFO] [stdout] test common::test::test_rpmvercmp ... ok [INFO] [stdout] test common::test::test_evr_tostr ... 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" "8e05a2ccf4e4502ff9e0b536d2807fb0228b163f2e0cdd1590d768e0e2a429f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e05a2ccf4e4502ff9e0b536d2807fb0228b163f2e0cdd1590d768e0e2a429f8", kill_on_drop: false }` [INFO] [stdout] 8e05a2ccf4e4502ff9e0b536d2807fb0228b163f2e0cdd1590d768e0e2a429f8