clarify expect header for lints
3dc1271afff820053a11565719b85383109a54e8
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: a9447e8fc1f6
There are many coding harnesses - but this one is fast
3dc1271afff820053a11565719b85383109a54e8
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+1 / −1 text lines
+1 / −1 text lines
- `CLIPPY_CONF_DIR` is real and documented: priority CLIPPY_CONF_DIR → CARGO_MANIFEST_DIR → cwd, then parent walk.- Empirically: without the env var, `clippy.toml` under `.config/` is NOT discovered — raw `cargo clippy` and rust-analyzer silently lose threshold configuration. With the env var (xtask gate), it parses.- Clippy levels cannot be scoped by target type (`--tests`) through any cargo-native table; that gap is what invocation splitting covers.- `#[expect]` beats `-A` from the command line: an expected-but-allowed lint becomes an unfulfilled expectation error, so attrs and phase allowances do not compose silently.- `#[expect]` on items coexists with command-line `-A`: expectations stay fulfilled when the lint would fire without the allowance. File-level `#![expect]` headers on lints the phase allows become redundant but were not observed to error; either way, phase-covered expectations should be deleted.