Commit 9886236
committed
Remove
There are four closely related methods tracking the existence of certain
kinds of methods:
- `has_errors`: errors
- `has_errors_or_lint_errors`: errors + lint errors
- `has_errors_or_span_delayed_bugs`: errors + span_delayed_bugs
- `is_compilation_going_to_fail`: errors + lint errors + span_delayed_bugs
The third one is pretty weird. There's no obvious reason why you'd want
that particular combination, and all the code relating to error count is
very messy in general. So this commit just removes it. Most uses are
replaced with `is_compilation_going_to_fail`, but one is replaced with
`has_errors_or_lint_errors`. These seemed most appropriate to me, though
it's hard to say for sure due to the aforementioned messiness.has_errors_or_span_delayed_bugs.1 parent 0f9cd03 commit 9886236
5 files changed
+5
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
955 | 955 | | |
956 | 956 | | |
957 | 957 | | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | 958 | | |
969 | 959 | | |
970 | 960 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | | - | |
| 821 | + | |
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
| |||
0 commit comments