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)
. Returns(pat, arg, body, span)
. - An
if
expression withoutDropTemps
- An
if let
expression - An
if
orif let
expression - Represent a range akin to
ast::ExprKind::Range
. - A desugared
while
loop - A desugared
while let
loop
Enums
- An
if let
ormatch
expression. Useful for lints that trigger on one or the other. - Represents the pre-expansion arguments of a
vec!
invocation. - A parsed
Vec
initialization expression
Functions
- Converts a
hir
binary operator to the correspondingast
type. - Checks if the given expression is an initialization of
Vec
and returns its kind.