nixbot

builds

failed harmonia-clippy-3.2.0 checks.aarch64-darwin.clippy · build #492 · raw

unpackPhase
1unpacking source archive /nix/store/4r3b4iq452v71qr71fz3kn9qkjbdbwc6-source2source root is source
patchPhase
3Executing configureCargoCommonVars4decompressing cargo artifacts from /nix/store/8xw824rv8nszg8pmm2i7pn37j3cfq8sm-harmonia-deps-3.2.0/target.tar.zst to target
configurePhase
5will append /nix/var/nix/builds/nix-82308-3465904146/source/.cargo-home/config.toml with contents of /nix/store/dpqyr8g1g3jwll4q9y8ld4gk5qch6mn9-vendor-cargo-deps/config.toml6default configurePhase, nothing to do
buildPhase
7+++ command cargo --version8cargo 1.97.0 (c980f4866 2026-06-30)9+++ command cargo clippy --release --locked --all-targets --all-features -- -D warnings10 Checking harmonia-utils-base-encoding v0.0.0-alpha.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-utils-base-encoding)11 Checking harmonia-utils-test v0.0.0-alpha.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-utils-test)12 Checking harmonia-file-core v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-file-core)13 Compiling harmonia-protocol-derive v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-protocol-derive)14 Checking harmonia-client v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-client)15 Checking harmonia-ssh-store v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-ssh-store)16 Checking harmonia-utils-hash v0.0.0-alpha.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-utils-hash)17 Checking harmonia-utils-signature v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-utils-signature)18 Checking harmonia-store-path v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-store-path)19 Checking harmonia-utils-io v0.0.0-alpha.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-utils-io)20 Checking harmonia-store-content-address v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-store-content-address)21 Checking harmonia-store-fs v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-store-fs)22 Checking harmonia-store-ref-scan v0.0.0-alpha.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-store-ref-scan)23 Checking harmonia-bench v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-bench)24 Checking harmonia-store-derivation v0.0.0-alpha.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-store-derivation)25 Checking harmonia-store-path-info v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-store-path-info)26 Checking harmonia-file-nar v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-file-nar)27 Checking harmonia-store-nar-info v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-store-nar-info)28 Checking harmonia-store-db v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-store-db)29 Checking harmonia-store-aterm v0.0.0-alpha.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-store-aterm)30 Checking harmonia-store-build-result v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-store-build-result)31 Checking harmonia-store-gc v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-store-gc)32error: unused import: `Rng`33 --> harmonia-store-gc/src/gc_socket/stress_tests.rs:24:1234 |3524 | use rand::{Rng, SeedableRng};36 | ^^^37 |38 = note: `-D unused-imports` implied by `-D warnings`39 = help: to override `-D warnings` add `#[allow(unused_imports)]`4041error[E0599]: no method named `random_bool` found for mutable reference `&mut rand::prelude::StdRng` in the current scope42 --> harmonia-store-gc/src/gc_socket/stress_tests.rs:44:2043 |4444 | if rng.random_bool(0.25) {45 | ^^^^^^^^^^^46 |47 = help: items from traits can only be used if the trait is in scope48help: there is a method `random` with a similar name, but with different arguments49 --> /nix/store/dpqyr8g1g3jwll4q9y8ld4gk5qch6mn9-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/rand-0.10.2/src/rng.rs:93:550 |5193 | / fn random<T>(&mut self) -> T5294 | | where5395 | | StandardUniform: Distribution<T>,54 | |_________________________________________^55help: trait `RngExt` which provides `random_bool` is implemented but not in scope; perhaps you want to import it56 |5715 + use rand::RngExt;58 |5960error[E0599]: no method named `random_range` found for struct `rand::prelude::StdRng` in the current scope61 --> harmonia-store-gc/src/gc_socket/stress_tests.rs:74:2362 |63 74 | .take(rng.random_range(1..=4))64 | ^^^^^^^^^^^^65 |66 ::: /nix/store/dpqyr8g1g3jwll4q9y8ld4gk5qch6mn9-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/rand-0.10.2/src/rng.rs:163:867 |68163 | fn random_range<T, R>(&mut self, range: R) -> T69 | ------------ the method is available for `rand::prelude::StdRng` here70 |71 = help: items from traits can only be used if the trait is in scope72help: there is a method `random` with a similar name, but with different arguments73 --> /nix/store/dpqyr8g1g3jwll4q9y8ld4gk5qch6mn9-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/rand-0.10.2/src/rng.rs:93:574 |75 93 | / fn random<T>(&mut self) -> T76 94 | | where77 95 | | StandardUniform: Distribution<T>,78 | |_________________________________________^79help: trait `RngExt` which provides `random_range` is implemented but not in scope; perhaps you want to import it80 |81 15 + use rand::RngExt;82 |8384error[E0599]: no method named `random_range` found for struct `rand::prelude::StdRng` in the current scope85 --> harmonia-store-gc/src/gc_socket/stress_tests.rs:119:2886 |87119 | let root = all[rng.random_range(0..all.len())];88 | ^^^^^^^^^^^^89 |90 ::: /nix/store/dpqyr8g1g3jwll4q9y8ld4gk5qch6mn9-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/rand-0.10.2/src/rng.rs:163:891 |92163 | fn random_range<T, R>(&mut self, range: R) -> T93 | ------------ the method is available for `rand::prelude::StdRng` here94 |95 = help: items from traits can only be used if the trait is in scope96help: there is a method `random` with a similar name, but with different arguments97 --> /nix/store/dpqyr8g1g3jwll4q9y8ld4gk5qch6mn9-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/rand-0.10.2/src/rng.rs:93:598 |99 93 | / fn random<T>(&mut self) -> T100 94 | | where101 95 | | StandardUniform: Distribution<T>,102 | |_________________________________________^103help: trait `RngExt` which provides `random_range` is implemented but not in scope; perhaps you want to import it104 |105 15 + use rand::RngExt;106 |107108 Checking harmonia-protocol v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-protocol)109 Checking harmonia-cache v3.2.0 (/nix/var/nix/builds/nix-82308-3465904146/source/harmonia-cache)110error[E0599]: no method named `random_range` found for struct `rand::prelude::StdRng` in the current scope111 --> harmonia-store-gc/src/gc_socket/stress_tests.rs:140:17112 |113140 | let n = rng.random_range(4..44);114 | ^^^^^^^^^^^^115 |116 ::: /nix/store/dpqyr8g1g3jwll4q9y8ld4gk5qch6mn9-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/rand-0.10.2/src/rng.rs:163:8117 |118163 | fn random_range<T, R>(&mut self, range: R) -> T119 | ------------ the method is available for `rand::prelude::StdRng` here120 |121 = help: items from traits can only be used if the trait is in scope122help: there is a method `random` with a similar name, but with different arguments123 --> /nix/store/dpqyr8g1g3jwll4q9y8ld4gk5qch6mn9-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/rand-0.10.2/src/rng.rs:93:5124 |125 93 | / fn random<T>(&mut self) -> T126 94 | | where127 95 | | StandardUniform: Distribution<T>,128 | |_________________________________________^129help: trait `RngExt` which provides `random_range` is implemented but not in scope; perhaps you want to import it130 |131 15 + use rand::RngExt;132 |133134For more information about this error, try `rustc --explain E0599`.135error: could not compile `harmonia-store-gc` (lib test) due to 5 previous errors136warning: build failed, waiting for other jobs to finish...