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
pub fn is_ctor_or_promotable_const_function(
cx: &LateContext<'_>,
expr: &Expr<'_>,
) -> bool
Checks if an expression is constructing a tuple-like enum variant or struct