Module clippy_utils::higher [−][src]
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).
Type representing a FormatArgsExpn’s format arguments
A parsed format_args! expansion
A parsed format! expansion
An if expression without DropTemps
An if let expression
An if or if let expression
A parsed panic! expansion
Represent a range akin to ast::ExprKind::Range.
A desugared while loop
A desugared while let loop
Enums
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 expression
Functions
Converts a hir binary operator to the corresponding ast type.
Extract args from an assert-like macro. Currently working with:
Checks if given expression is an initialization of Vec and returns its kind.
