Skip to main content

advisory_rules

Function advisory_rules 

Source
pub fn advisory_rules() -> Vec<Rule>
Expand description

The advisory lint set (RT-101): every rule that applies to plain Rust, with the named-argument dialect rules (R0042) removed. Run these with lint_advisory to use Trust as an out-of-tree linter on a stock cargo workspace — no #![strict] marker, no named-arg syntax, no lowering — so the bug-catching rules (.unwrap(), as-casts, bare indexing, dropped error context, …) surface as a plain-Rust cleanup backlog.