-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Pretty-print argument-position impl trait to name it. #113955
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
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
I don't understand the reasons behind this change/the difference of RPIT/APIT in the case/implications, could you explain more? @cjgillot |
@rustbot author |
impl-trait are currently given an anonymous def-path This is fine for stuff that are truly anonymous, like an RPIT or the opaques inside a TAIT. Those have an empty name in HIR. APIT do have a name: themselves pretty-printed. So there is no real reason not to give them that name in their def-path, to be the user-facing |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (bdb0fa3): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Bootstrap: 631.689s -> 631.334s (-0.06%) |
This removes a corner case.
RPIT and TAIT keep having no name, and it would be wrong to use the one in HIR (Ident::empty), so I make this case ICE.