diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-05-20 20:19:39 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-05-23 15:27:48 -0700 |
| commit | 1240197a5b64611078b4645b81663c206217dcb6 (patch) | |
| tree | 6d3ef3db662c61d58af3e4357614d28e1d4dc59a /src/libstd/unstable | |
| parent | 53db981148eb359f63ecfe4cf9815b5ed0da8f3f (diff) | |
| download | rust-1240197a5b64611078b4645b81663c206217dcb6.tar.gz rust-1240197a5b64611078b4645b81663c206217dcb6.zip | |
std: Move running_on_valgrind to rt::util. #1457
[breaking-change]
Diffstat (limited to 'src/libstd/unstable')
| -rw-r--r-- | src/libstd/unstable/mod.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/libstd/unstable/mod.rs b/src/libstd/unstable/mod.rs index f464f70772d..b235ec4d8c8 100644 --- a/src/libstd/unstable/mod.rs +++ b/src/libstd/unstable/mod.rs @@ -10,8 +10,6 @@ #![doc(hidden)] -use libc::uintptr_t; - pub use core::finally; pub mod dynamic_lib; @@ -20,14 +18,3 @@ pub mod simd; pub mod sync; pub mod mutex; -/// Dynamically inquire about whether we're running under V. -/// You should usually not use this unless your test definitely -/// can't run correctly un-altered. Valgrind is there to help -/// you notice weirdness in normal, un-doctored code paths! -pub fn running_on_valgrind() -> bool { - unsafe { rust_running_on_valgrind() != 0 } -} - -extern { - fn rust_running_on_valgrind() -> uintptr_t; -} |
