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

Duplicated lifetime name in diagnostic for higher-ranked type in higher-ranked trait bound #102414

Closed
cjgillot opened this issue Sep 28, 2022 · 1 comment · Fixed by #102514
Closed
Labels
A-diagnostics Area: Messages for errors, warnings, and lints T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@cjgillot
Copy link
Contributor

cjgillot commented Sep 28, 2022

In https://github.com/rust-lang/rust/pull/101454/files#diff-46c19c4c60dbf4dc95fd23bdb31dbba31d7001a7f269c4068c536522a09f25deR1

The diagnostic looks a bit silly. I don't know why we are choosing a 'b for the inner param.

Originally posted by @cjgillot in #101454 (comment)

@cjgillot cjgillot changed the title Duplicated diagnostic for higher-ranked type in higher-ranked trait bound Duplicated lifetime name in diagnostic for higher-ranked type in higher-ranked trait bound Sep 28, 2022
@Rageking8
Copy link
Contributor

@rustbot label +T-compiler +A-diagnostics

@rustbot rustbot added A-diagnostics Area: Messages for errors, warnings, and lints T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 29, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Oct 8, 2022
…h726

Don't repeat lifetime names from outer binder in print

Fixes rust-lang#102392
Fixes rust-lang#102414

r? `@lcnr`
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Oct 8, 2022
…h726

Don't repeat lifetime names from outer binder in print

Fixes rust-lang#102392
Fixes rust-lang#102414

r? ``@lcnr``
@bors bors closed this as completed in 5ba30a6 Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants