diff options
author | Dawer <[email protected]> | 2021-06-01 21:29:07 +0100 |
---|---|---|
committer | Dawer <[email protected]> | 2021-06-01 21:32:05 +0100 |
commit | 0a8c30a96fe09047da07a8e2980baa47a334a3d7 (patch) | |
tree | f2c866fb519a6df6b03181f43d072716573c9ef9 /crates/hir_ty/src/infer.rs | |
parent | 99516bbd67a0018c3c0bf94cb895896857d4263c (diff) |
internal: implement pattern adjustments.
Diffstat (limited to 'crates/hir_ty/src/infer.rs')
-rw-r--r-- | crates/hir_ty/src/infer.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_ty/src/infer.rs b/crates/hir_ty/src/infer.rs index 7a4268819..0e9f777da 100644 --- a/crates/hir_ty/src/infer.rs +++ b/crates/hir_ty/src/infer.rs | |||
@@ -150,6 +150,8 @@ pub struct InferenceResult { | |||
150 | type_mismatches: FxHashMap<ExprOrPatId, TypeMismatch>, | 150 | type_mismatches: FxHashMap<ExprOrPatId, TypeMismatch>, |
151 | /// Interned Unknown to return references to. | 151 | /// Interned Unknown to return references to. |
152 | standard_types: InternedStandardTypes, | 152 | standard_types: InternedStandardTypes, |
153 | /// Stores the types which were implicitly dereferenced in pattern binding modes. | ||
154 | pub pat_adjustments: FxHashMap<PatId, Vec<Ty>>, | ||
153 | } | 155 | } |
154 | 156 | ||
155 | impl InferenceResult { | 157 | impl InferenceResult { |