summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-07 18:53:58 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-07 19:27:27 -0800
commit0dc48b47a8c67eb28e7b89a6c0810dc9446377f7 (patch)
tree6ecc7fd6e3031c1d57e85dd6612489903a595b71 /src/liballoc
parent11e265c2e0af99a81caf888fc39cc903dc74f1cd (diff)
downloadrust-0dc48b47a8c67eb28e7b89a6c0810dc9446377f7.tar.gz
rust-0dc48b47a8c67eb28e7b89a6c0810dc9446377f7.zip
Test fixes and rebase conflicts
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs10
-rw-r--r--src/liballoc/heap.rs2
2 files changed, 7 insertions, 5 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index fdc3b52c4d3..97b198164eb 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -33,12 +33,15 @@ use core::ops::{Deref, DerefMut};
 /// The following two examples are equivalent:
 ///
 /// ```rust
+/// #![feature(box_syntax)]
 /// use std::boxed::HEAP;
 ///
+/// fn main() {
 /// # struct Bar;
 /// # impl Bar { fn new(_a: int) { } }
-/// let foo = box(HEAP) Bar::new(2);
-/// let foo = box Bar::new(2);
+///     let foo = box(HEAP) Bar::new(2);
+///     let foo = box Bar::new(2);
+/// }
 /// ```
 #[lang = "exchange_heap"]
 #[experimental = "may be renamed; uncertain about custom allocator design"]
@@ -49,10 +52,9 @@ pub static HEAP: () = ();
 #[stable]
 pub struct Box<T>(Unique<T>);
 
-#[unstable]
 impl<T> Box<T> {
     /// Moves `x` into a freshly allocated box on the global exchange heap.
-    #[unstable]
+    #[stable]
     pub fn new(x: T) -> Box<T> {
         box x
     }
diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs
index 439bb6c55dc..02933c763ef 100644
--- a/src/liballoc/heap.rs
+++ b/src/liballoc/heap.rs
@@ -125,7 +125,7 @@ const MIN_ALIGN: uint = 8;
           not(feature = "external_crate"),
           any(target_arch = "x86",
               target_arch = "x86_64",
-              target_arch = "aarch64"))]
+              target_arch = "aarch64")))]
 const MIN_ALIGN: uint = 16;
 
 #[cfg(feature = "external_funcs")]