clippy_utils

Function is_ctor_or_promotable_const_function

source
pub fn is_ctor_or_promotable_const_function(
    cx: &LateContext<'_>,
    expr: &Expr<'_>,
) -> bool
Expand description

Checks if an expression is constructing a tuple-like enum variant or struct