mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-02 20:18:38 -05:00
no-assertion: - A call in a top-level test reaches the helper its own file defines. A non-asserting helper of the same name in another file of the crate no longer hides it. Names the file also calls with a path, and definitions below the file's top level, keep the crate's verdict. - An `#[ignore = "reason"]` test that prints is a diagnostic and needs no assertion. - An asserting function passed by name as a value (`keeping_settings(the_body)`, `run(&[body])`) counts as the test's check, also through a helper that passes it, unless a local binding, loop pattern, match arm or parameter shadows the name in scope, or the value is dropped (`drop(body)`, `let _ = Some(body)`, `(body,);`). all-unguarded: - A parenthesized range of literals or constants, `(0..3).all(...)`. - A receiver whose source an earlier `assert_eq!` compares with a non-empty literal: a local collected from the receiver, or the call the receiver is bound to, when nothing changes the source in between. A shared borrow passed to a call outside an assertion may change it. - A call to a function of the file that lists every row of a non-empty constant table without filtering it; every function of that name in the file has to do so.