Commit 9b265d7
Better scoring for map mismatches
Summary: Error messages should always choose a map with common keys if possible. The case where there are no keys in common was badly handled, leading to it being sometimes chosen.
Reviewed By: TD5
Differential Revision: D69980751
fbshipit-source-id: f8f0b6893e023b7555ef9c5419a73295455b78c81 parent a5965ec commit 9b265d7
File tree
3 files changed
+7
-13
lines changed- crates/elp/src/resources/test/eqwalizer_tests/check
3 files changed
+7
-13
lines changedLines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | 672 | | |
680 | 673 | | |
681 | 674 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
163 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
0 commit comments