Skip to content

uudoc fails to build #7572

@drinkcat

Description

@drinkcat

Looks like this is not covered by CI, cargo clippy hits this quite regularly on a local machine.

$ cargo build --bin uudoc --features="uudoc"
error: reference patterns may only be written when the default binding mode is `move`
   --> src/bin/uudoc.rs:117:14
    |
117 |         for (&name, _) in &utils {
    |              ^ reference pattern not allowed under `ref` default binding mode
    |
    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
note: matching on a reference type with a non-reference pattern changes the default binding mode
   --> src/bin/uudoc.rs:117:13
    |
117 |         for (&name, _) in &utils {
    |             ^^^^^^^^^^ this matches on type `&_`
help: make the implied reference pattern explicit
    |
117 |         for &(&name, _) in &utils {
    |             +

error: could not compile `coreutils` (bin "uudoc") due to 1 previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions