about summary refs log tree commit diff
path: root/src/libstd/lib.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-12-14 16:47:18 -0800
committerAlex Crichton <alex@alexcrichton.com>2018-12-24 08:32:57 -0800
commit8d500572fa8f4110033fa3bc5e925831f6bbd18e (patch)
treec21fb3a40f8f8a4f57879ed39a9ce5ddc1f66fbd /src/libstd/lib.rs
parent50f3d6eccb85a24a02b7c1daf5e242768dddf3b5 (diff)
downloadrust-8d500572fa8f4110033fa3bc5e925831f6bbd18e.tar.gz
rust-8d500572fa8f4110033fa3bc5e925831f6bbd18e.zip
std: Use backtrace-sys from crates.io
This commit switches the standard library to using the `backtrace-sys`
crate from crates.io instead of duplicating the logic here in the Rust
repositor with the `backtrace-sys`'s crate's logic.

Eventually this will hopefully be a good step towards using the
`backtrace` crate directly from crates.io itself, but we're not quite
there yet! Hopefully this is a small incremental first step we can take.
Diffstat (limited to 'src/libstd/lib.rs')
-rw-r--r--src/libstd/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 4a693bffddf..af5d511c035 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -346,6 +346,9 @@ extern crate rustc_demangle;
 #[allow(unused_extern_crates)]
 extern crate unwind;
 
+#[cfg(feature = "backtrace")]
+extern crate backtrace_sys;
+
 // During testing, this crate is not actually the "real" std library, but rather
 // it links to the real std library, which was compiled from this same source
 // code. So any lang items std defines are conditionally excluded (or else they