Gate const drop behind const_destruct feature, and fix const_precise_live_drops post-drop-elaboration check

This commit is contained in:
Michael Goulet
2024-11-19 17:08:52 +00:00
parent b75c1c3dd6
commit 2088260852
28 changed files with 364 additions and 107 deletions

View File

@@ -426,6 +426,8 @@ declare_features! (
(unstable, const_async_blocks, "1.53.0", Some(85368)),
/// Allows `const || {}` closures in const contexts.
(incomplete, const_closures, "1.68.0", Some(106003)),
/// Uwu
(unstable, const_destruct, "CURRENT_RUSTC_VERSION", Some(133214)),
/// Allows `for _ in _` loops in const contexts.
(unstable, const_for, "1.56.0", Some(87575)),
/// Be more precise when looking for live drops in a const context.