-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Improve the documentation of drain members #92902
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
|
r? @yaahc (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
yaahc
left a comment
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.
The suggested changes look good to me. Happy to approve once you feel it's ready to merge.
|
Two more tweaks, in binary_heap.rs & set.rs |
|
I noticed a commit in #92706 deprecating the use of "yielding" for iterators. Well, this commit happens to remove a few more. |
|
I included "Leaking" paragraphs here, to keep this advanced topic separate from the main description. It possible to move them further away, to the description of the specific iterator type instead (e.g. from |
|
☔ The latest upstream changes (presumably #94024) made this pull request unmergeable. Please resolve the merge conflicts. |
I'm happy with the current version and ready to merge as is, but did you want to make any additional changes to use the |
|
Dang github interface. I can't tell what changes you pushed since you force pushed. Can you describe the changes you made so I know where to look rather than having to re-read everything carefully again? Also, for further changes can you push them as independent commits and only rebase to recombine at the end before we merge1? Footnotes
|
I forgot to propagate the change of "disappears" with "goes out of scope" in some places (as The Book calls it), fixed now. It's fine for me now. As to the current implementation of leakage, I think for |
I've often wondered how reviewers review, and I think I remember eventually applying a trick in an URL to see someone else's PR evolve or so, but I forgot how.
I did, even before reading your request. Not saying that I deserve a cookie now, but at least I might be pardoned for changing this PR so often
Seems easier for everyone to me, but long ago I got the opposite message. I suppose because then the reviewer doesn't have to return after the recombine and there's no risk that the recombine isn't what it's supposed to be. It also allows using the github buttons to accept inline small changes. |
Odd, the only time I've seen pushback is when I do a merge commit of
loool, another race condition1 it seems.
sounds good! thank you ^_^ @bors r+ Footnotes
|
|
📌 Commit a677e60 has been approved by |
…askrgr Rollup of 7 pull requests Successful merges: - rust-lang#92902 (Improve the documentation of drain members) - rust-lang#93658 (Stabilize `#[cfg(panic = "...")]`) - rust-lang#93954 (rustdoc-json: buffer output) - rust-lang#93979 (Add debug assertions to validate NUL terminator in c strings) - rust-lang#93990 (pre rust-lang#89862 cleanup) - rust-lang#94006 (Use a `Field` in `ConstraintCategory::ClosureUpvar`) - rust-lang#94086 (Fix ScalarInt to char conversion) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
hopefully fixes #92765