Skip to content

Commit

Permalink
Improve feature combination error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Nov 1, 2024
1 parent 5a7b777 commit 4f2c86d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ pub mod explicit {
all(feature = "info", feature = "error"),
all(feature = "warn", feature = "error"),
))]
compile_error!("multiple log level features set");
compile_error!("multiple log level features set (trace, debug, info, warn, error)");

#[cfg(not(any(
feature = "trace",
Expand All @@ -119,11 +119,11 @@ compile_error!("multiple log level features set");
feature = "warn",
feature = "error",
)))]
compile_error!("no log level feature set");
compile_error!("no log level feature set (trace, debug, info, warn, error)");

// Verify that the log backend feature combination is sane.
#[cfg(all(feature = "log", feature = "tracing"))]
compile_error!("multiple log backend features set");
compile_error!("multiple log backend features set (log, tracing)");

/// Set the log backend to `println`.
#[doc(hidden)]
Expand Down

0 comments on commit 4f2c86d

Please # to comment.