about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-15 10:56:44 +0200
committerGitHub <noreply@github.com>2024-06-15 10:56:44 +0200
commit83cbceac0f4646967c61419c324dcd4e535b511d (patch)
tree18902e510bd2e8f7494eab6c242d240c19d2d9a5 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parente287a000181d3f27e4dd41551fe111ba9f1e68df (diff)
parentb8eb6ad03273d42d6a22ced57a46e5652fb35f1d (diff)
downloadrust-83cbceac0f4646967c61419c324dcd4e535b511d.tar.gz
rust-83cbceac0f4646967c61419c324dcd4e535b511d.zip
Rollup merge of #126509 - workingjubilee:gently-discourage-doing-things-once, r=jhpratt
std: suggest OnceLock over Once

It was noted in https://github.com/rust-lang/rust/issues/125615#issuecomment-2149590818 that Once is not necessary in most cases and should be discouraged. Once is really just an implementation detail of OnceLock that others can use if they want. Suggest they use OnceLock instead.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions