Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

gstreamer fails to build with RLS #1390

Closed
rust-lang/rust
#59894
@elomatreb

Description

@elomatreb

Hi. I'm having a problem with the gstreamer crate. Adding it to my dependencies causes the RLS to emit build errors, while the regular cargo build from the command line works fine.

This happens even without any code of mine (simple demo).

The error in the Visual Studio Code console (formatted):

{
    "message": "cannot extract an associated type from a higher-ranked trait bound in this context",
    "code": {
        "code": "E0212",
        "explanation": null
    },
    "level": "error",
    "spans": [
        {
            "file_name": "/home/elomatreb/.cargo/registry/src/github.com-1ecc6299db9ec823/gstreamer-0.13.0/src/tags.rs",
            "byte_start": 20318,
            "byte_end": 20341,
            "line_start": 830,
            "line_end": 830,
            "column_start": 13,
            "column_end": 36,
            "is_primary": true,
            "text": [
                {
                    "text": "            T::TagType::static_type().to_glib(),",
                    "highlight_start": 13,
                    "highlight_end": 36
                }
            ],
            "label": null,
            "suggested_replacement": null,
            "suggestion_applicability": null,
            "expansion": null
        }
    ],
    "children": [],
    "rendered": "error[E0212]: cannot extract an associated type from a higher-ranked trait bound in this context\n   --> /home/elomatreb/.cargo/registry/src/github.com-1ecc6299db9ec823/gstreamer-0.13.0/src/tags.rs:830:13\n    |\n830 |             T::TagType::static_type().to_glib(),\n    |             ^^^^^^^^^^^^^^^^^^^^^^^\n\n"
}
{
    "message": "aborting due to previous error",
    "code": null,
    "level": "error",
    "spans": [],
    "children": [],
    "rendered": "error: aborting due to previous error\n\n"
}
{
    "message": "For more information about this error, try `rustc --explain E0212`.",
    "code": null,
    "level": "",
    "spans": [],
    "children": [],
    "rendered": "For more information about this error, try `rustc --explain E0212`.\n"
}

This is the line the error reports, but the level of Rust I feel like is necessary to understand the error is a little beyond me.

I'm sorry if this is a user error, I'm still fairly new to Rust in general.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions