diff options
| author | bors <bors@rust-lang.org> | 2023-01-20 04:52:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-01-20 04:52:28 +0000 |
| commit | 56ee85274e5a3a4dda92f3bf73d1664c74ff9c15 (patch) | |
| tree | b8395fc6f6151aca9ccd2c401f763585999302a9 /compiler/rustc_hir_analysis/src/structured_errors | |
| parent | 51d50ea96ecc9c681a0054e5eb8e5e1d4ab38906 (diff) | |
| parent | 65d1e8d9b556095dc50dc357e1ec4899afc3e975 (diff) | |
| download | rust-56ee85274e5a3a4dda92f3bf73d1664c74ff9c15.tar.gz rust-56ee85274e5a3a4dda92f3bf73d1664c74ff9c15.zip | |
Auto merge of #106090 - WaffleLapkin:dereffffffffff, r=Nilstrieb
Remove some `ref` patterns from the compiler Previous PR: https://github.com/rust-lang/rust/pull/105368 r? `@Nilstrieb`
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, |
