Module clippy_utils::higher
source · Expand description
This module contains functions that retrieve specific elements.
Structs
The essential nodes of a desugared for loop as well as the entire span:
for pat in arg { body } becomes (pat, arg, body). Return (pat, arg, body, span).An
if expression without DropTempsAn
if let expressionAn
if or if let expressionRepresent a range akin to
ast::ExprKind::Range.A desugared
while loopA desugared
while let loopEnums
An
if let or match expression. Useful for lints that trigger on one or the other.Represent the pre-expansion arguments of a
vec! invocation.A parsed
Vec initialization expressionFunctions
Converts a hir binary operator to the corresponding
ast type.Finds the field named
name in the field. Always return Some for
convenience.Checks if given expression is an initialization of
Vec and returns its kind.