Description of problem: rust was updated to 1.71.0 on centos stream 9 causing FTBFS issues with 389-ds-base-2.3.4-3.el9 Issue #1: error: using `.borrow()` on a double reference, which returns `&concread::cowcell::CowCellReadTxn<CacheStats>` instead of borrowing the inner type --> librslapd/src/cache.rs:60:28 | 60 | let stats = stat_rguard.borrow(); | ^^^^^^^^^ | note: the lint level is defined here --> librslapd/src/lib.rs:1:9 | 1 | #![deny(warnings)] | ^^^^^^^^ = note: `#[deny(suspicious_double_ref_op)]` implied by `#[deny(warnings)]` error: could not compile `librslapd` (lib) due to previous error This is also reported as bug#2225471 Issue #2: error: variable does not need to be mutable --> slapi_r_plugin/src/value.rs:185:13 | 185 | let mut v = unsafe { slapi_value_new() }; | ----^ | | | help: remove this `mut` | note: the lint level is defined here --> slapi_r_plugin/src/lib.rs:1:9 | 1 | #![deny(warnings)] | ^^^^^^^^ = note: `#[deny(unused_mut)]` implied by `#[deny(warnings)]` error: could not compile `slapi_r_plugin` (lib) due to previous error mut is obviously wrong here Attaching work-around for issue #1 and fix for #2.
Created attachment 1977476 [details] Work-around for rust-1.71.0 compiler issue
Created attachment 1977489 [details] Remove unused mut which rust-1.71.0 does not tolerate
Thank you for reporting this issue. I opened an upstream ticket for this: https://github.com/389ds/389-ds-base/issues/5861 Would you be okay to submit a PR upstream with your fixes? Thanks!
Looks like these were both fixed upstream.
Build 389-ds-base-2.3.6-2.el9 was successful with rust-1.71. Marking as Verified:Tested.
As per comment #c5 marking as VERIFIED.