-
Notifications
You must be signed in to change notification settings - Fork 289
Rework drop check stuff, it's probably outdated #17
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
Comments
One thing I didn't understand in the nomicon, is how dropck interacts with PhantomData. One section says for a hypothetical
There's no example for how this could be done and I couldn't construct one myself. |
A couple years ago I posted an answer to StackOverflow about this topic: https://stackoverflow.com/a/42720413/36585 But I didn't actually make a concrete test case to illustrate the point, and its possible that with all the changes that have happened over the years, the argument no longer applies. I should probably at least try to make the test again. |
An unsound example: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=ad0487c46e34d0075444769f06ac3721 Adding |
(Ideally we'd have an example that illustrates a case where, for correctness i.e. API completeness, you cannot remove the |
Corresponding reference issue: rust-lang/reference#303 |
So, is it the case that |
That sounds vaguely accurate, but this is all way too far out of cache |
I don't really understand or care about the new rules (they mostly just plug super-degenerate-you'll-probably-never-see-this holes in the language, afaict), but they're different and any discussion of dropcheck is probably wrong now.
CC @pnkfelix
The text was updated successfully, but these errors were encountered: