diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-02-15 08:53:18 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-02-21 11:38:17 -0800 |
| commit | 40aaa65734d72b7aabda3cd0925b0119fb6d5a0a (patch) | |
| tree | 9a78e9cd5034520340f2e8bd8731a2474ee94d68 /src/liballoc_jemalloc | |
| parent | 536a900c471dffad6e33766a2866889000fbfa75 (diff) | |
| download | rust-40aaa65734d72b7aabda3cd0925b0119fb6d5a0a.tar.gz rust-40aaa65734d72b7aabda3cd0925b0119fb6d5a0a.zip | |
test: Verify all sysroot crates are unstable
As we continue to add more crates to the compiler and use them to implement various features we want to be sure we're not accidentally expanding the API surface area of the compiler! To that end this commit adds a new `run-make` test which will attempt to `extern crate foo` all crates in the sysroot, verifying that they're all unstable. This commit discovered that the `std_shim` and `test_shim` crates were accidentally stable and fixes the situation by deleting those shims. The shims are no longer necessary due to changes in Cargo that have happened since they were originally incepted.
Diffstat (limited to 'src/liballoc_jemalloc')
| -rw-r--r-- | src/liballoc_jemalloc/lib.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/liballoc_jemalloc/lib.rs b/src/liballoc_jemalloc/lib.rs index 8d81a09f5af..a496ab870c6 100644 --- a/src/liballoc_jemalloc/lib.rs +++ b/src/liballoc_jemalloc/lib.rs @@ -122,18 +122,6 @@ mod imp { let flags = align_to_flags(align); unsafe { nallocx(size as size_t, flags) as usize } } - - // These symbols are used by jemalloc on android but the really old android - // we're building on doesn't have them defined, so just make sure the symbols - // are available. - #[no_mangle] - #[cfg(all(target_os = "android", not(cargobuild)))] - pub extern "C" fn pthread_atfork(_prefork: *mut u8, - _postfork_parent: *mut u8, - _postfork_child: *mut u8) - -> i32 { - 0 - } } #[cfg(dummy_jemalloc)] |
