-
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
Add place.ty() and Ty build from a kind to smir #118015
Conversation
This PR changes Stable MIR cc @oli-obk, @celinval, @spastorino, @ouz-a |
☔ The latest upstream changes (presumably #118023) made this pull request unmergeable. Please resolve the merge conflicts. |
Thanks this is great, left few small nits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few nits
Needs a rebase, r=me after that, unless you want further review from ouz-a |
@ouz-a, I applied your suggestions. Is there any further changes you would like me to make? |
lgtm |
- Simplified DefTy::internal - Break down place::ty() method
0e6768a
to
d94df62
Compare
☀️ Test successful - checks-actions |
Finished benchmarking commit (390e3c8): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. 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.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 674.861s -> 674.879s (0.00%) |
Add a method to retrieve the type of a place and a few utility functions needed to build the projection type. I decided to return a result to avoid panicking if the user passes invalid inputs, such as wrong list of locals.
r? @spastorino