-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
impl Rc::new_cyclic
#75994
impl Rc::new_cyclic
#75994
Conversation
r? @KodrAus |
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.
Thanks for working on this @mental32!
This follows the same dance as Arc::new_cyclic
, which carefully avoids creating references to uninitialized data. Would you like to pull in some of the comments from Arc::new_cyclic
into this Rc::new_cyclic
function too so visitors can follow what's going on?
@KodrAus I've mad the suggested changes, feel free to review again :) |
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.
Thanks @mental32!
This looks good to me
@bors r+ rollup |
📌 Commit 0f301e8 has been approved by |
`impl Rc::new_cyclic` References rust-lang#75861 r? @Dylan-DPC
`impl Rc::new_cyclic` References rust-lang#75861 r? @Dylan-DPC
`impl Rc::new_cyclic` References rust-lang#75861 r? @Dylan-DPC
`impl Rc::new_cyclic` References rust-lang#75861 r? @Dylan-DPC
`impl Rc::new_cyclic` References rust-lang#75861 r? @Dylan-DPC
`impl Rc::new_cyclic` References rust-lang#75861 r? @Dylan-DPC
`impl Rc::new_cyclic` References rust-lang#75861 r? @Dylan-DPC
`impl Rc::new_cyclic` References rust-lang#75861 r? @Dylan-DPC
Rollup of 11 pull requests Successful merges: - rust-lang#75695 (Add a regression test for issue-72793) - rust-lang#75741 (Refactor byteorder to std in rustc_middle) - rust-lang#75954 (Unstable Book: add links to tracking issues for FFI features) - rust-lang#75994 (`impl Rc::new_cyclic`) - rust-lang#76060 (Link vec doc to & reference) - rust-lang#76078 (Remove disambiguators from intra doc link text) - rust-lang#76082 (Fix intra-doc links on pub re-exports) - rust-lang#76254 (Fold length constant in Rvalue::Repeat) - rust-lang#76258 (x.py check checks tests/examples/benches) - rust-lang#76263 (inliner: Check for codegen fn attributes compatibility) - rust-lang#76285 (Move jointness censoring to proc_macro) Failed merges: r? @ghost
References #75861
r? @Dylan-DPC