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 61b19a1 commit a60177cCopy full SHA for a60177c
clippy_lints/src/functions.rs
@@ -449,6 +449,7 @@ fn check_must_use_candidate<'a, 'tcx>(
449
|| mutates_static(cx, body)
450
|| in_external_macro(cx.sess(), item_span)
451
|| returns_unit(decl)
452
+ || !cx.access_levels.is_exported(item_id)
453
|| is_must_use_ty(cx, return_ty(cx, item_id))
454
{
455
return;
0 commit comments