Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rustc: Inferred lifetimes are missing from SynGenericArgs #208

Open
xFrednet opened this issue Jul 31, 2023 · 0 comments
Open

Rustc: Inferred lifetimes are missing from SynGenericArgs #208

xFrednet opened this issue Jul 31, 2023 · 0 comments
Labels
A-driver Area: Driver or something related to the internal working of a driver. C-bug Category: Something isn't working D-rustc-driver Driver: Rustc Driver
Milestone

Comments

@xFrednet
Copy link
Member

xFrednet commented Jul 31, 2023

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>) {}
@xFrednet xFrednet added C-bug Category: Something isn't working D-rustc-driver Driver: Rustc Driver A-driver Area: Driver or something related to the internal working of a driver. labels Jul 31, 2023
@xFrednet xFrednet added this to the v0.3.0 milestone Aug 29, 2023
@xFrednet xFrednet modified the milestones: v0.3.0, v0.4.0 Oct 4, 2023
@xFrednet xFrednet modified the milestones: v0.4.0, v0.5.0 Nov 16, 2023
@xFrednet xFrednet modified the milestones: v0.5.0, v0.6.0 Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-driver Area: Driver or something related to the internal working of a driver. C-bug Category: Something isn't working D-rustc-driver Driver: Rustc Driver
Projects
None yet
Development

No branches or pull requests

1 participant