Files
vectorcraft/xtask
dotCooCoo e6ca6ed1a9 Doc tests: read whole attributes and skip comments in the unsafe-code check
The check read crate-root attributes one physical line at a time and
compared whole attribute strings. It accepted a doc-test attribute that
sat inside a block comment or a string literal, rejected a valid
attribute split over several lines, and did not see `unsafe_code` in a
grouped list such as `#![forbid(unsafe_code, unused_must_use)]`, so it
accepted `deny` in the doc tests of such a library.

The check now removes comments and literal contents, reads each
`#![...]` attribute up to its matching bracket, and reads lint lists
item by item, in the library's own attribute and in the doc-test one.
2026-12-03 10:20:43 -08:00
..