We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a1570c commit 4b27377Copy full SHA for 4b27377
clippy_lints/src/functions/must_use.rs
@@ -115,7 +115,7 @@ fn check_needless_must_use(
115
},
116
);
117
} else if attr.value_str().is_none() && is_must_use_ty(cx, return_ty(cx, item_id)) {
118
- // Ignore normal
+ // Ignore async functions unless Future::Output type is a must_use type
119
if sig.header.is_async() {
120
let infcx = cx.tcx.infer_ctxt().build();
121
if let Some(future_ty) = infcx.get_impl_future_output_ty(return_ty(cx, item_id))
0 commit comments