about summary refs log tree commit diff
path: root/src/libstd/sys_common
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-09-16 16:37:44 +0200
committerRalf Jung <post@ralfj.de>2019-09-16 16:37:44 +0200
commit49854c4f71eb8470c2a4483cbad3f03eb99e67cb (patch)
treea44fe70f92420ec6cd7b48471ad08f40461fbf38 /src/libstd/sys_common
parentdac0a158eb78419e3593fa888f9cf1ab81153030 (diff)
downloadrust-49854c4f71eb8470c2a4483cbad3f03eb99e67cb.tar.gz
rust-49854c4f71eb8470c2a4483cbad3f03eb99e67cb.zip
avoid #[cfg] in favor of cfg!
Diffstat (limited to 'src/libstd/sys_common')
-rw-r--r--src/libstd/sys_common/backtrace.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libstd/sys_common/backtrace.rs b/src/libstd/sys_common/backtrace.rs
index f49adc01659..01711d415d8 100644
--- a/src/libstd/sys_common/backtrace.rs
+++ b/src/libstd/sys_common/backtrace.rs
@@ -33,7 +33,6 @@ pub fn lock() -> impl Drop {
 }
 
 /// Prints the current backtrace.
-#[cfg(feature = "backtrace")]
 pub fn print(w: &mut dyn Write, format: PrintFmt) -> io::Result<()> {
     // There are issues currently linking libbacktrace into tests, and in
     // general during libstd's own unit tests we're not testing this path. In
@@ -129,7 +128,6 @@ where
 
 // For now logging is turned off by default, and this function checks to see
 // whether the magical environment variable is present to see if it's turned on.
-#[cfg(feature = "backtrace")]
 pub fn log_enabled() -> Option<PrintFmt> {
     use crate::sync::atomic::{self, Ordering};