rust/compiler
bors c86212f9bc Auto merge of #111858 - clubby789:fluent-alphabetical, r=jyn514,compiler-errors
Ensure Fluent messages are in alphabetical order

Fixes #111847

This adds a tidy check to ensure Fluent messages are in alphabetical order, as well as sorting all existing messages. I think the error could be worded better, would appreciate suggestions.

<details>
<summary>Script used to sort files</summary>

```py
import sys
import re

fn = sys.argv[1]
with open(fn, 'r') as f:
    data = f.read().split("\n")

chunks = []
cur = ""
for line in data:
    if re.match(r"^([a-zA-Z0-9_]+)\s*=\s*", line):
        chunks.append(cur)
        cur = ""
    cur += line + "\n"
chunks.append(cur)
chunks.sort()

with open(fn, 'w') as f:
    f.write(''.join(chunks).strip("\n\n") + "\n")
```
</details>
2023-05-26 03:31:04 +00:00
..
rustc
rustc_abi
rustc_apfloat
rustc_arena
rustc_ast Auto merge of #86844 - bjorn3:global_alloc_improvements, r=pnkfelix 2023-05-25 16:59:57 +00:00
rustc_ast_lowering Auto merge of #111858 - clubby789:fluent-alphabetical, r=jyn514,compiler-errors 2023-05-26 03:31:04 +00:00
rustc_ast_passes Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_ast_pretty
rustc_attr Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_baked_icu_data
rustc_borrowck Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_builtin_macros Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_codegen_cranelift Rollup merge of #111950 - cjgillot:expn-noinline, r=oli-obk 2023-05-25 13:58:02 -07:00
rustc_codegen_gcc Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_codegen_llvm Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_codegen_ssa Auto merge of #111858 - clubby789:fluent-alphabetical, r=jyn514,compiler-errors 2023-05-26 03:31:04 +00:00
rustc_const_eval Auto merge of #111858 - clubby789:fluent-alphabetical, r=jyn514,compiler-errors 2023-05-26 03:31:04 +00:00
rustc_data_structures Rollup merge of #111875 - WaffleLapkin:defer_on_drop, r=Nilstrieb 2023-05-25 08:01:08 +02:00
rustc_driver
rustc_driver_impl Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_error_codes
rustc_error_messages
rustc_errors Auto merge of #111858 - clubby789:fluent-alphabetical, r=jyn514,compiler-errors 2023-05-26 03:31:04 +00:00
rustc_expand Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_feature Use is_some_and/is_ok_and in less obvious spots 2023-05-24 14:33:43 +00:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Use Option::is_some_and and Result::is_ok_and in the compiler 2023-05-24 14:20:41 +00:00
rustc_hir_analysis Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_hir_pretty
rustc_hir_typeck Auto merge of #111858 - clubby789:fluent-alphabetical, r=jyn514,compiler-errors 2023-05-26 03:31:04 +00:00
rustc_incremental Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_index Auto merge of #111925 - Manishearth:rollup-z6z6l2v, r=Manishearth 2023-05-25 00:33:43 +00:00
rustc_infer Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_interface Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_lexer
rustc_lint Auto merge of #111858 - clubby789:fluent-alphabetical, r=jyn514,compiler-errors 2023-05-26 03:31:04 +00:00
rustc_lint_defs
rustc_llvm
rustc_log
rustc_macros Merge query property modules into one 2023-05-18 09:45:12 +02:00
rustc_metadata Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_middle Auto merge of #111858 - clubby789:fluent-alphabetical, r=jyn514,compiler-errors 2023-05-26 03:31:04 +00:00
rustc_mir_build Auto merge of #111858 - clubby789:fluent-alphabetical, r=jyn514,compiler-errors 2023-05-26 03:31:04 +00:00
rustc_mir_dataflow Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_mir_transform Auto merge of #111858 - clubby789:fluent-alphabetical, r=jyn514,compiler-errors 2023-05-26 03:31:04 +00:00
rustc_monomorphize Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_parse Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_parse_format
rustc_passes Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_plugin_impl
rustc_privacy Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_query_impl Add comment 2023-05-21 11:25:07 +02:00
rustc_query_system Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_resolve Auto merge of #111858 - clubby789:fluent-alphabetical, r=jyn514,compiler-errors 2023-05-26 03:31:04 +00:00
rustc_serialize
rustc_session Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_smir
rustc_span Remove ExpnKind::Inlined. 2023-05-25 16:43:14 +00:00
rustc_symbol_mangling Use Option::is_some_and and Result::is_ok_and in the compiler 2023-05-24 14:20:41 +00:00
rustc_target Auto merge of #111933 - matthiaskrgr:rollup-m10k3ts, r=matthiaskrgr 2023-05-25 06:02:11 +00:00
rustc_trait_selection Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_traits Prepopulate opaques in canonical input 2023-05-25 03:21:22 +00:00
rustc_transmute
rustc_ty_utils Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_type_ir