4747///
4848/// If the condition is false:
4949/// * panics if `force` feature or `debug_assertions` are enabled,
50- /// * logs an error if `log ` feature is enabled,
50+ /// * logs an error if the `tracing ` feature is enabled,
5151/// * evaluates to false.
5252///
5353/// Accepts `format!` style arguments.
@@ -63,7 +63,7 @@ macro_rules! always {
6363 assert!( cond, $fmt $( $arg) * ) ;
6464 }
6565 if !cond {
66- $crate:: __log_error !( $fmt $( $arg) * ) ;
66+ $crate:: __tracing_error !( $fmt $( $arg) * ) ;
6767 }
6868 cond
6969 } } ;
@@ -75,7 +75,7 @@ macro_rules! always {
7575///
7676/// If the condition is true:
7777/// * panics if `force` feature or `debug_assertions` are enabled,
78- /// * logs an error if `log ` feature is enabled,
78+ /// * logs an error if the `tracing ` feature is enabled,
7979/// * evaluates to true.
8080///
8181/// Accepts `format!` style arguments.
@@ -94,7 +94,7 @@ macro_rules! never {
9494 if cfg!( debug_assertions) || $crate:: __FORCE {
9595 unreachable!( $fmt $( , $( $arg) * ) ?) ;
9696 }
97- $crate:: __log_error !( $fmt $( , $( $arg) * ) ?) ;
97+ $crate:: __tracing_error !( $fmt $( , $( $arg) * ) ?) ;
9898 } } ;
9999
100100 ( $cond: expr) => { {
@@ -108,14 +108,14 @@ macro_rules! never {
108108 } } ;
109109}
110110
111- #[ cfg( feature = "log " ) ]
111+ #[ cfg( feature = "tracing " ) ]
112112#[ doc( hidden) ]
113- pub use log :: error as __log_error ;
113+ pub use tracing :: error as __tracing_error ;
114114
115- #[ cfg( not( feature = "log " ) ) ]
115+ #[ cfg( not( feature = "tracing " ) ) ]
116116#[ doc( hidden) ]
117117#[ macro_export]
118- macro_rules! __log_error {
118+ macro_rules! __tracing_error {
119119 ( $( $tt: tt) * ) => { } ;
120120}
121121
0 commit comments