about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-08-26 16:34:16 +0200
committerGitHub <noreply@github.com>2025-08-26 16:34:16 +0200
commit5d95ec05f63209fbb41080425079fba3e20399dc (patch)
treefa03d9fbb40a648c147511e0dbf7e97d0ebe8537 /compiler/rustc_codegen_llvm/src
parent20a3e452a9284e9931a215c995a8040c3f25fb19 (diff)
parent575a90eb87f4a8f0dbb3ba001cbd5a799322fac8 (diff)
downloadrust-5d95ec05f63209fbb41080425079fba3e20399dc.tar.gz
rust-5d95ec05f63209fbb41080425079fba3e20399dc.zip
Rollup merge of #145863 - EliasHolzmann:formatting_options_20250825, r=m-ou-se
formatting_options: Make all methods `const`

Related to rust-lang/rust#118117.

Having `const fn`s that take a `mut &` was unstable until Rust 1.83 (see rust-lang/rust#129195). 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]).

r? `@m-ou-se` (As you were the reviewer for the original implementation – feel free to reroll if you are busy or if you aren't interested)

[1]: https://github.com/rust-lang/rust/issues/118117#issuecomment-2687470635
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions