about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPiotr Czarnecki <pioczarn@gmail.com>2016-01-06 18:07:21 +0100
committerPiotr Czarnecki <pioczarn@gmail.com>2016-01-06 18:07:21 +0100
commite2ccc4f744b93f89666fe4c8828905297bb76178 (patch)
treed85e5ca354621467a256d77bea6338cf7bb0671b
parent388e6afa1db74637169dcb65b1720c5e2f73c1d5 (diff)
downloadrust-e2ccc4f744b93f89666fe4c8828905297bb76178.tar.gz
rust-e2ccc4f744b93f89666fe4c8828905297bb76178.zip
Deprecate reflection-based Arena
-rw-r--r--src/libarena/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libarena/lib.rs b/src/libarena/lib.rs
index 32053e048a9..cd2093984e6 100644
--- a/src/libarena/lib.rs
+++ b/src/libarena/lib.rs
@@ -38,6 +38,8 @@
 #![feature(dropck_parametricity)]
 #![cfg_attr(test, feature(test))]
 
+#![allow(deprecated)]
+
 extern crate alloc;
 
 use std::cell::{Cell, RefCell};
@@ -122,6 +124,10 @@ impl Chunk {
 /// than objects without destructors. This reduces overhead when initializing
 /// plain-old-data (`Copy` types) and means we don't need to waste time running
 /// their destructors.
+#[unstable(feature = "rustc_private",
+           reason = "Private to rustc", issue = "0")]
+#[rustc_deprecated(since = "1.6.0-dev", reason =
+"The reflection-based arena is superseded by the any-arena crate")]
 pub struct Arena<'longer_than_self> {
     // The heads are separated out from the list as a unbenchmarked
     // microoptimization, to avoid needing to case on the list to access a head.