-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Include type bindings on string representation of impl Trait
#63526
Comments
@rustbot claim Should have time tonight. 🙂 |
I'll probably better wait until #63507 is merged 😊 |
@iluuu1994 that should happen sometime today. |
@estebank Would you mind giving me a few pointers? I looked through the source code but it wasn't completely obvious to me on how to achieve this. Is this already supported by the |
I'm not sure if this codepath is using rust/src/librustc/ty/print/mod.rs Lines 212 to 255 in afc39bb
and make it use the |
I will try that, thanks @estebank 🙂 |
It's less than ideal, but using
|
@iluuu1994 this is the code you want to modify: rust/src/librustc/ty/print/pretty.rs Lines 556 to 604 in bea0372
probably looking at how associated types are printed for rust/src/librustc/ty/print/pretty.rs Lines 724 to 794 in bea0372
|
Thanks! Sorry I've just not gotten around to it. Hopefully tonight 😊 |
@iluuu1994 Are you still working on this? If not, I can grab it :) |
@oliviabrown9 Nope, feel free to take over. |
This issue seems to be about associated type bindings, but the title mentions type parameters. Due to This makes me think |
@rustbot release-assignment |
impl Trait
impl Trait
|
Follow up to #63507 (comment)
Include type arguments for traits when displaying
impl Trait
. For example, the following:should be
The text was updated successfully, but these errors were encountered: