diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-26 22:56:50 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-01-27 22:58:45 -0500 |
| commit | 57dd4ea78d527f1c81f6009d0132bf210dd8fdfd (patch) | |
| tree | e902970781d79e775f3c6599f1f845eadf17582b /src/liballoc | |
| parent | 92ff8ea52816982ad4cbfac8168e216d32d74c77 (diff) | |
| download | rust-57dd4ea78d527f1c81f6009d0132bf210dd8fdfd.tar.gz rust-57dd4ea78d527f1c81f6009d0132bf210dd8fdfd.zip | |
fix #[cfg(test)] warnings
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/heap.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs index a2643f4d0f7..c87d789901b 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` |
