about summary refs log tree commit diff
path: root/compiler/rustc_incremental/messages.ftl
AgeCommit message (Collapse)AuthorLines
2025-04-17Replace infallible `name_or_empty` methods with fallible `name` methods.Nicholas Nethercote-1/+1
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.
2024-08-25Removes dead code from the compilermu001999-2/+0
2024-05-21Add a footer in FileEncoder and check for it in MemDecoderBen Kimock-0/+2
2023-11-04Remove unused LoadResult::DecodeIncrCache variantbjorn3-2/+0
2023-10-09Remove cgu_reuse_tracker from Sessionbjorn3-14/+0
This removes a bit of global mutable state
2023-05-25Ensure Fluent messages are in alphabetical orderclubby789-70/+70
2023-03-29Check for escape sequences in Fluent resourcesclubby789-1/+1
2023-03-11Simplify message pathsest31-0/+118
This makes it easier to open the messages file while developing on features. The commit was the result of automatted changes: for p in compiler/rustc_*; do mv $p/locales/en-US.ftl $p/messages.ftl; rmdir $p/locales; done for p in compiler/rustc_*; do sed -i "s#\.\./locales/en-US.ftl#../messages.ftl#" $p/src/lib.rs; done