about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-05-10 11:01:46 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-05-10 11:01:46 +0530
commit459652c832815118cf78c30f7a59cea99c43d308 (patch)
treee619018cbe727c13c3a4c13d8a470fe79de4a6a8 /src/liballoc
parentfd099b2d50e38a3ccd3f43e4457e5f73f089f075 (diff)
parent7984074e25e2d4ac2b5bc125d44e38a280f964f9 (diff)
downloadrust-459652c832815118cf78c30f7a59cea99c43d308.tar.gz
rust-459652c832815118cf78c30f7a59cea99c43d308.zip
Rollup merge of #25251 - nham:whitespace_lang_items, r=Manishearth
In my opinion this looks nicer, but also it matches the whitespace generally
used for stability markers.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/heap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs
index 86a04a0687a..83795a24c81 100644
--- a/src/liballoc/heap.rs
+++ b/src/liballoc/heap.rs
@@ -95,7 +95,7 @@ pub const EMPTY: *mut () = 0x1 as *mut ();
 
 /// The allocator for unique pointers.
 #[cfg(not(test))]
-#[lang="exchange_malloc"]
+#[lang = "exchange_malloc"]
 #[inline]
 unsafe fn exchange_malloc(size: usize, align: usize) -> *mut u8 {
     if size == 0 {
@@ -108,7 +108,7 @@ unsafe fn exchange_malloc(size: usize, align: usize) -> *mut u8 {
 }
 
 #[cfg(not(test))]
-#[lang="exchange_free"]
+#[lang = "exchange_free"]
 #[inline]
 unsafe fn exchange_free(ptr: *mut u8, old_size: usize, align: usize) {
     deallocate(ptr, old_size, align);