-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Fixed PhantomData markers in Arc and Rc #66117
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
This is probably a little above my head -- cc @RalfJung and r? @alexcrichton |
I'd argue that
Aren't these |
Just to add candidate to be fixed:
In case of However |
What do you mean by "stop dropck from deleting value"? dropck needs to detect possible cycles and, in particular, it needs to know which other types will be dropped when this one is dropped. Dropping a |
Thanks, this looks right to me! Once CI is green, can you do @bors delegate+ rollup |
✌️ @olegnn can now approve this pull request |
1 similar comment
✌️ @olegnn can now approve this pull request |
Sure! Thank you for explanation. |
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 |
@bors r=RalfJung |
📌 Commit 6a59319 has been approved by |
…RalfJung Fixed PhantomData markers in Arc and Rc Include owned internal structs in `PhantomData` markers in `Arc` (`PhantomData<T>` => `PhantomData<ArcInner<T>>`) and `Rc` (`PhantomData<T>` => `PhantomData<RcBox<T>>`).
…RalfJung Fixed PhantomData markers in Arc and Rc Include owned internal structs in `PhantomData` markers in `Arc` (`PhantomData<T>` => `PhantomData<ArcInner<T>>`) and `Rc` (`PhantomData<T>` => `PhantomData<RcBox<T>>`).
…RalfJung Fixed PhantomData markers in Arc and Rc Include owned internal structs in `PhantomData` markers in `Arc` (`PhantomData<T>` => `PhantomData<ArcInner<T>>`) and `Rc` (`PhantomData<T>` => `PhantomData<RcBox<T>>`).
Rollup of 12 pull requests Successful merges: - #65794 (gate rustc_on_unimplemented under rustc_attrs) - #65945 (Optimize long-linker-command-line test) - #66044 (Improve uninit/zeroed lint) - #66076 (HIR docs: mention how to resolve method paths) - #66084 (Do not require extra LLVM backends for `x.py test` to pass) - #66111 (improve from_raw_parts docs) - #66114 (Improve std::thread::Result documentation) - #66117 (Fixed PhantomData markers in Arc and Rc) - #66146 (Remove unused parameters in `__thread_local_inner`) - #66147 (Miri: Refactor to_scalar_ptr out of existence) - #66162 (Fix broken link in README) - #66171 (Update link on CONTRIBUTING.md) Failed merges: r? @ghost
This is akin to rust-lang/rust#66117.
Include owned internal structs in
PhantomData
markers inArc
(PhantomData<T>
=>PhantomData<ArcInner<T>>
) andRc
(PhantomData<T>
=>PhantomData<RcBox<T>>
).