Nikita Popov
dd151beeb6
Adjust test to still show miscompile
...
The capture of i in assert_ne!() is now known read-only, which
enables early SROA. Block this by passing i to println, where
we currently cannot recognize this.
2025-08-20 19:08:16 +02:00
Guillaume Gomez
de93fb13fe
Add ignore-backends
annotations in failing GCC backend ui tests
2025-07-23 13:48:04 +02:00
bors
d97326eabf
Auto merge of #136264 - GuillaumeGomez:optimize-integers-to-string, r=Amanieu
...
Optimize `ToString` implementation for integers
Part of https://github.com/rust-lang/rust/issues/135543 .
Follow-up of https://github.com/rust-lang/rust/pull/133247 and https://github.com/rust-lang/rust/pull/128204 .
The benchmark results are:
| name| 1.87.0-nightly (3ea711f17 2025-03-09) | With this PR | diff |
|-|-|-|-|
| bench_i16 | 32.06 ns/iter (+/- 0.12) | 17.62 ns/iter (+/- 0.03) | -45% |
| bench_i32 | 31.61 ns/iter (+/- 0.04) | 15.10 ns/iter (+/- 0.06) | -52% |
| bench_i64 | 31.71 ns/iter (+/- 0.07) | 15.02 ns/iter (+/- 0.20) | -52% |
| bench_i8 | 13.21 ns/iter (+/- 0.14) | 14.93 ns/iter (+/- 0.16) | +13% |
| bench_u16 | 31.20 ns/iter (+/- 0.06) | 16.14 ns/iter (+/- 0.11) | -48% |
| bench_u32 | 33.27 ns/iter (+/- 0.05) | 16.18 ns/iter (+/- 0.10) | -51% |
| bench_u64 | 31.44 ns/iter (+/- 0.06) | 16.62 ns/iter (+/- 0.21) | -47% |
| bench_u8 | 10.57 ns/iter (+/- 0.30) | 13.00 ns/iter (+/- 0.43) | +22% |
More information about it in [the original comment](https://github.com/rust-lang/rust/pull/136264#discussion_r1987542954 ).
r? `@workingjubilee`
2025-05-15 20:20:30 +00:00
Mara Bos
6f1a54bad2
Remove fragile equal-pointers-unequal tests.
...
These randomly break when i change the implementation of format_args!().
2025-05-02 11:19:20 +02:00
Guillaume Gomez
1ef7585c9e
Update weirdly failing ui tests
2025-04-12 20:58:14 +02:00
Mara Bos
4e99dca8c3
Remove fragile equal-pointers-unequal/*/print3.rs tests.
2025-03-31 15:37:16 +02:00
Ralf Jung
56ee492a6e
move strict provenance lints to new feature gate, remove old feature gates
2024-10-21 15:22:17 +01:00
Pavel Grigorenko
2b089147ab
Add a bunch of tests for #107975
2024-07-19 23:27:42 +03:00