-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
dropck doc oversights / revision #29111
Comments
👍 for a lint; CC @Manishearth |
hardwired lint makes sense here. Note that if you add a lint, you need to be careful about backcompat if you're going to be removing it. We don't have a framework for "obsolete" lints yet, but it could be added. |
Triage: I didn't even know this attribute was a thing! |
@steveklabnik The |
@pnkfelix Is there a chance you could comment on the status of this issue since the attribute was deprecated in favor of (other?) issues. |
Triage: with no comment from @pnkfelix, I'm going to consider this stale and close it. felix, please let me know if you think this is still important and we can re-open. |
I imagine the same scenario arises with |
The implementation of non-parametric dropck (#28861) included comments and doc that is missing a few things.
#[unsafe_destructor_blind_to_params]
on a struct that is using native pointers (e.g.struct Foo<T>( { ptr: *mut T }
) then you almost certainly need aPhantomData
in there.The old code before #28861 was in fact busted in this respect, as one can see by taking the test case from #29106 and running it on older versions of Rust.
The text was updated successfully, but these errors were encountered: