From 466345ca81c9f8a17347671ca27856eb963858f4 Mon Sep 17 00:00:00 2001
From: Dawer <7803845+iDawer@users.noreply.github.com>
Date: Mon, 10 May 2021 16:55:00 +0500
Subject: Clean up, more docs.
---
crates/hir_def/src/path.rs | 5 +-
crates/hir_ty/src/diagnostics/expr.rs | 1 -
crates/hir_ty/src/diagnostics/pattern.rs | 25 +-
.../src/diagnostics/pattern/deconstruct_pat.rs | 145 ++++++----
.../hir_ty/src/diagnostics/pattern/usefulness.rs | 313 +++++++++++++++++++--
5 files changed, 384 insertions(+), 105 deletions(-)
diff --git a/crates/hir_def/src/path.rs b/crates/hir_def/src/path.rs
index 4cdb5913d..f98622faa 100644
--- a/crates/hir_def/src/path.rs
+++ b/crates/hir_def/src/path.rs
@@ -166,10 +166,7 @@ impl Path {
}
/// Converts a known mod path to `Path`.
- pub fn from_known_path(
- path: ModPath,
- generic_args: Vec