mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
5137bb3ceb
There is a proposal to change the behaviour of rustc's `must_use` lint to consider `Result<T, U>` and `ControlFlow<U, T>` as `T` when `U` is uninhabited. See <https://github.com/rust-lang/rust/pull/148214>. This might make the user adding extra `#[must_use]` attributes to functions returning `Result<T, !>` or `ControlFlow<!, T>`, which would trigger the `double_must_use` lint in Clippy without the current change.