Skip to content

Rustc: Inferred lifetimes are missing from SynGenericArgs #208

@xFrednet

Description

@xFrednet

Inferred lifetimes, like the '_ in Cow<'_, str>, are currently not listed in the syntactic representation of generic args, even though it should be. It's probably a bug in MarkerConverterInner::to_lifetime

Code to test in marker_uilints:

use std::borrow::Cow;

// lifetime is missing:
pub fn print_me_cow(_cow: Cow<'_, str>) {}

// named lifetiems are listed:
pub fn print_me_cow<'a>(_cow: Cow<'a, str>) {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-driverArea: Driver or something related to the internal working of a driver.C-bugCategory: Something isn't workingD-rustc-driverDriver: Rustc Driver

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions