You can now #[expect] lints in the new Rust stable! 🦀
✨ Suppresses lints and warns on unfulfilled expectations.
📚 Documentation: https://doc.rust-lang.org/rustc/lints/levels.html#expect
➡️ Implementation: https://github.com/rust-lang/rust/pull/120924/
#rustlang #rust #programming #language #lint #warn #trick #coding #rustacean #devtips
Let's `#[expect]` some lints: Stabilize `lint_reasons` (RFC 2383) by xFrednet · Pull Request #120924 · rust-lang/rust
Let's give this another try! The previous stabilization attempt was stalled by some unresolved questions. These have been discussed in a lang team meeting. The last open question, regarding the...GitHub