We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faa9756 commit 61230f4Copy full SHA for 61230f4
clippy_lints/src/inconsistent_struct_constructor.rs
@@ -66,6 +66,7 @@ declare_lint_pass!(InconsistentStructConstructor => [INCONSISTENT_STRUCT_CONSTRU
66
impl LateLintPass<'_> for InconsistentStructConstructor {
67
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'_>) {
68
if_chain! {
69
+ if !expr.span.from_expansion();
70
if let ExprKind::Struct(qpath, fields, base) = expr.kind;
71
let ty = cx.typeck_results().expr_ty(expr);
72
if let Some(adt_def) = ty.ty_adt_def();
0 commit comments