nixbot

builds

cancelled checks.aarch64-linux.clippy build #316 · raw · ·

1this derivation will be built:2  /nix/store/kcr8kj1flv6abxdv7767qm1swkhll3hh-harmonia-clippy-3.2.0.drv3Failed to find a machine for remote build!4derivation: kcr8kj1flv6abxdv7767qm1swkhll3hh-harmonia-clippy-3.2.0.drv5required (system, features): (aarch64-linux, [])61 available machines:7(systems, maxjobs, supportedFeatures, mandatoryFeatures)8([aarch64-darwin, x86_64-darwin], 8, [big-parallel, recursive-nix], [])9building '/nix/store/kcr8kj1flv6abxdv7767qm1swkhll3hh-harmonia-clippy-3.2.0.drv'10harmonia-clippy-3.2.0> tribuchet: building on eliza11harmonia-clippy-3.2.0> Running phase: unpackPhase12harmonia-clippy-3.2.0> unpacking source archive /nix/store/6yc8ydvfkk9gsc5ji3mfyrfwmggi71im-source13harmonia-clippy-3.2.0> source root is source14harmonia-clippy-3.2.0> Running phase: patchPhase15harmonia-clippy-3.2.0> Executing configureCargoCommonVars16harmonia-clippy-3.2.0> decompressing cargo artifacts from /nix/store/rqjn595xzp37ghd7zip4ps9w2lj7m4r4-harmonia-deps-3.2.0/target.tar.zst to target17harmonia-clippy-3.2.0> Running phase: updateAutotoolsGnuConfigScriptsPhase18harmonia-clippy-3.2.0> Running phase: configurePhase19harmonia-clippy-3.2.0> will append /build/source/.cargo-home/config.toml with contents of /nix/store/35b8f3kcyb8cgmv3n3cmwzljm8rzq3ph-vendor-cargo-deps/config.toml20harmonia-clippy-3.2.0> default configurePhase, nothing to do21harmonia-clippy-3.2.0> Running phase: buildPhase22harmonia-clippy-3.2.0> +++ command cargo --version23harmonia-clippy-3.2.0> cargo 1.97.0 (c980f4866 2026-06-30)24harmonia-clippy-3.2.0> +++ command cargo clippy --release --locked --all-targets --all-features -- -D warnings25harmonia-clippy-3.2.0>     Checking harmonia-utils-base-encoding v0.0.0-alpha.0 (/build/source/harmonia-utils-base-encoding)26harmonia-clippy-3.2.0>     Checking harmonia-file-core v3.2.0 (/build/source/harmonia-file-core)27harmonia-clippy-3.2.0>     Checking harmonia-utils-io v0.0.0-alpha.0 (/build/source/harmonia-utils-io)28harmonia-clippy-3.2.0>     Checking harmonia-utils-test v0.0.0-alpha.0 (/build/source/harmonia-utils-test)29harmonia-clippy-3.2.0>    Compiling harmonia-protocol-derive v3.2.0 (/build/source/harmonia-protocol-derive)30harmonia-clippy-3.2.0>     Checking harmonia-client v3.2.0 (/build/source/harmonia-client)31harmonia-clippy-3.2.0>     Checking harmonia-ssh-store v3.2.0 (/build/source/harmonia-ssh-store)32harmonia-clippy-3.2.0>     Checking harmonia-utils-hash v0.0.0-alpha.0 (/build/source/harmonia-utils-hash)33harmonia-clippy-3.2.0>     Checking harmonia-utils-signature v3.2.0 (/build/source/harmonia-utils-signature)34harmonia-clippy-3.2.0>     Checking harmonia-file-nar v3.2.0 (/build/source/harmonia-file-nar)35harmonia-clippy-3.2.0>     Checking harmonia-store-path v3.2.0 (/build/source/harmonia-store-path)36harmonia-clippy-3.2.0>     Checking harmonia-store-content-address v3.2.0 (/build/source/harmonia-store-content-address)37harmonia-clippy-3.2.0>     Checking harmonia-store-fs v3.2.0 (/build/source/harmonia-store-fs)38harmonia-clippy-3.2.0>     Checking harmonia-store-ref-scan v0.0.0-alpha.0 (/build/source/harmonia-store-ref-scan)39harmonia-clippy-3.2.0>     Checking harmonia-bench v3.2.0 (/build/source/harmonia-bench)40harmonia-clippy-3.2.0>     Checking harmonia-store-derivation v0.0.0-alpha.0 (/build/source/harmonia-store-derivation)41harmonia-clippy-3.2.0>     Checking harmonia-store-path-info v3.2.0 (/build/source/harmonia-store-path-info)42harmonia-clippy-3.2.0>     Checking harmonia-store-nar-info v3.2.0 (/build/source/harmonia-store-nar-info)43harmonia-clippy-3.2.0>     Checking harmonia-store-db v3.2.0 (/build/source/harmonia-store-db)44harmonia-clippy-3.2.0>     Checking harmonia-store-aterm v0.0.0-alpha.0 (/build/source/harmonia-store-aterm)45harmonia-clippy-3.2.0>     Checking harmonia-store-build-result v3.2.0 (/build/source/harmonia-store-build-result)46harmonia-clippy-3.2.0>     Checking harmonia-protocol v3.2.0 (/build/source/harmonia-protocol)47harmonia-clippy-3.2.0>     Checking harmonia-store-gc v3.2.0 (/build/source/harmonia-store-gc)48harmonia-clippy-3.2.0>     Checking harmonia-cache v3.2.0 (/build/source/harmonia-cache)49harmonia-clippy-3.2.0> error: this expression creates a reference which is immediately dereferenced by the compiler50harmonia-clippy-3.2.0>    --> harmonia-store-gc/src/gc.rs:186:3651harmonia-clippy-3.2.0>     |52harmonia-clippy-3.2.0> 186 |     let _gc_lock = acquire_gc_lock(&store.layout.state_dir())?;53harmonia-clippy-3.2.0>     |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.state_dir()`54harmonia-clippy-3.2.0>     |55harmonia-clippy-3.2.0>     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow56harmonia-clippy-3.2.0>     = note: `-D clippy::needless-borrow` implied by `-D warnings`57harmonia-clippy-3.2.0>     = help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`58harmonia-clippy-3.2.0> 59harmonia-clippy-3.2.0> error: this expression creates a reference which is immediately dereferenced by the compiler60harmonia-clippy-3.2.0>    --> harmonia-store-gc/src/gc.rs:201:3761harmonia-clippy-3.2.0>     |62harmonia-clippy-3.2.0> 201 |         match GcSocketServer::start(&store.layout.state_dir(), live, graph) {63harmonia-clippy-3.2.0>     |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.state_dir()`64harmonia-clippy-3.2.0>     |65harmonia-clippy-3.2.0>     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow66harmonia-clippy-3.2.0> 67harmonia-clippy-3.2.0> error: this expression creates a reference which is immediately dereferenced by the compiler68harmonia-clippy-3.2.0>    --> harmonia-store-gc/src/gc.rs:225:2569harmonia-clippy-3.2.0>     |70harmonia-clippy-3.2.0> 225 |             .load_graph(&store.layout.store_dir(), &opts.graph_options)?,71harmonia-clippy-3.2.0>     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.store_dir()`72harmonia-clippy-3.2.0>     |73harmonia-clippy-3.2.0>     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow74harmonia-clippy-3.2.0> 75harmonia-clippy-3.2.0> error: this expression creates a reference which is immediately dereferenced by the compiler76harmonia-clippy-3.2.0>    --> harmonia-store-gc/src/gc.rs:260:977harmonia-clippy-3.2.0>     |78harmonia-clippy-3.2.0> 260 |         &store.layout.state_dir(),79harmonia-clippy-3.2.0>     |         ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.state_dir()`80harmonia-clippy-3.2.0>     |81harmonia-clippy-3.2.0>     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow82harmonia-clippy-3.2.0> 83harmonia-clippy-3.2.0> error: this expression creates a reference which is immediately dereferenced by the compiler84harmonia-clippy-3.2.0>    --> harmonia-store-gc/src/gc.rs:276:3185harmonia-clippy-3.2.0>     |86harmonia-clippy-3.2.0> 276 |     for tr in find_temp_roots(&store.layout.state_dir())? {87harmonia-clippy-3.2.0>     |                               ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.state_dir()`88harmonia-clippy-3.2.0>     |89harmonia-clippy-3.2.0>     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow90harmonia-clippy-3.2.0> 91harmonia-clippy-3.2.0> error: the borrowed expression implements the required traits92harmonia-clippy-3.2.0>    --> harmonia-store-gc/src/gc.rs:314:3993harmonia-clippy-3.2.0>     |94harmonia-clippy-3.2.0> 314 |     if let Ok(entries) = fs::read_dir(&store.layout.real_store_dir()) {95harmonia-clippy-3.2.0>     |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.real_store_dir()`96harmonia-clippy-3.2.0>     |97harmonia-clippy-3.2.0>     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args98harmonia-clippy-3.2.0>     = note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings`99harmonia-clippy-3.2.0>     = help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`100harmonia-clippy-3.2.0> 101harmonia-clippy-3.2.0> error: this expression creates a reference which is immediately dereferenced by the compiler102harmonia-clippy-3.2.0>    --> harmonia-store-gc/src/gc.rs:570:49103harmonia-clippy-3.2.0>     |104harmonia-clippy-3.2.0> 570 |     let bytes_freed = bytes_freed + clean_links(&store.layout.links_dir())?;105harmonia-clippy-3.2.0>     |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.links_dir()`106harmonia-clippy-3.2.0>     |107harmonia-clippy-3.2.0>     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow108harmonia-clippy-3.2.0> 109harmonia-clippy-3.2.0> error: call to `.clone()` on a reference in this situation does nothing110harmonia-clippy-3.2.0>    --> harmonia-store-gc/src/gc.rs:385:55111harmonia-clippy-3.2.0>     |112harmonia-clippy-3.2.0> 385 |     let real_store_dir = store.layout.real_store_dir().clone();113harmonia-clippy-3.2.0>     |                                                       ^^^^^^^^114harmonia-clippy-3.2.0>     |115harmonia-clippy-3.2.0>     = note: the type `std::path::Path` does not implement `Clone`, so calling `clone` on `&std::path::Path` copies the reference, which does not do anything and can be removed116harmonia-clippy-3.2.0>     = note: `-D noop-method-call` implied by `-D warnings`117harmonia-clippy-3.2.0>     = help: to override `-D warnings` add `#[allow(noop_method_call)]`118harmonia-clippy-3.2.0> help: remove this redundant call119harmonia-clippy-3.2.0>     |120harmonia-clippy-3.2.0> 385 -     let real_store_dir = store.layout.real_store_dir().clone();121harmonia-clippy-3.2.0> 385 +     let real_store_dir = store.layout.real_store_dir();122harmonia-clippy-3.2.0>     |123harmonia-clippy-3.2.0> 124harmonia-clippy-3.2.0> error: could not compile `harmonia-store-gc` (lib) due to 8 previous errors125harmonia-clippy-3.2.0> warning: build failed, waiting for other jobs to finish...126harmonia-clippy-3.2.0> error: could not compile `harmonia-store-gc` (lib test) due to 8 previous errors