mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 21:12:57 -05:00
CI's test-lint step failed with only-weak at xtask/src/doc_tests.rs:250: every assertion in comments_other_lints_and_allow_do_not_count checked only that problem() returned Some. Such a test still passes when the check reports the wrong problem, for example when a commented-out #![forbid(unsafe_code)] is counted and the forbid message is returned instead of the deny message. The tests now compare problem() with the exact message for each case, and two cases cover a commented-out forbid on either side. The other tests in the file that checked only is_some, is_none or a substring compare the full result too.