|
346 | 346 | #![cfg_attr(rustbuild, feature(staged_api, rustc_private))]
|
347 | 347 | #![cfg_attr(rustbuild, unstable(feature = "rustc_private", issue = "27812"))]
|
348 | 348 |
|
| 349 | +#[cfg(any( |
| 350 | + all(feature = "max_level_off", feature = "max_level_error"), |
| 351 | + all(feature = "max_level_off", feature = "max_level_warn"), |
| 352 | + all(feature = "max_level_off", feature = "max_level_info"), |
| 353 | + all(feature = "max_level_off", feature = "max_level_debug"), |
| 354 | + all(feature = "max_level_off", feature = "max_level_trace"), |
| 355 | + all(feature = "max_level_error", feature = "max_level_warn"), |
| 356 | + all(feature = "max_level_error", feature = "max_level_info"), |
| 357 | + all(feature = "max_level_error", feature = "max_level_debug"), |
| 358 | + all(feature = "max_level_error", feature = "max_level_trace"), |
| 359 | + all(feature = "max_level_warn", feature = "max_level_info"), |
| 360 | + all(feature = "max_level_warn", feature = "max_level_debug"), |
| 361 | + all(feature = "max_level_warn", feature = "max_level_trace"), |
| 362 | + all(feature = "max_level_info", feature = "max_level_debug"), |
| 363 | + all(feature = "max_level_info", feature = "max_level_trace"), |
| 364 | + all(feature = "max_level_debug", feature = "max_level_trace"), |
| 365 | +))] |
| 366 | +compile_error!("multiple max_level_* features set"); |
| 367 | + |
| 368 | +#[rustfmt::skip] |
| 369 | +#[cfg(any( |
| 370 | + all(feature = "release_max_level_off", feature = "release_max_level_error"), |
| 371 | + all(feature = "release_max_level_off", feature = "release_max_level_warn"), |
| 372 | + all(feature = "release_max_level_off", feature = "release_max_level_info"), |
| 373 | + all(feature = "release_max_level_off", feature = "release_max_level_debug"), |
| 374 | + all(feature = "release_max_level_off", feature = "release_max_level_trace"), |
| 375 | + all(feature = "release_max_level_error", feature = "release_max_level_warn"), |
| 376 | + all(feature = "release_max_level_error", feature = "release_max_level_info"), |
| 377 | + all(feature = "release_max_level_error", feature = "release_max_level_debug"), |
| 378 | + all(feature = "release_max_level_error", feature = "release_max_level_trace"), |
| 379 | + all(feature = "release_max_level_warn", feature = "release_max_level_info"), |
| 380 | + all(feature = "release_max_level_warn", feature = "release_max_level_debug"), |
| 381 | + all(feature = "release_max_level_warn", feature = "release_max_level_trace"), |
| 382 | + all(feature = "release_max_level_info", feature = "release_max_level_debug"), |
| 383 | + all(feature = "release_max_level_info", feature = "release_max_level_trace"), |
| 384 | + all(feature = "release_max_level_debug", feature = "release_max_level_trace"), |
| 385 | +))] |
| 386 | +compile_error!("multiple release_max_level_* features set"); |
| 387 | + |
349 | 388 | #[cfg(all(not(feature = "std"), not(test)))]
|
350 | 389 | extern crate core as std;
|
351 | 390 |
|
|
0 commit comments