Mention use_std dependency in log_panics docs

This commit is contained in:
Steven Fackler 2016-01-15 21:13:34 -08:00
parent ec82f77c72
commit 3cdcbd1fa5

View File

@ -789,7 +789,7 @@ impl error::Error for ShutdownLoggerError {
/// The format is the same as the default panic handler. The reporting module is
/// `log::panic`.
///
/// Requires the `nightly` feature.
/// Requires the `use_std` (enabled by default) and `nightly` features.
#[cfg(all(feature = "nightly", feature = "use_std"))]
pub fn log_panics() {
std::panic::set_handler(panic::log);