Skip to main content

check_fn_must_use

Function check_fn_must_use 

Source
fn check_fn_must_use(
    cx: &LateContext<'_>,
    expr: &Expr<'_>,
    expr_is_from_block: bool,
) -> bool
Expand description

Checks if expr is a [method] call expression marked as #[must_use] and emits a lint if so. Returns true if the lint has been emitted.