about summary refs log tree commit diff
path: root/tests/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-01-30 14:46:51 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-01 19:18:45 +1100
commit26eb6da4e7f19fd1408eac2c67891f3dbfc47e5a (patch)
tree2d192b06ae0b9de3e20f2902c766a4a8b6aa2797 /tests/debuginfo/enum-thinlto.rs
parent3db37fb78a9a6b76373faf85c2976a2916599f85 (diff)
downloadrust-26eb6da4e7f19fd1408eac2c67891f3dbfc47e5a.tar.gz
rust-26eb6da4e7f19fd1408eac2c67891f3dbfc47e5a.zip
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.
Diffstat (limited to 'tests/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions