-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-prettyArea: Pretty printing (including `-Z unpretty`)Area: Pretty printing (including `-Z unpretty`)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
Right now type parameters are printed as 'a
or 'b
where a
and b
are derived from the index of the type parameter in the list of type parameters. The user gave them names, we should print them! Part of the problem is that they may not be readily available; in the ty_param
variant we have the index and the def-id. I guess the latter ought to be enough to recover the name the user gave.
The relevant code is in rustc::util::ppaux
Metadata
Metadata
Assignees
Labels
A-prettyArea: Pretty printing (including `-Z unpretty`)Area: Pretty printing (including `-Z unpretty`)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Activity
owned
bound is overly cryptic #3366catamorphism commentedon Dec 6, 2012
Reproduced as of b60a0be
graydon commentedon May 8, 2013
Reproduced with:
produces error:
pcwalton commentedon May 16, 2013
I don't believe this is backwards incompatible, renominating.
graydon commentedon Jun 6, 2013
accepted for production-ready milestone
auto merge of #7698 : nikomatsakis/rust/issue-2951-type-parameter-nam…
pnkfelix commentedon Aug 22, 2013
linking to the metabug #3195 so that this ticket gets an entry (with status) in its comments area.
Auto merge of rust-lang#2951 - rust-lang:cron, r=RalfJung
Automatic cargo update to 2023-12-18 (rust-lang#2951)