Idea: #[must_use = inherit]
Rust Internals [Unofficial]
April 3, 2026
It does work, but still has two downsides:
- Verbose. I should put
#[expect(clippy::double_must_use)]on every function that returns aResult<T, E>(for example). In addition, if you turned on allow_attributes_without_reason(I did!), now it becomes#[expect(clippy::double_must_use, reason = "...")]. That will be nightmare IMO. - Doubled warning, what
double_must_useis concerned about.
Discussion in the ATmosphere