diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-03 10:55:37 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-03 10:55:37 +0100 |
commit | 50936397cc4e34712b18cd337facef527fa20b48 (patch) | |
tree | 709dac4e04b492c16829e299bbaf6f2377f0f3a0 /crates/hir_ty/src/infer.rs | |
parent | e8e14e1b13b76aaa643bc3beffb9c52bc5228d24 (diff) | |
parent | 0a8c30a96fe09047da07a8e2980baa47a334a3d7 (diff) |
Merge #9105
9105: internal: calculate pattern adjustments r=flodiebold a=iDawer
This extends `InferenceResult` with `pub pat_adjustments: FxHashMap<PatId, Vec<Ty>>`.
Fixes #9095
Co-authored-by: Dawer <[email protected]>
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 { |