Tracking Issue for const_destruct
#133214
Labels
C-tracking-issue
Category: A tracking issue for an RFC or an unstable feature.
F-const_trait_impl
`#![feature(const_trait_impl)]`
PG-const-traits
Project group: Const traits
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Feature gate:
#![feature(const_destruct)]
This is a tracking issue for
const_destruct
, which enables the naming of theDestruct
trait and its use in~const
bounds to allow dropping values in const contexts.Public API
Steps / History
~const Destruct
effect goals in the new solver #132329.Unresolved Questions
~const
bounds onconst Drop
impls?I think we do, and sorely need them for const drop to ever be useful. See my justification in #132329 (comment). We want to be able to implement a conditional drop impl like:
This is what is implemented on nightly.
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: