HomeFreeBSD

multimedia/termplay: Unbreak build with Rust 1.40.0 (D22843)

Description

multimedia/termplay: Unbreak build with Rust 1.40.0 (D22843)

error[E0596]: cannot borrow **func as mutable, as it is behind a *const pointer

--> .../cargo-crates/gstreamer-0.11.2/src/iterator.rs:439:8
 |

435 | let func = func as *const &mut (FnMut(T) -> bool);

|         ---- help: consider changing this to be a mutable pointer: `*mut &mut dyn std::ops::FnMut(T) -> bool`

...
439 | if (*func)(value) {

|        ^^^^^^^ `func` is a `*const` pointer, so the data it refers to cannot be borrowed as mutable

error[E0596]: cannot borrow **func as mutable, as it is behind a *const pointer

--> .../cargo-crates/gstreamer-0.11.2/src/iterator.rs:455:5
 |

451 | let func = func as *const &mut (FnMut(T));

|         ---- help: consider changing this to be a mutable pointer: `*mut &mut dyn std::ops::FnMut(T)`

...
455 | (*func)(value);

|     ^^^^^^^ `func` is a `*const` pointer, so the data it refers to cannot be borrowed as mutable

error[E0596]: cannot borrow **func as mutable, as it is behind a *const pointer

--> .../cargo-crates/gstreamer-0.11.2/src/iterator.rs:473:11
 |

467 | let func = func as *const &mut (FnMut(U, T) -> Result<U, U>);

|         ---- help: consider changing this to be a mutable pointer: `*mut &mut dyn std::ops::FnMut(U, T) -> std::result::Result<U, U>`

...
473 | match (*func)(accum.take().unwrap(), value) {

|           ^^^^^^^ `func` is a `*const` pointer, so the data it refers to cannot be borrowed as mutable

error: aborting due to 3 previous errors

Details

Provenance
tobikAuthored on
Parents
rP520306: multimedia/kodi-devel: Update to newer snapshot
Branches
Unknown
Tags
Unknown