Skip to content

Commit e2ccc4f

Browse files
committed
Deprecate reflection-based Arena
1 parent 388e6af commit e2ccc4f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libarena/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
#![feature(dropck_parametricity)]
3939
#![cfg_attr(test, feature(test))]
4040

41+
#![allow(deprecated)]
42+
4143
extern crate alloc;
4244

4345
use std::cell::{Cell, RefCell};
@@ -122,6 +124,10 @@ impl Chunk {
122124
/// than objects without destructors. This reduces overhead when initializing
123125
/// plain-old-data (`Copy` types) and means we don't need to waste time running
124126
/// their destructors.
127+
#[unstable(feature = "rustc_private",
128+
reason = "Private to rustc", issue = "0")]
129+
#[rustc_deprecated(since = "1.6.0-dev", reason =
130+
"The reflection-based arena is superseded by the any-arena crate")]
125131
pub struct Arena<'longer_than_self> {
126132
// The heads are separated out from the list as a unbenchmarked
127133
// microoptimization, to avoid needing to case on the list to access a head.

0 commit comments

Comments
 (0)