Skip to content

Fails to build with rust 1.89.0 #1585

@yurivict

Description

@yurivict

Description of the bug

error[E0308]: `match` arms have incompatible types
   --> /wrkdirs/usr/ports/devel/git-branchless/work/git-branchless-0.10.0/cargo-crates/esl01-indexedlog-0.3.0/src/lock.rs:138:30
    |
134 | /         match (opts.exclusive, opts.non_blocking) {
135 | |             (true, false) => file.lock_exclusive(),
    | |                              --------------------- this is found to be of type `std::result::Result<(), std::io::Error>`
136 | |             (true, true) => file.try_lock_exclusive(),
    | |                             ------------------------- this is found to be of type `std::result::Result<(), std::io::Error>`
137 | |             (false, false) => file.lock_shared(),
    | |                               ------------------ this is found to be of type `std::result::Result<(), std::io::Error>`
138 | |             (false, true) => file.try_lock_shared(),
    | |                              ^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Error>`, found `Result<(), TryLockError>`
139 | |         }
    | |_________- `match` arms have incompatible types

Downstream bug report.

Version: 0.10.0
FreeBSD 14.3

Expected behavior

No response

Actual behavior

No response

Version of rustc

No response

Automated bug report

No response

Version of git-branchless

No response

Version of git

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions