harmonia-clippy-3.2.0
checks.x86_64-linux.clippy
· build #492
· raw
1tribuchet: building on jamie
unpackPhase
2unpacking source archive /nix/store/4r3b4iq452v71qr71fz3kn9qkjbdbwc6-source3source root is sourcepatchPhase
4Executing configureCargoCommonVars5decompressing cargo artifacts from /nix/store/2pwdr2fs2ssajpwmh5xzijyfwrac5vfy-harmonia-deps-3.2.0/target.tar.zst to targetconfigurePhase
6will append /build/source/.cargo-home/config.toml with contents of /nix/store/x1nl23z0f1hz2nh9s12nhw9s99ni132r-vendor-cargo-deps/config.toml7default configurePhase, nothing to dobuildPhase
8+++ command cargo --version9cargo 1.97.0 (c980f4866 2026-06-30)10+++ command cargo clippy --release --locked --all-targets --all-features -- -D warnings11 Checking harmonia-utils-base-encoding v0.0.0-alpha.0 (/build/source/harmonia-utils-base-encoding)12 Checking harmonia-file-core v3.2.0 (/build/source/harmonia-file-core)13 Checking harmonia-utils-test v0.0.0-alpha.0 (/build/source/harmonia-utils-test)14 Compiling harmonia-protocol-derive v3.2.0 (/build/source/harmonia-protocol-derive)15 Checking harmonia-client v3.2.0 (/build/source/harmonia-client)16 Checking harmonia-ssh-store v3.2.0 (/build/source/harmonia-ssh-store)17 Checking harmonia-utils-hash v0.0.0-alpha.0 (/build/source/harmonia-utils-hash)18 Checking harmonia-utils-signature v3.2.0 (/build/source/harmonia-utils-signature)19 Checking harmonia-store-path v3.2.0 (/build/source/harmonia-store-path)20 Checking harmonia-utils-io v0.0.0-alpha.0 (/build/source/harmonia-utils-io)21 Checking harmonia-store-content-address v3.2.0 (/build/source/harmonia-store-content-address)22 Checking harmonia-store-fs v3.2.0 (/build/source/harmonia-store-fs)23 Checking harmonia-store-ref-scan v0.0.0-alpha.0 (/build/source/harmonia-store-ref-scan)24 Checking harmonia-file-nar v3.2.0 (/build/source/harmonia-file-nar)25 Checking harmonia-bench v3.2.0 (/build/source/harmonia-bench)26 Checking harmonia-store-derivation v0.0.0-alpha.0 (/build/source/harmonia-store-derivation)27 Checking harmonia-store-path-info v3.2.0 (/build/source/harmonia-store-path-info)28 Checking harmonia-store-nar-info v3.2.0 (/build/source/harmonia-store-nar-info)29 Checking harmonia-store-db v3.2.0 (/build/source/harmonia-store-db)30 Checking harmonia-store-aterm v0.0.0-alpha.0 (/build/source/harmonia-store-aterm)31 Checking harmonia-store-build-result v3.2.0 (/build/source/harmonia-store-build-result)32 Checking harmonia-store-gc v3.2.0 (/build/source/harmonia-store-gc)33 Checking harmonia-protocol v3.2.0 (/build/source/harmonia-protocol)34 Checking harmonia-cache v3.2.0 (/build/source/harmonia-cache)35error: unused import: `Rng`36 --> harmonia-store-gc/src/gc_socket/stress_tests.rs:24:1237 |3824 | use rand::{Rng, SeedableRng};39 | ^^^40 |41 = note: `-D unused-imports` implied by `-D warnings`42 = help: to override `-D warnings` add `#[allow(unused_imports)]`4344error[E0599]: no method named `random_bool` found for mutable reference `&mut rand::prelude::StdRng` in the current scope45 --> harmonia-store-gc/src/gc_socket/stress_tests.rs:44:2046 |4744 | if rng.random_bool(0.25) {48 | ^^^^^^^^^^^49 |50 = help: items from traits can only be used if the trait is in scope51help: there is a method `random` with a similar name, but with different arguments52 --> /nix/store/x1nl23z0f1hz2nh9s12nhw9s99ni132r-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/rand-0.10.2/src/rng.rs:93:553 |5493 | / fn random<T>(&mut self) -> T5594 | | where5695 | | StandardUniform: Distribution<T>,57 | |_________________________________________^58help: trait `RngExt` which provides `random_bool` is implemented but not in scope; perhaps you want to import it59 |6015 + use rand::RngExt;61 |6263error[E0599]: no method named `random_range` found for struct `rand::prelude::StdRng` in the current scope64 --> harmonia-store-gc/src/gc_socket/stress_tests.rs:74:2365 |66 74 | .take(rng.random_range(1..=4))67 | ^^^^^^^^^^^^68 |69 ::: /nix/store/x1nl23z0f1hz2nh9s12nhw9s99ni132r-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/rand-0.10.2/src/rng.rs:163:870 |71163 | fn random_range<T, R>(&mut self, range: R) -> T72 | ------------ the method is available for `rand::prelude::StdRng` here73 |74 = help: items from traits can only be used if the trait is in scope75help: there is a method `random` with a similar name, but with different arguments76 --> /nix/store/x1nl23z0f1hz2nh9s12nhw9s99ni132r-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/rand-0.10.2/src/rng.rs:93:577 |78 93 | / fn random<T>(&mut self) -> T79 94 | | where80 95 | | StandardUniform: Distribution<T>,81 | |_________________________________________^82help: trait `RngExt` which provides `random_range` is implemented but not in scope; perhaps you want to import it83 |84 15 + use rand::RngExt;85 |8687error[E0599]: no method named `random_range` found for struct `rand::prelude::StdRng` in the current scope88 --> harmonia-store-gc/src/gc_socket/stress_tests.rs:119:2889 |90119 | let root = all[rng.random_range(0..all.len())];91 | ^^^^^^^^^^^^92 |93 ::: /nix/store/x1nl23z0f1hz2nh9s12nhw9s99ni132r-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/rand-0.10.2/src/rng.rs:163:894 |95163 | fn random_range<T, R>(&mut self, range: R) -> T96 | ------------ the method is available for `rand::prelude::StdRng` here97 |98 = help: items from traits can only be used if the trait is in scope99help: there is a method `random` with a similar name, but with different arguments100 --> /nix/store/x1nl23z0f1hz2nh9s12nhw9s99ni132r-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/rand-0.10.2/src/rng.rs:93:5101 |102 93 | / fn random<T>(&mut self) -> T103 94 | | where104 95 | | StandardUniform: Distribution<T>,105 | |_________________________________________^106help: trait `RngExt` which provides `random_range` is implemented but not in scope; perhaps you want to import it107 |108 15 + use rand::RngExt;109 |110111error[E0599]: no method named `random_range` found for struct `rand::prelude::StdRng` in the current scope112 --> harmonia-store-gc/src/gc_socket/stress_tests.rs:140:17113 |114140 | let n = rng.random_range(4..44);115 | ^^^^^^^^^^^^116 |117 ::: /nix/store/x1nl23z0f1hz2nh9s12nhw9s99ni132r-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/rand-0.10.2/src/rng.rs:163:8118 |119163 | fn random_range<T, R>(&mut self, range: R) -> T120 | ------------ the method is available for `rand::prelude::StdRng` here121 |122 = help: items from traits can only be used if the trait is in scope123help: there is a method `random` with a similar name, but with different arguments124 --> /nix/store/x1nl23z0f1hz2nh9s12nhw9s99ni132r-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/rand-0.10.2/src/rng.rs:93:5125 |126 93 | / fn random<T>(&mut self) -> T127 94 | | where128 95 | | StandardUniform: Distribution<T>,129 | |_________________________________________^130help: trait `RngExt` which provides `random_range` is implemented but not in scope; perhaps you want to import it131 |132 15 + use rand::RngExt;133 |134135For more information about this error, try `rustc --explain E0599`.136error: could not compile `harmonia-store-gc` (lib test) due to 5 previous errors137warning: build failed, waiting for other jobs to finish...