mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 13:02:50 -05:00
The check read every #![...] attribute in a library root, including
ones inside a module's braces. A root with
mod tests { #![doc(test(attr(deny(unsafe_code))))] } and no crate-level
attribute passed, although an attribute inside a module does not apply
to the crate's other doc tests. A #![forbid(unsafe_code)] inside a
module was also read as the library forbidding unsafe code.
Attributes inside braces are now skipped, with a test for each case.