Skip to content
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

Tracking Issue for const ptr::drop_in_place #109342

Open
3 tasks
fee1-dead opened this issue Mar 19, 2023 · 1 comment
Open
3 tasks

Tracking Issue for const ptr::drop_in_place #109342

fee1-dead opened this issue Mar 19, 2023 · 1 comment
Labels
C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@fee1-dead
Copy link
Member

Feature gate: #![feature(const_drop_in_place)]

This is a tracking issue for using drop_in_place in const contexts

Public API

// core::ptr

pub const unsafe fn drop_in_place<T: ?Sized + ~const Destruct>(to_drop: *mut T);

Steps / History

Unresolved Questions

  • Confirm that things such as dyn Trait works with this as well

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

@fee1-dead fee1-dead added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. labels Mar 19, 2023
@juntyr
Copy link
Contributor

juntyr commented Mar 19, 2023

@fee1-dead The summary seems to link a different implementation PR Upon rereading the PR, I saw you also constified drop_in_place there - perhaps the PR title could reflect this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants