Update src/libstd/backtrace.rs

Co-authored-by: David Tolnay <dtolnay@gmail.com>
This commit is contained in:
Jane Lusby 2020-07-22 17:19:02 -07:00 committed by GitHub
parent 397c82bae1
commit 50347b84dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ impl Backtrace {
/// Forcibly captures a disabled backtrace, regardless of environment
/// variable configuration.
pub fn disabled() -> Backtrace {
pub const fn disabled() -> Backtrace {
Backtrace { inner: Inner::Disabled }
}