[INFO] fetching crate ocpi-tariffs 0.39.0... [INFO] checking ocpi-tariffs-0.39.0 against try#7b3da9103634dffd4f4365cfd8642427c781d99f+rustflags=-Dinherent-method-on-receiver for 152214-denied-retry-0 [INFO] extracting crate ocpi-tariffs 0.39.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate ocpi-tariffs 0.39.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate ocpi-tariffs 0.39.0 [INFO] tweaked toml for crates.io crate ocpi-tariffs 0.39.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ocpi-tariffs 0.39.0 on toolchain 7b3da9103634dffd4f4365cfd8642427c781d99f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate ocpi-tariffs 0.39.0 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" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c95c59e6c9d919001b5c57fc68b00747e227318b3e95263735a4deeeeefa1943 [INFO] running `Command { std: "docker" "start" "-a" "c95c59e6c9d919001b5c57fc68b00747e227318b3e95263735a4deeeeefa1943", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c95c59e6c9d919001b5c57fc68b00747e227318b3e95263735a4deeeeefa1943", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c95c59e6c9d919001b5c57fc68b00747e227318b3e95263735a4deeeeefa1943", kill_on_drop: false }` [INFO] [stdout] c95c59e6c9d919001b5c57fc68b00747e227318b3e95263735a4deeeeefa1943 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Dinherent-method-on-receiver" "-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f8e822ad35e7d6e285ff9243c2863298a3ad40fc6c6a56fa3dfffce6d0474be [INFO] running `Command { std: "docker" "start" "-a" "2f8e822ad35e7d6e285ff9243c2863298a3ad40fc6c6a56fa3dfffce6d0474be", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Checking phf_shared v0.12.1 [INFO] [stderr] Compiling chrono-tz v0.10.4 [INFO] [stderr] Compiling rust_decimal v1.37.2 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling ocpi-tariffs v0.39.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Checking json-tools v1.1.3 [INFO] [stderr] Checking nu-ansi-term v0.50.1 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking phf v0.12.1 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Checking json-strip-comments v1.0.4 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling rust_decimal_macros v1.37.1 [INFO] [stderr] Compiling test-each-codegen v0.3.1 [INFO] [stderr] Checking test-each v0.3.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/warning.rs:251:23 [INFO] [stdout] | [INFO] [stdout] 235 | / impl Deref for CaveatDeferred [INFO] [stdout] 236 | | where [INFO] [stdout] 237 | | W: Warning, [INFO] [stdout] | |_______________- trait implemented here [INFO] [stdout] 238 | { [INFO] [stdout] 239 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 251 | pub fn into_parts(self) -> (T, SetDeferred) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D inherent-method-on-receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/warning.rs:257:28 [INFO] [stdout] | [INFO] [stdout] 235 | / impl Deref for CaveatDeferred [INFO] [stdout] 236 | | where [INFO] [stdout] 237 | | W: Warning, [INFO] [stdout] | |_______________- trait implemented here [INFO] [stdout] 238 | { [INFO] [stdout] 239 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn ignore_warnings(self) -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/warning.rs:262:38 [INFO] [stdout] | [INFO] [stdout] 235 | / impl Deref for CaveatDeferred [INFO] [stdout] 236 | | where [INFO] [stdout] 237 | | W: Warning, [INFO] [stdout] | |_______________- trait implemented here [INFO] [stdout] 238 | { [INFO] [stdout] 239 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 262 | pub fn map U>(self, op: F) -> CaveatDeferred { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/warning.rs:322:23 [INFO] [stdout] | [INFO] [stdout] 306 | / impl Deref for Caveat [INFO] [stdout] 307 | | where [INFO] [stdout] 308 | | W: Warning, [INFO] [stdout] | |_______________- trait implemented here [INFO] [stdout] 309 | { [INFO] [stdout] 310 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 322 | pub fn into_parts(self) -> (T, Set) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/warning.rs:328:28 [INFO] [stdout] | [INFO] [stdout] 306 | / impl Deref for Caveat [INFO] [stdout] 307 | | where [INFO] [stdout] 308 | | W: Warning, [INFO] [stdout] | |_______________- trait implemented here [INFO] [stdout] 309 | { [INFO] [stdout] 310 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 328 | pub fn ignore_warnings(self) -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/warning.rs:333:38 [INFO] [stdout] | [INFO] [stdout] 306 | / impl Deref for Caveat [INFO] [stdout] 307 | | where [INFO] [stdout] 308 | | W: Warning, [INFO] [stdout] | |_______________- trait implemented here [INFO] [stdout] 309 | { [INFO] [stdout] 310 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 333 | pub fn map U>(self, op: F) -> Caveat { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lint expectation is unfulfilled [INFO] [stdout] --> src/json.rs:461:14 [INFO] [stdout] | [INFO] [stdout] 461 | #[expect(dead_code, reason = "pending use in `tariff::lint`")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: pending use in `tariff::lint` [INFO] [stdout] = note: `#[warn(unfulfilled_lint_expectations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ocpi-tariffs` (lib) due to 6 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: function `should_guess_version_v221` is never used [INFO] [stdout] --> src/guess.rs:395:8 [INFO] [stdout] | [INFO] [stdout] 395 | fn should_guess_version_v221(cdr_json: &str, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-W dead-code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `should_guess_version_v211` is never used [INFO] [stdout] --> src/guess.rs:431:8 [INFO] [stdout] | [INFO] [stdout] 431 | fn should_guess_version_v211(cdr_json: &str, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_real_world` is never used [INFO] [stdout] --> src/lint/tariff/v211.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn test_real_world(tariff_json: &str, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_units` is never used [INFO] [stdout] --> src/lint/tariff/v211.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn test_units(tariff_json: &str, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_real_world` is never used [INFO] [stdout] --> src/lint/tariff/v221.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | fn test_real_world(tariff_json: &str, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_units` is never used [INFO] [stdout] --> src/lint/tariff/v221.rs:154:8 [INFO] [stdout] | [INFO] [stdout] 154 | fn test_units(tariff_json: &str, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRECISION` is never used [INFO] [stdout] --> src/price.rs:1493:11 [INFO] [stdout] | [INFO] [stdout] 1493 | const PRECISION: u32 = 2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Expect` is never constructed [INFO] [stdout] --> src/price.rs:1556:23 [INFO] [stdout] | [INFO] [stdout] 1556 | pub(crate) struct Expect { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExpectFields` is never constructed [INFO] [stdout] --> src/price.rs:1576:23 [INFO] [stdout] | [INFO] [stdout] 1576 | pub(crate) struct ExpectFields { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_fields` is never used [INFO] [stdout] --> src/price.rs:1592:23 [INFO] [stdout] | [INFO] [stdout] 1590 | impl ExpectFile { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 1591 | /// Split the `ExpectFile` into its constituent fields and repackage them as `ExpectFile`s. [INFO] [stdout] 1592 | pub(crate) fn into_fields(self) -> ExpectFields { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_parse_report` is never used [INFO] [stdout] --> src/price.rs:1629:19 [INFO] [stdout] | [INFO] [stdout] 1629 | pub(crate) fn assert_parse_report( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_price_report` is never used [INFO] [stdout] --> src/price.rs:1658:19 [INFO] [stdout] | [INFO] [stdout] 1658 | pub(crate) fn assert_price_report( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `unexpected_fields` is never read [INFO] [stdout] --> src/price.rs:1871:9 [INFO] [stdout] | [INFO] [stdout] 1869 | pub struct ParseExpect { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 1870 | #[serde(default)] [INFO] [stdout] 1871 | unexpected_fields: Expectation>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/price.rs:1881:9 [INFO] [stdout] | [INFO] [stdout] 1876 | pub struct PriceExpect { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 1881 | warnings: Expectation>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1885 | tariff_index: Expectation, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1889 | tariff_id: Expectation, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1895 | tariff_reports: Expectation>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1899 | total_cost: Expectation, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1903 | total_fixed_cost: Expectation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1907 | total_time: Expectation, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1911 | total_time_cost: Expectation, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1915 | total_energy: Expectation, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1919 | total_energy_cost: Expectation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1923 | total_parking_time: Expectation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1927 | total_parking_cost: Expectation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1931 | total_reservation_cost: Expectation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `warnings` are never read [INFO] [stdout] --> src/price.rs:1937:9 [INFO] [stdout] | [INFO] [stdout] 1935 | struct TariffReportExpect { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 1936 | /// The id of the tariff. [INFO] [stdout] 1937 | id: String, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 1943 | warnings: BTreeMap>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TariffReportExpect` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `expect_opt_price` and `expect_price` are never used [INFO] [stdout] --> src/price.rs:1948:12 [INFO] [stdout] | [INFO] [stdout] 1946 | impl Expectation { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 1947 | #[track_caller] [INFO] [stdout] 1948 | fn expect_opt_price(self, field_name: &str, total: &Total>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1986 | fn expect_price(self, field_name: &str, total: &Total>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `expect_duration` and `expect_opt_duration` are never used [INFO] [stdout] --> src/price.rs:2020:12 [INFO] [stdout] | [INFO] [stdout] 2018 | impl Expectation { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] 2019 | #[track_caller] [INFO] [stdout] 2020 | fn expect_duration(self, field_name: &str, total: &Total) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2037 | fn expect_opt_duration( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `expect_opt_kwh` is never used [INFO] [stdout] --> src/price.rs:2067:12 [INFO] [stdout] | [INFO] [stdout] 2065 | impl Expectation { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 2066 | #[track_caller] [INFO] [stdout] 2067 | fn expect_opt_kwh(self, field_name: &str, total: &Total>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_price_cdr` is never used [INFO] [stdout] --> src/price.rs:2464:8 [INFO] [stdout] | [INFO] [stdout] 2464 | fn test_price_cdr(cdr_json: &str, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_price_cdr` is never used [INFO] [stdout] --> src/price.rs:2535:8 [INFO] [stdout] | [INFO] [stdout] 2535 | fn test_price_cdr(cdr_json: &str, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_parse_tariff` is never used [INFO] [stdout] --> src/tariff/v211.rs:513:8 [INFO] [stdout] | [INFO] [stdout] 513 | fn test_parse_tariff(tariff_json: &str, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_parse_tariff` is never used [INFO] [stdout] --> src/tariff/v221.rs:377:8 [INFO] [stdout] | [INFO] [stdout] 377 | fn test_parse_tariff(tariff_json: &str, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_parse_v211` is never used [INFO] [stdout] --> src/tariff.rs:486:8 [INFO] [stdout] | [INFO] [stdout] 486 | fn test_parse_v211(tariff_json: &str, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_parse_v221` is never used [INFO] [stdout] --> src/tariff.rs:495:8 [INFO] [stdout] | [INFO] [stdout] 495 | fn test_parse_v221(tariff_json: &str, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_version` is never used [INFO] [stdout] --> src/tariff.rs:501:8 [INFO] [stdout] | [INFO] [stdout] 501 | fn expect_version(tariff_json: &str, path: &Path, expected_version: Version) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `warnings` is never read [INFO] [stdout] --> src/tariff.rs:538:9 [INFO] [stdout] | [INFO] [stdout] 536 | pub struct FromJsonExpect { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 537 | #[serde(default)] [INFO] [stdout] 538 | warnings: Expectation>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FromJsonExpect` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_parse_report` is never used [INFO] [stdout] --> src/tariff.rs:575:19 [INFO] [stdout] | [INFO] [stdout] 575 | pub(crate) fn assert_parse_report( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_from_json_warnings` is never used [INFO] [stdout] --> src/tariff.rs:595:19 [INFO] [stdout] | [INFO] [stdout] 595 | pub(crate) fn assert_from_json_warnings( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FindOrInferExpect` is never constructed [INFO] [stdout] --> src/timezone.rs:370:23 [INFO] [stdout] | [INFO] [stdout] 370 | pub(crate) struct FindOrInferExpect { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_find_or_infer_outcome` is never used [INFO] [stdout] --> src/timezone.rs:381:19 [INFO] [stdout] | [INFO] [stdout] 381 | pub(crate) fn assert_find_or_infer_outcome( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_option` is never used [INFO] [stdout] --> src/lib.rs:591:16 [INFO] [stdout] | [INFO] [stdout] 586 | / impl ExpectValue [INFO] [stdout] 587 | | where [INFO] [stdout] 588 | | T: fmt::Debug, [INFO] [stdout] | |______________________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 591 | pub fn into_option(self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `with_value` and `only_file_name` are never used [INFO] [stdout] --> src/lib.rs:659:16 [INFO] [stdout] | [INFO] [stdout] 658 | impl ExpectFile { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] 659 | pub fn with_value(value: Option, file_name: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 666 | pub fn only_file_name(file_name: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/warning.rs:251:23 [INFO] [stdout] | [INFO] [stdout] 235 | / impl Deref for CaveatDeferred [INFO] [stdout] 236 | | where [INFO] [stdout] 237 | | W: Warning, [INFO] [stdout] | |_______________- trait implemented here [INFO] [stdout] 238 | { [INFO] [stdout] 239 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 251 | pub fn into_parts(self) -> (T, SetDeferred) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D inherent-method-on-receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/warning.rs:257:28 [INFO] [stdout] | [INFO] [stdout] 235 | / impl Deref for CaveatDeferred [INFO] [stdout] 236 | | where [INFO] [stdout] 237 | | W: Warning, [INFO] [stdout] | |_______________- trait implemented here [INFO] [stdout] 238 | { [INFO] [stdout] 239 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn ignore_warnings(self) -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/warning.rs:262:38 [INFO] [stdout] | [INFO] [stdout] 235 | / impl Deref for CaveatDeferred [INFO] [stdout] 236 | | where [INFO] [stdout] 237 | | W: Warning, [INFO] [stdout] | |_______________- trait implemented here [INFO] [stdout] 238 | { [INFO] [stdout] 239 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 262 | pub fn map U>(self, op: F) -> CaveatDeferred { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/warning.rs:322:23 [INFO] [stdout] | [INFO] [stdout] 306 | / impl Deref for Caveat [INFO] [stdout] 307 | | where [INFO] [stdout] 308 | | W: Warning, [INFO] [stdout] | |_______________- trait implemented here [INFO] [stdout] 309 | { [INFO] [stdout] 310 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 322 | pub fn into_parts(self) -> (T, Set) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/warning.rs:328:28 [INFO] [stdout] | [INFO] [stdout] 306 | / impl Deref for Caveat [INFO] [stdout] 307 | | where [INFO] [stdout] 308 | | W: Warning, [INFO] [stdout] | |_______________- trait implemented here [INFO] [stdout] 309 | { [INFO] [stdout] 310 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 328 | pub fn ignore_warnings(self) -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/warning.rs:333:38 [INFO] [stdout] | [INFO] [stdout] 306 | / impl Deref for Caveat [INFO] [stdout] 307 | | where [INFO] [stdout] 308 | | W: Warning, [INFO] [stdout] | |_______________- trait implemented here [INFO] [stdout] 309 | { [INFO] [stdout] 310 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 333 | pub fn map U>(self, op: F) -> Caveat { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/warning.rs:1535:23 [INFO] [stdout] | [INFO] [stdout] 306 | / impl Deref for Caveat [INFO] [stdout] 307 | | where [INFO] [stdout] 308 | | W: Warning, [INFO] [stdout] | |_______________- trait implemented here [INFO] [stdout] 309 | { [INFO] [stdout] 310 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 1535 | pub fn unwrap(self) -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/warning.rs:1551:23 [INFO] [stdout] | [INFO] [stdout] 235 | / impl Deref for CaveatDeferred [INFO] [stdout] 236 | | where [INFO] [stdout] 237 | | W: Warning, [INFO] [stdout] | |_______________- trait implemented here [INFO] [stdout] 238 | { [INFO] [stdout] 239 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 1551 | pub fn unwrap(self) -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lint expectation is unfulfilled [INFO] [stdout] --> src/json.rs:461:14 [INFO] [stdout] | [INFO] [stdout] 461 | #[expect(dead_code, reason = "pending use in `tariff::lint`")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: pending use in `tariff::lint` [INFO] [stdout] = note: `#[warn(unfulfilled_lint_expectations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ocpi-tariffs` (lib test) due to 8 previous errors; 33 warnings emitted [INFO] running `Command { std: "docker" "inspect" "2f8e822ad35e7d6e285ff9243c2863298a3ad40fc6c6a56fa3dfffce6d0474be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f8e822ad35e7d6e285ff9243c2863298a3ad40fc6c6a56fa3dfffce6d0474be", kill_on_drop: false }` [INFO] [stdout] 2f8e822ad35e7d6e285ff9243c2863298a3ad40fc6c6a56fa3dfffce6d0474be