Commit 8c9ef3a
committed
Fix suggestion span involving wrongly placed generic arg on enum variants
When the variant and the (wrongly placed) args are at vastly separated
source locations such as being in different macos or one in a macro and
the other somwhere outside of it, the arg spans we computed would
span the entire distance between such locations and were hence invalid.
.1 parent 6683f13 commit 8c9ef3a
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
1275 | 1275 | | |
1276 | 1276 | | |
1277 | 1277 | | |
1278 | | - | |
1279 | | - | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
1280 | 1282 | | |
1281 | 1283 | | |
1282 | 1284 | | |
| |||
0 commit comments