From e2ccc4f744b93f89666fe4c8828905297bb76178 Mon Sep 17 00:00:00 2001 From: Piotr Czarnecki Date: Wed, 6 Jan 2016 18:07:21 +0100 Subject: [PATCH] Deprecate reflection-based Arena --- src/libarena/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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 @@ unsafe fn destroy(&self) { /// 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. -- 2.44.0