We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fa54ad commit 8561b67Copy full SHA for 8561b67
src/libstd/backtrace.rs
@@ -291,6 +291,12 @@ impl Backtrace {
291
Backtrace::create(Backtrace::force_capture as usize)
292
}
293
294
+ /// Forcibly captures a disabled backtrace, regardless of environment
295
+ /// variable configuration.
296
+ pub fn disabled() -> Backtrace {
297
+ Backtrace { inner: Inner::Disabled };
298
+ }
299
+
300
// Capture a backtrace which start just before the function addressed by
301
// `ip`
302
fn create(ip: usize) -> Backtrace {
0 commit comments