about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-01-29 03:14:35 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-01-29 03:14:35 +0530
commitf553f58b7f03a863f28f7897cc0b8214d7736a01 (patch)
tree04f9f1e4f8b1f1eb3e696034d1b16eae3b2c8df2 /src/liballoc
parent7abbc96e6694c1e395171df8492ba48fa14c935f (diff)
parent57dd4ea78d527f1c81f6009d0132bf210dd8fdfd (diff)
downloadrust-f553f58b7f03a863f28f7897cc0b8214d7736a01.tar.gz
rust-f553f58b7f03a863f28f7897cc0b8214d7736a01.zip
Rollup merge of 21681 - japaric:no-warn, r=alexcrichton
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/heap.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs
index dcbd4d57cf9..1fb6290c7a3 100644
--- a/src/liballoc/heap.rs
+++ b/src/liballoc/heap.rs
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[cfg(not(test))]
 use core::ptr::PtrExt;
 
 // FIXME: #13996: mark the `allocate` and `reallocate` return value as `noalias`