<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/core/src/fmt, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-09-26T23:32:54+00:00</updated>
<entry>
<title>formatting_options: fix alternate docs 0b/0o mixup</title>
<updated>2025-09-26T23:32:54+00:00</updated>
<author>
<name>Daniel Verkamp</name>
<email>daniel@drv.nu</email>
</author>
<published>2025-09-26T23:30:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=97f64374a9f34012c8884dbd629a896ec6ed8475'/>
<id>urn:sha1:97f64374a9f34012c8884dbd629a896ec6ed8475</id>
<content type='text'>
The descriptions of the alternate forms of Octal and Binary were swapped
in the doc comment for FormattingOptions::alternate().
</content>
</entry>
<entry>
<title>Rollup merge of #145940 - pascaldekloe:int-exp-tune, r=tgross35</title>
<updated>2025-09-06T18:39:04+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>t.gross35@gmail.com</email>
</author>
<published>2025-09-06T18:39:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ebde667698e4fc2c48ede70c7169d2b2ee7e8afb'/>
<id>urn:sha1:ebde667698e4fc2c48ede70c7169d2b2ee7e8afb</id>
<content type='text'>
single buffer for exponent fmt of integers

No need for fragmented buffers when formatting.

```
orig.txt: fmt::write_i128_exp                                                  143.39ns/iter      +/- 0.32
orig.txt: fmt::write_i64_exp                                                    68.72ns/iter      +/- 0.03
new.txt:  fmt::write_i128_exp                                                  138.29ns/iter      +/- 0.50
new.txt:  fmt::write_i64_exp                                                    58.93ns/iter      +/- 4.62
```

This patch fully eliminates unsafe pointer use (after rust-lang/rust#135265 and rust-lang/rust#136594).

    r? libs
</content>
</entry>
<entry>
<title>single buffer for exponent fmt of integers</title>
<updated>2025-09-05T17:45:12+00:00</updated>
<author>
<name>Pascal S. de Kloe</name>
<email>pascal@quies.net</email>
</author>
<published>2025-08-24T12:47:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=56e95aa6a9cdd5c6873b888cd808a88ffde83809'/>
<id>urn:sha1:56e95aa6a9cdd5c6873b888cd808a88ffde83809</id>
<content type='text'>
</content>
</entry>
<entry>
<title>formatting_options: Make all methods `const`</title>
<updated>2025-08-26T01:42:52+00:00</updated>
<author>
<name>Elias Holzmann</name>
<email>9659253+EliasHolzmann@users.noreply.github.com</email>
</author>
<published>2025-08-25T22:05:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=575a90eb87f4a8f0dbb3ba001cbd5a799322fac8'/>
<id>urn:sha1:575a90eb87f4a8f0dbb3ba001cbd5a799322fac8</id>
<content type='text'>
Having `const fn`s that take a `mut &amp;` was unstable until Rust 1.83. Because of
this, not all methods on `FormattingOptions` were implemented as `const`. As
this has been stabilized now, there is no reason not to have all methods
`const`.

Thanks to Ternvein for bringing this to my attention (see [1]).

[1]: https://github.com/rust-lang/rust/issues/118117#issuecomment-2687470635
</content>
</entry>
<entry>
<title>Rollup merge of #143730 - pascaldekloe:fmt-radix-trim, r=tgross35</title>
<updated>2025-08-19T11:42:03+00:00</updated>
<author>
<name>许杰友 Jieyou Xu (Joe)</name>
<email>39484203+jieyouxu@users.noreply.github.com</email>
</author>
<published>2025-08-19T11:42:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4327e6903037d88f91d5b8d4609fdbe19e78541f'/>
<id>urn:sha1:4327e6903037d88f91d5b8d4609fdbe19e78541f</id>
<content type='text'>
fmt of non-decimal radix untangled

Have the implementation match its decimal counterpart.

* Digit table instead of conversion functions
* Correct buffer size per radix
* Elimination of dead code for negative
* No trait abstraction for integers

#### Original Performance
```
    fmt::write_10ints_bin                                                393.03ns/iter      +/- 1.41
    fmt::write_10ints_hex                                                316.84ns/iter      +/- 1.49
    fmt::write_10ints_oct                                                327.16ns/iter      +/- 0.46
```

#### Patched Performance
```
    fmt::write_10ints_bin                                                392.31ns/iter      +/- 3.05
    fmt::write_10ints_hex                                                302.41ns/iter      +/- 5.48
    fmt::write_10ints_oct                                                322.01ns/iter      +/- 3.82
```

r? tgross35
</content>
</entry>
<entry>
<title>fmt::DisplayInt abstraction obsolete with better macro</title>
<updated>2025-08-16T16:33:20+00:00</updated>
<author>
<name>Pascal S. de Kloe</name>
<email>pascal@quies.net</email>
</author>
<published>2025-07-10T12:32:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1f77424a7902e0e0a5cdbbe650394a14f61637d0'/>
<id>urn:sha1:1f77424a7902e0e0a5cdbbe650394a14f61637d0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fmt with table lookup for binary, octal and hex</title>
<updated>2025-08-02T11:26:59+00:00</updated>
<author>
<name>Pascal S. de Kloe</name>
<email>pascal@quies.net</email>
</author>
<published>2025-07-08T15:56:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4ad8606d79a7cb9693f315fdd979fdb03d72318e'/>
<id>urn:sha1:4ad8606d79a7cb9693f315fdd979fdb03d72318e</id>
<content type='text'>
* correct buffer size
* no trait abstraction
* similar to decimal
</content>
</entry>
<entry>
<title>fmt of non-decimals is always non-negative due to the two's-complement output</title>
<updated>2025-07-25T14:02:59+00:00</updated>
<author>
<name>Pascal S. de Kloe</name>
<email>pascal@quies.net</email>
</author>
<published>2025-06-26T12:52:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c6ac515a2bcf6dbb4e27b11111da80f5ff36a88d'/>
<id>urn:sha1:c6ac515a2bcf6dbb4e27b11111da80f5ff36a88d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #143423 - hkBst:clippy-fix-1, r=workingjubilee</title>
<updated>2025-07-20T13:34:04+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2025-07-20T13:34:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5ba1251b55ed560aabf92c81db6a6612de5f648e'/>
<id>urn:sha1:5ba1251b55ed560aabf92c81db6a6612de5f648e</id>
<content type='text'>
address clippy formatting nits

- int_log10.rs: change top level doc comments to outer
- collect.rs: remove empty line after doc comment
- clippy fix: markdown indentation for indented items after line break: a markdown list item continued over multiples lines, but those following lines which are part of the same item are not indented
- clippy fix: bound in one place: when there is a bound in angle brackets and another bound on the same variable in a where clause
</content>
</entry>
<entry>
<title>Fixed a core crate compilation failure when enabling the `optimize_for_size` feature on some targets</title>
<updated>2025-07-12T01:59:19+00:00</updated>
<author>
<name>nazo6</name>
<email>git@nazo6.dev</email>
</author>
<published>2025-07-12T01:59:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5d7db7e16ec5af85c39138dd7c669bc2219d1507'/>
<id>urn:sha1:5d7db7e16ec5af85c39138dd7c669bc2219d1507</id>
<content type='text'>
</content>
</entry>
</feed>
