// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license OR Apache 2.0
// Only enable backtrace support when the feature is specified
// All usages of backtrace functionality are gated behind this.
// Some of these are incorrect with regards to exposed behaviour, especially around
// exported traits which may require extra lifetimes at implementation time, or where
// a boxed future to a dyn result is valid for a different lifetime than its dyn component.
// GATs also present complications wherein this lint has not yet caught up to all nuance.
// Codebase policy prefers an explicit unit return when it clarifies intent,
// for consistency with Ok(()) returns at the end of Result-bearing functions.