about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-28 19:51:16 +0200
committerGitHub <noreply@github.com>2023-07-28 19:51:16 +0200
commit048794d62445c03e90b738f936cd0aac80e72a87 (patch)
tree05802e31103b73498a791446d7e7f29a04d3f28b /compiler/rustc_codegen_gcc/src/errors.rs
parent76f0a8c30c0fb2f3315d7eeddd38474a2b63f246 (diff)
parent8745fdc4487d6200ec652abc05b7a1ac9bb16765 (diff)
downloadrust-048794d62445c03e90b738f936cd0aac80e72a87.tar.gz
rust-048794d62445c03e90b738f936cd0aac80e72a87.zip
Rollup merge of #114155 - Zalathar:once-cell, r=lcnr
Replace a lazy `RefCell<Option<T>>` with `OnceCell<T>`

This code was using `RefCell<Option<T>>` to manually implement lazy initialization. Now that we have `OnceCell` in the standard library, we can just use that instead.

In particular, this avoids a confusing doubly-nested option, because the value being lazily computed is itself an `Option<Symbol>`.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
0 files changed, 0 insertions, 0 deletions