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.
2 parents 9be1099 + 50347b8 commit f98c77cCopy full SHA for f98c77c
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 const 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