mirror of
https://github.com/rust-lang/log.git
synced 2025-09-28 21:40:31 +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)]
|
||||
#[macro_export]
|
||||
#[cfg(feature = "kv_sval")]
|
||||
@ -367,3 +356,14 @@ macro_rules! __log_value_error {
|
||||
$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