HomeFreeBSD

databases/gobang: Fix build with rust 1.73.0

Description

databases/gobang: Fix build with rust 1.73.0

Import upstream patch to fix the following build error with rust 1.73.0
error[E0308]: mismatched types

--> /wrkdirs/usr/ports/databases/gobang/work/gobang-0.1.0-alpha.5/cargo-crates/num-bigint-0.3.2/src/biguint/convert.rs:70:19
 |

70 | .div_ceil(&big_digit::BITS.into())

|          -------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `&_`
|          |
|          arguments to this method are incorrect

error[E0308]: mismatched types

--> /wrkdirs/usr/ports/databases/gobang/work/gobang-0.1.0-alpha.5/cargo-crates/num-bigint-0.3.2/src/biguint/convert.rs:585:19
 |

585 | .div_ceil(&u64::from(bits))

|          -------- ^^^^^^^^^^^^^^^^ expected `u64`, found `&u64`
|          |
|          arguments to this method are incorrect

PR: 274499
Approved by: portmgr (build fix blanket)

Details

Provenance
Mikael Urankar <mikael@FreeBSD.org>Authored on Oct 16 2023, 10:39 AM
Parents
R11:b71e4863289c: textproc/ripgrep: Fix build with rust 1.73.0
Branches
Unknown
Tags
Unknown

Event Timeline

Mikael Urankar <mikael@FreeBSD.org> committed R11:3e99d4e97814: databases/gobang: Fix build with rust 1.73.0 (authored by Mikael Urankar <mikael@FreeBSD.org>).Oct 24 2023, 10:21 AM