You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> // When the `magic` feature flag is enabled, the above will expand to:
438
+
> #[sparkles]
439
+
> #[crackles]
440
+
> fn bewitched() {}
441
+
> ```
431
442
432
443
> [!NOTE]
433
444
> The `cfg_attr` can expand to another `cfg_attr`. For example, `#[cfg_attr(target_os = "linux", cfg_attr(feature = "multithreaded", some_other_attribute))]` is valid. This example would be equivalent to `#[cfg_attr(all(target_os = "linux", feature ="multithreaded"), some_other_attribute)]`.
434
445
435
-
r[cfg.cfg_attr.restriction]
436
-
The `cfg_attr` attribute is allowed anywhere attributes are allowed.
437
-
438
-
The [`crate_type`] and [`crate_name`] attributes cannot be used with `cfg_attr`.
0 commit comments