about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorElias Holzmann <9659253+EliasHolzmann@users.noreply.github.com>2025-08-26 00:05:08 +0200
committerElias Holzmann <9659253+EliasHolzmann@users.noreply.github.com>2025-08-26 03:42:52 +0200
commit575a90eb87f4a8f0dbb3ba001cbd5a799322fac8 (patch)
tree6d36bf075418735377e3d337eb19b34ca05c99e5 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent54c581243c977c7662c949b5795c31147f8a60ed (diff)
downloadrust-575a90eb87f4a8f0dbb3ba001cbd5a799322fac8.tar.gz
rust-575a90eb87f4a8f0dbb3ba001cbd5a799322fac8.zip
formatting_options: Make all methods `const`
Having `const fn`s that take a `mut &` 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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions