-
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
Use drop_in_place
in array::IntoIter::drop
#65821
Conversation
r? @Kimundi (rust_highfive has picked a reviewer for you, use r? to override) |
Ping from triage. |
Pinging again from triage. |
r? @Amanieu |
@bors r+ |
📌 Commit f4c59b3 has been approved by |
⌛ Testing commit f4c59b3 with merge 3ee3c488084427b19d5091a186ac7304b1029a0a... |
Use `drop_in_place` in `array::IntoIter::drop` This skips the loop when the element type is known not to have drop glue, even in debug mode.
@bors retry rolled up |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
⌛ Testing commit f4c59b3 with merge b6b6d352012f5c6c7da0adedfb493a0a4bc9c47d... |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
💔 Test failed - checks-azure |
Ping from Triage: @Amanieu @JohnTitor @SimonSapin any updates? |
tidy check is failed due to undocumented unsafe block |
This skips the loop when the element type is known not to have drop glue, even in debug mode.
Rebased and added |
Let’s maybe not keep blocking this. One of the new safety comments is copied from an existing similar method, the other seems straight-forward enough that I’ll take the liberty of carrying the review of the comment-less diff: @bors r=Amanieu |
📌 Commit 74b5714 has been approved by |
Use `drop_in_place` in `array::IntoIter::drop` This skips the loop when the element type is known not to have drop glue, even in debug mode.
☀️ Test successful - checks-azure |
This skips the loop when the element type is known not to have drop glue, even in debug mode.