mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 13:02:50 -05:00
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.