mimblewimble / grin

Minimal implementation of the Mimblewimble protocol.
https://grin.mw/
Apache License 2.0
5.04k stars 990 forks source link

grin 5.1.2 failed to build against rust 1.71.0 #3764

Closed chenrui333 closed 1 year ago

chenrui333 commented 1 year ago

While upgrading rust to 1.71.0, we found that grin has some build issue with it, see the following build failure

   Compiling grin_servers v5.1.2 (/private/tmp/grin-20230719-64749-1pu5gsf/grin-5.1.2/servers)
error: variable does not need to be mutable
   --> servers/src/mining/stratumserver.rs:733:7
    |
733 |         let mut worker = wl
    |             ----^^^^^^
    |             |
    |             help: remove this `mut`
    |
note: the lint level is defined here
   --> servers/src/lib.rs:21:9
    |
21  | #![deny(unused_mut)]
    |         ^^^^^^^^^^

error: could not compile `grin_servers` (lib) due to previous error

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/5594719599/job/15158499681?pr=136514

yeastplume commented 1 year ago

Thanks for the report, the fix was included here, and should be in the next 5.2.0 beta release

https://github.com/mimblewimble/grin/pull/3763

chenrui333 commented 1 year ago

@yeastplume that patch works for me, can you also take a look at this issue, https://github.com/mimblewimble/grin-wallet/issues/683?

chenrui333 commented 1 year ago

closed via https://github.com/Homebrew/homebrew-core/pull/137419