rust/compiler/rustc_incremental/src/persist
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
..
fs Removed stable/unstable sort arg from into_sorted_stable_ord, fixed a few misc issues, added collect to UnordItems 2023-06-08 00:38:50 -04:00
data.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
dirty_clean.rs Make impl_trait_ref into a query also returning more information about the impl 2024-02-12 09:42:41 +00:00
file_format.rs Report I/O errors with emit_fatal not emit_err 2024-01-02 07:31:02 -05:00
fs.rs Adjust the has_errors* methods. 2024-02-22 08:03:47 +11:00
load.rs Rename {create,emit}_warning as {create,emit}_warn. 2024-01-10 07:33:06 +11:00
mod.rs Reduce exposure of three functions used only within rustc_incremental. 2023-10-26 08:46:10 +11:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
save.rs Adjust the has_errors* methods. 2024-02-22 08:03:47 +11:00
work_product.rs Rename {create,emit}_warning as {create,emit}_warn. 2024-01-10 07:33:06 +11:00

For info on how the incremental compilation works, see the rustc dev guide.