mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 21:42:59 -05:00
`cargo xtask layers` read only `#![doc(test(attr(...)))]` written directly, so a library root that lowered its doc tests with `#![cfg_attr(<cond>, doc(test(attr(allow(unsafe_code)))))]` still passed the check that its doc tests deny unsafe code. A `doc(...)` inside `cfg_attr(...)`, at any depth, now counts. Since the check does not evaluate the condition, such an attribute can only lower the level: an `allow`, `warn` or `expect` of `unsafe_code` inside it lowers it, and a `deny` or `forbid` inside it does not count, as for a lint attribute inside `cfg_attr` within `doc(test(attr(...)))`.