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 } }