Files
vectorcraft/xtask
dotCooCoo 8387f54b97 Doc tests: count only crate-level attributes in the unsafe-code check
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.
2026-12-03 12:05:15 -08:00
..