Skip to content

Commit a77f046

Browse files
Add feature gate for precise live drop checking
1 parent d73674e commit a77f046

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/librustc_feature/active.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,9 @@ declare_features! (
577577
/// Allows `extern "avr-interrupt" fn()` and `extern "avr-non-blocking-interrupt" fn()`.
578578
(active, abi_avr_interrupt, "1.45.0", Some(69664), None),
579579

580+
/// Be more precise when looking for live drops in a const context.
581+
(active, const_precise_live_drops, "1.46.0", Some(73255), None),
582+
580583
// -------------------------------------------------------------------------
581584
// feature-group-end: actual feature gates
582585
// -------------------------------------------------------------------------

src/librustc_span/symbol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ symbols! {
227227
const_loop,
228228
const_mut_refs,
229229
const_panic,
230+
const_precise_live_drops,
230231
const_raw_ptr_deref,
231232
const_raw_ptr_to_usize_cast,
232233
const_transmute,

0 commit comments

Comments
 (0)