Closed
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