3 ms·
Thanks, nice, but for the kernel use case it would need to be part of rustc.
by dathinab 6y ago
Thanks, nice, but for the kernel use case it would need to be part of rustc.
- zaarn 6y agoSimply install clippy and call "clippy-driver" instead of "rustc", which will handle this. Clippy is largely the lints that haven't either made it into rustc or are fairly edge-case-y.
- littlestymaar 6y agoWhy? The Rust-for-Linux team already made Clippy a requirement for Rust kernel code. For niche configuration that are really project-specific like this, it makes total sense to use external tooling to ensure the guidelines are respected, it doesn't need to be the compiler enforcing these guidelines.