-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
preserve name of type parameter when printing #2951
Comments
Reproduced as of b60a0be |
Reproduced with:
produces error:
|
I don't believe this is backwards incompatible, renominating. |
accepted for production-ready milestone |
linking to the metabug #3195 so that this ticket gets an entry (with status) in its comments area. |
bors
added a commit
that referenced
this issue
Sep 4, 2018
Update RLS and Rustfmt RLS * Allow project model to download crates ([#1020](rust-lang/rls#1020)) * Support simple external builds ([#988](rust-lang/rls#988)) * Support using external Rustfmt ([#990](rust-lang/rls#990)) Rustfmt (0.99.4) * Format chains with comment ([#2899](https://github.com/rust-lang-nursery/rls/pull/2899)) * Do not show wildcard pattern in slice pattern ([#2912](https://github.com/rust-lang-nursery/rls/pull/2912)) * Impl only use ([#2951](https://github.com/rust-lang-nursery/rls/pull/2951)) * ... and [more](rust-lang/rustfmt@5c9a2b6...1c40881) Bumped in tandem to pull a single version of `rustc-ap-*` libs. r? @nrc
RalfJung
pushed a commit
to RalfJung/rust
that referenced
this issue
Jul 8, 2023
cron auto-PR: need to set upstream branch
celinval
pushed a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
Dependency upgrade resulting from `cargo update`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now type parameters are printed as
'a
or'b
wherea
andb
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 thety_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
The text was updated successfully, but these errors were encountered: