FTBFS with latest stable rustc: implementation of `FromValue` is not general enough
Fails like this (rustc 1.56.1) for me:
Compiling gstreamer v0.18.0 (https://gitlab.freedesktop.org/gstreamer/gstreamer-rs#82b72393)
error: implementation of `FromValue` is not general enough
--> /home/tpm/.cargo/git/checkouts/gstreamer-rs-79e52a2d27eb91a3/82b7239/gstreamer/src/value.rs:682:10
|
682 | impl<'a> glib::value::ValueType for Array<'static> {
| ^^^^^^^^^^^^^^^^^^^^^^ implementation of `FromValue` is not general enough
|
= note: `FromValue<'0>` would have to be implemented for the type `value::Array<'static>`, for any lifetime `'0`...
= note: ...but `FromValue<'1>` is actually implemented for the type `value::Array<'1>`, for some specific lifetime `'1`
error: implementation of `FromValue` is not general enough
--> /home/tpm/.cargo/git/checkouts/gstreamer-rs-79e52a2d27eb91a3/82b7239/gstreamer/src/value.rs:784:6
|
784 | impl glib::value::ValueType for List<'static> {
| ^^^^^^^^^^^^^^^^^^^^^^ implementation of `FromValue` is not general enough
|
= note: `FromValue<'0>` would have to be implemented for the type `value::List<'static>`, for any lifetime `'0`...
= note: ...but `FromValue<'1>` is actually implemented for the type `value::List<'1>`, for some specific lifetime `'1`
error: could not compile `gstreamer` due to 2 previous errors
Can also be reproduced on CI by bumping the image tags, e.g.: https://gitlab.freedesktop.org/tpm/gst-plugins-rs/-/jobs/15530197
Edited by Tim-Philipp Müller