diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2019-12-17 06:40:51 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2019-12-17 06:40:51 +0000 |
commit | a12359b476675a067d590220996dafcc5a46fdc0 (patch) | |
tree | 4a2af7ecd9dcb1014bf3c1e45105500aae0580f8 /sysutils/flowgger/files/patch-rust-1.40.0 | |
parent | multimedia/kodi-devel: Update to newer snapshot (diff) |
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
Notes
Notes:
svn path=/head/; revision=520307
Diffstat (limited to 'sysutils/flowgger/files/patch-rust-1.40.0')
0 files changed, 0 insertions, 0 deletions