mirror of
https://github.com/rust-lang/log.git
synced 2025-09-30 22:40:29 +00:00
move error macros together
This commit is contained in:
parent
ad917118a5
commit
31bb4b0ff3
@ -310,17 +310,6 @@ macro_rules! __log_value {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(hidden)]
|
|
||||||
#[macro_export]
|
|
||||||
#[cfg(not(feature = "kv_std"))]
|
|
||||||
macro_rules! __log_value_error {
|
|
||||||
($args:expr) => {
|
|
||||||
compile_error!(
|
|
||||||
"capturing values as `std::error::Error` requites the `kv_std` feature of `log`"
|
|
||||||
)
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
#[cfg(feature = "kv_sval")]
|
#[cfg(feature = "kv_sval")]
|
||||||
@ -367,3 +356,14 @@ macro_rules! __log_value_error {
|
|||||||
$crate::__private_api::capture_error(&$args)
|
$crate::__private_api::capture_error(&$args)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[doc(hidden)]
|
||||||
|
#[macro_export]
|
||||||
|
#[cfg(not(feature = "kv_std"))]
|
||||||
|
macro_rules! __log_value_error {
|
||||||
|
($args:expr) => {
|
||||||
|
compile_error!(
|
||||||
|
"capturing values as `std::error::Error` requites the `kv_std` feature of `log`"
|
||||||
|
)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user