From 50347b84dd0c08ff23bd010dc567a7c27944d029 Mon Sep 17 00:00:00 2001 From: Jane Lusby Date: Wed, 22 Jul 2020 17:19:02 -0700 Subject: [PATCH] Update src/libstd/backtrace.rs Co-authored-by: David Tolnay --- src/libstd/backtrace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/backtrace.rs b/src/libstd/backtrace.rs index b22d8164b36..09f83ea5fca 100644 --- a/src/libstd/backtrace.rs +++ b/src/libstd/backtrace.rs @@ -293,7 +293,7 @@ pub fn force_capture() -> Backtrace { /// Forcibly captures a disabled backtrace, regardless of environment /// variable configuration. - pub fn disabled() -> Backtrace { + pub const fn disabled() -> Backtrace { Backtrace { inner: Inner::Disabled } }