1
Fork 0
rust/compiler/rustc_query_system/src
Nicholas Nethercote 46f4983356 Adjust the has_errors* methods.
Currently `has_errors` excludes lint errors. This commit changes it to
include lint errors.

The motivation for this is that for most places it doesn't matter
whether lint errors are included or not. But there are multiple places
where they must be includes, and only one place where they must not be
included. So it makes sense for `has_errors` to do the thing that fits
the most situations, and the new `has_errors_excluding_lint_errors`
method in the one exceptional place.

The same change is made for `err_count`. Annoyingly, this requires the
introduction of `err_count_excluding_lint_errs` for one place, to
preserve existing error printing behaviour. But I still think the change
is worthwhile overall.
2024-02-22 08:03:47 +11:00
..
dep_graph Adjust the has_errors* methods. 2024-02-22 08:03:47 +11:00
ich Simplify BodyId hashing. 2024-01-16 23:52:30 +00:00
query Use generic NonZero internally. 2024-02-15 08:09:42 +01:00
cache.rs Remove a fishy Clone impl 2023-04-04 09:01:44 +00:00
error.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
lib.rs Use generic NonZero internally. 2024-02-15 08:09:42 +01:00
values.rs Value recovery can take the whole CycleError 2024-01-08 20:30:10 +00:00