rust/src/libstd/sys_common
bors fe6d05a8b3 Auto merge of #64154 - alexcrichton:std-backtrace, r=sfackler
std: Add a `backtrace` module

This commit adds a `backtrace` module to the standard library, as
designed in [RFC 2504]. The `Backtrace` type is intentionally very
conservative, effectively only allowing capturing it and printing it.

Additionally this commit also adds a `backtrace` method to the `Error`
trait which defaults to returning `None`, as specified in [RFC 2504].
More information about the design here can be found in [RFC 2504] and in
the [tracking issue].

Implementation-wise this is all based on the `backtrace` crate and very
closely mirrors the `backtrace::Backtrace` type on crates.io. Otherwise
it's pretty standard in how it handles everything internally.

[RFC 2504]: https://github.com/rust-lang/rfcs/blob/master/text/2504-fix-error.md
[tracking issue]: https://github.com/rust-lang/rust/issues/53487

cc #53487
2019-09-11 14:46:08 +00:00
..
alloc.rs add support for hexagon-unknown-linux-musl 2019-07-22 09:44:58 -05:00
at_exit_imp.rs Eliminate FnBox usages from libstd. 2019-04-10 09:40:44 +08:00
backtrace.rs Auto merge of #64154 - alexcrichton:std-backtrace, r=sfackler 2019-09-11 14:46:08 +00:00
bytestring.rs libstd: deny(elided_lifetimes_in_paths) 2019-03-31 12:56:51 +02:00
condvar.rs libstd => 2018 2019-02-28 04:06:15 +09:00
fs.rs wasi: Fill out std::fs module for WASI 2019-04-03 08:05:46 -07:00
io.rs Remove needless lifetimes 2019-07-01 12:15:27 +02:00
mod.rs redox: convert to target_family unix 2019-08-06 16:18:23 -06:00
mutex.rs libstd: deny(elided_lifetimes_in_paths) 2019-03-31 12:56:51 +02:00
net.rs Remove bitrig support from rust 2019-05-13 11:09:06 +02:00
os_str_bytes.rs Add FIXME-s that some types should be transparent 2019-08-09 17:41:40 +03:00
poison.rs libstd: deny(elided_lifetimes_in_paths) 2019-03-31 12:56:51 +02:00
process.rs std: Improve downstream codegen in Command::env 2019-09-05 11:43:35 -07:00
remutex.rs libstd: deny(elided_lifetimes_in_paths) 2019-03-31 12:56:51 +02:00
rwlock.rs libstd => 2018 2019-02-28 04:06:15 +09:00
thread.rs Eliminate FnBox usages from libstd. 2019-04-10 09:40:44 +08:00
thread_info.rs libstd => 2018 2019-02-28 04:06:15 +09:00
thread_local.rs libstd => 2018 2019-02-28 04:06:15 +09:00
util.rs libstd: deny(elided_lifetimes_in_paths) 2019-03-31 12:56:51 +02:00
wtf8.rs Use "capacity" as parameter name in with_capacity() methods 2019-04-26 18:43:24 +02:00