diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-01-09 16:30:40 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-01-17 07:48:19 +0000 |
| commit | 09485eaae12b2f268d8e0c90671d759138d82778 (patch) | |
| tree | 24675397cf837d9198a0c1b0a2e5fe9d1e05ec4f /compiler/rustc_hir_analysis/src/structured_errors | |
| parent | d60e772e14a862a1ed3f6a7ee23faadbdd9cf443 (diff) | |
| download | rust-09485eaae12b2f268d8e0c90671d759138d82778.tar.gz rust-09485eaae12b2f268d8e0c90671d759138d82778.zip | |
`rustc_hir_analysis`: remove `ref` patterns
Diffstat (limited to 'compiler/rustc_hir_analysis/src/structured_errors')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs b/compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs index 574b1e8b485..9133e6540d4 100644 --- a/compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs +++ b/compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs @@ -727,8 +727,8 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> { if let Some(parent_node) = self.tcx.hir().opt_parent_id(self.path_segment.hir_id) && let Some(parent_node) = self.tcx.hir().find(parent_node) && let hir::Node::Expr(expr) = parent_node { - match expr.kind { - hir::ExprKind::Path(ref qpath) => { + match &expr.kind { + hir::ExprKind::Path(qpath) => { self.suggest_moving_args_from_assoc_fn_to_trait_for_qualified_path( err, qpath, |
