-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Delete Rvalue::Len
🎉
#134330
base: master
Are you sure you want to change the base?
Delete Rvalue::Len
🎉
#134330
Conversation
// actual = len(place) | ||
self.cfg.push_assign(block, source_info, actual, Rvalue::Len(place)); | ||
let actual = self.len_of_slice_or_array(block, place, test.span, source_info); |
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.
One functional change here, reusing this helper from #133734
mir! { | ||
{ | ||
let x = [5_i32; C]; | ||
let c = Len(x); |
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.
This was here testing the custom-mir Len
, which is removed here, so I deleted the test.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Everything's moved to `PtrMetadata` instead.
761e299
to
db4e734
Compare
☔ The latest upstream changes (presumably #134332) made this pull request unmergeable. Please resolve the merge conflicts. |
Everything's moved to
PtrMetadata
, so we can get rid of theLen
variant now.Depends on #134326, so draft until that lands
r? mir