Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gstreamer-rs gstreamer-rs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 36
    • Issues 36
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • gstreamer-rsgstreamer-rs
  • Issues
  • #360

Closed
Open
Created Nov 05, 2021 by Tim-Philipp Müller@tpm🐠Owner

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 Nov 05, 2021 by Tim-Philipp Müller
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking