rust/compiler/rustc_errors/src
Nicholas Nethercote 26eb6da4e7 Fit more values into DiagnosticArgValue::Number.
It contains an `i128`, but when creating them we convert any number
outside the range -100..100 to a string, because Fluent uses an `f64`.
It's all a bit strange.

This commit changes the `i128` to an `i32`, which fits safely in
Fluent's `f64`, and removes the -100..100 range check. This means that
only integers outside the range of `i32` will be converted to strings.
2024-02-01 19:18:45 +11:00
..
json Rename many DiagCtxt and EarlyDiagCtxt locals. 2023-12-18 16:06:22 +11:00
markdown apply fmt 2024-01-11 15:04:48 +03:00
annotate_snippet_emitter_writer.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
codes.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
diagnostic_builder.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
diagnostic_impls.rs Fit more values into DiagnosticArgValue::Number. 2024-02-01 19:18:45 +11:00
diagnostic.rs Fit more values into DiagnosticArgValue::Number. 2024-02-01 19:18:45 +11:00
emitter.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
error.rs Make translate_message return result and add tests 2023-01-08 23:35:43 +01:00
json.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
lib.rs Tweak emit_stashed_diagnostics. 2024-02-01 19:18:45 +11:00
lock.rs bump windows crate 0.46 -> 0.48 in workspace 2023-05-09 18:20:13 +03:00
registry.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
snippet.rs Create AnnotationColumn struct to fix hard tab column numbers in errors 2023-03-28 09:18:55 -04:00
styled_buffer.rs Replace some _ == _ || _ == _s with matches!(_, _ | _)s 2023-01-30 12:26:26 +00:00
tests.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
translation.rs Remove the second lifetime from DiagnosticArg. 2024-01-30 18:46:08 +11:00