rust/compiler/rustc_incremental/src/persist
Nicholas Nethercote 2fef0a30ae Replace infallible name_or_empty methods with fallible name methods.
I'm removing empty identifiers everywhere, because in practice they
always mean "no identifier" rather than "empty identifier". (An empty
identifier is impossible.) It's better to use `Option` to mean "no
identifier" because you then can't forget about the "no identifier"
possibility.

Some specifics:
- When testing an attribute for a single name, the commit uses the
  `has_name` method.
- When testing an attribute for multiple names, the commit uses the new
  `has_any_name` method.
- When using `match` on an attribute, the match arms now have `Some` on
  them.

In the tests, we now avoid printing empty identifiers by not printing
the identifier in the `error:` line at all, instead letting the carets
point out the problem.
2025-04-17 09:50:52 +10: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 Add warn(unreachable_pub) to rustc_incremental. 2024-08-27 14:30:20 +10:00
dirty_clean.rs Replace infallible name_or_empty methods with fallible name methods. 2025-04-17 09:50:52 +10:00
file_format.rs compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
fs.rs Remove safe remove 2025-04-14 18:47:15 +00:00
load.rs Pass in dep kind names to the duplicate dep node check 2025-03-19 20:12:37 +01:00
mod.rs Move some code from Compiler::enter to GlobalCtxt::finish 2024-11-09 17:55:39 +00:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
save.rs Only use the new node hashmap for anonymous nodes. 2025-03-19 20:12:37 +01:00
work_product.rs Avoid no-op unlink+link dances in incr comp 2025-02-24 19:46:48 -05:00

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