Sometimes during development I would like to allow warnings. For example, for dead_code. Yet, in CI and pre_commit git hooks, I have RUSTFLAGS="--deny warnings".
So I'm thinking that what I would like is an attribute such as
#[expect(dead_code)]
fn foo() {
todo!();
}
It would work similar to TypesScript's @ts-expect-error and yet be more specific, expecting a specific list of warnings.
Not sure whether it would make sense for expecting errors, as well.