mirror of
https://github.com/rust-lang/log.git
synced 2026-01-19 23:26:37 +00:00
Mention use_std dependency in log_panics docs
This commit is contained in:
parent
ec82f77c72
commit
3cdcbd1fa5
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user