From f293ea28b4beb5821feedc862619ec539f742cc3 Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Thu, 24 Sep 2015 18:00:08 +0300 Subject: Remove the deprecated box(PLACE) syntax. --- src/liballoc/boxed.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/liballoc') diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 4293b4765e1..3239677fc0c 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -80,11 +80,10 @@ use core::raw::{TraitObject}; /// use std::boxed::HEAP; /// /// fn main() { -/// let foo = box(HEAP) 5; +/// let foo: Box = in HEAP { 5 }; /// let foo = box 5; /// } /// ``` -#[lang = "exchange_heap"] #[unstable(feature = "box_heap", reason = "may be renamed; uncertain about custom allocator design", issue = "27779")] -- cgit 1.4.1-3-g733a5