Function clippy_utils::is_adjusted
source · pub fn is_adjusted(cx: &LateContext<'_>, e: &Expr<'_>) -> bool
Expand description
Returns true
if the given Expr
has been coerced before.
Examples of coercions can be found in the Nomicon at https://doc.rust-lang.org/nomicon/coercions.html.
See rustc_middle::ty::adjustment::Adjustment
and rustc_hir_analysis::check::coercion
for
more information on adjustments and coercions.