Skip to content

Commit feb2cd0

Browse files
committed
Hide deprecated items in doc
1 parent 374f6cd commit feb2cd0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ pub fn default_output_stream() -> Box<StandardStream> {
121121
}))
122122
}
123123

124+
#[doc(hidden)]
124125
#[deprecated(
125126
since = "0.4.0",
126127
note = "Use `BacktracePrinter::into_panic_handler()` instead."
@@ -139,6 +140,7 @@ pub fn create_panic_handler(
139140
})
140141
}
141142

143+
#[doc(hidden)]
142144
#[deprecated(since = "0.4.0", note = "Use `BacktracePrinter::install()` instead.")]
143145
pub fn install_with_settings(printer: BacktracePrinter) {
144146
std::panic::set_hook(printer.into_panic_handler(default_output_stream()))
@@ -499,6 +501,7 @@ impl Default for ColorScheme {
499501
}
500502
}
501503

504+
#[doc(hidden)]
502505
#[deprecated(since = "0.4.0", note = "Use `BacktracePrinter` instead.")]
503506
pub type Settings = BacktracePrinter;
504507

@@ -815,11 +818,13 @@ impl BacktracePrinter {
815818
// [Deprecated routines for backward compat] //
816819
// ============================================================================================== //
817820

821+
#[doc(hidden)]
818822
#[deprecated(since = "0.4.0", note = "Use `BacktracePrinter::print_trace` instead`")]
819823
pub fn print_backtrace(trace: &backtrace::Backtrace, s: &mut BacktracePrinter) -> IOResult {
820824
s.print_trace(trace, &mut default_output_stream())
821825
}
822826

827+
#[doc(hidden)]
823828
#[deprecated(
824829
since = "0.4.0",
825830
note = "Use `BacktracePrinter::print_panic_info` instead`"

0 commit comments

Comments
 (0)