unknown-rule
Level: error
What it checks
A // rabot: allow(..) comment naming a rule rabot does not have, an
unknown directive after rabot:, or a missing closing parenthesis.
Don’t
#![allow(unused)]
fn main() {
// rabot: allow(sort-fields) drop order matters: the guard must release before the pool
struct Connection {
guard: Guard,
pool: Pool,
}
}
A typo would otherwise be a silent no-op: the comment looks like an exception and does nothing.
Do
#![allow(unused)]
fn main() {
// rabot: allow(sorted-fields) drop order matters: the guard must release before the pool
struct Connection {
guard: Guard,
pool: Pool,
}
}
rabot rules lists every name.