Suppressing lints, but not entirely
⚓ Rust 📅 2026-01-06 👤 surdeus 👁️ 3It would be neat to be able to mark a function as being a work-in-progress:
#[wip]
fn somefunc(blah: Context) -> Result<(), Error> {
}
.. which would tell the compiler/clippy that it should not bother generating lint warnings, because there might be a gazillion of them, and none of them matter currently (.. because the function is a work-in-progress). However, the compiler/linter should output a single line saying "lints for somefunc() have been suppressed because it is a work-in-progress".
The point would be to avoid spamming the compiler/linters output, but leave a tiny reminder that there's still work to do there.
Is there a way to accomplish this with some macro magic?
3 posts - 3 participants
🏷️ Rust_feed