From 6970547d40108ba87cc64425c54c91a6caaebc5a Mon Sep 17 00:00:00 2001 From: lcnr Date: Wed, 19 Jan 2022 11:22:40 +0100 Subject: [PATCH] rustfmt is broken, manually reduce line length --- compiler/rustc_lint/src/internal.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_lint/src/internal.rs b/compiler/rustc_lint/src/internal.rs index b4b75bf64c9..594251d46b4 100644 --- a/compiler/rustc_lint/src/internal.rs +++ b/compiler/rustc_lint/src/internal.rs @@ -75,11 +75,16 @@ impl LateLintPass<'_> for QueryStability { } let (span, def_id, substs) = match expr.kind { - ExprKind::MethodCall(_, span, _, _) if let Some(def_id) = cx.typeck_results().type_dependent_def_id(expr.hir_id) => { + ExprKind::MethodCall(_, span, _, _) + if let Some(def_id) = cx.typeck_results().type_dependent_def_id(expr.hir_id) => + { (span, def_id, cx.typeck_results().node_substs(expr.hir_id)) }, _ => { - let &ty::FnDef(def_id, substs) = cx.typeck_results().node_type(expr.hir_id).kind() else { return }; + let &ty::FnDef(def_id, substs) = + cx.typeck_results() + .node_type(expr.hir_id) + .kind() else { return }; (expr.span, def_id, substs) } };