Skip to content

Commit d4b49fd

Browse files
authored
Update current status of diagnostics translation infra (rust-lang#2105)
1 parent c31d23b commit d4b49fd

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Diff for: src/diagnostics/translation.md

+22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Translation
22

3+
<div class="warning">
4+
rustc's current diagnostics translation infrastructure (as of
5+
<!-- date-check --> October 2024
6+
) unfortunately causes some friction for compiler contributors, and the current
7+
infrastructure is mostly pending a redesign that better addresses needs of both
8+
compiler contributors and translation teams. Note that there is no current
9+
active redesign proposals (as of
10+
<!-- date-check --> October 2024
11+
)!
12+
13+
Please see the tracking issue <https://github.com/rust-lang/rust/issues/132181>
14+
for status updates.
15+
16+
We have downgraded the internal lints `untranslatable_diagnostic` and
17+
`diagnostic_outside_of_impl`. Those internal lints previously required new code
18+
to use the current translation infrastructure. However, because the translation
19+
infra is waiting for a yet-to-be-proposed redesign and thus rework, we are not
20+
mandating usage of current translation infra. Use the infra if you *want to* or
21+
otherwise makes the code cleaner, but otherwise sidestep the translation infra
22+
if you need more flexibility.
23+
</div>
24+
325
rustc's diagnostic infrastructure supports translatable diagnostics using
426
[Fluent].
527

0 commit comments

Comments
 (0)