diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-28 19:51:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-28 19:51:16 +0200 |
| commit | 048794d62445c03e90b738f936cd0aac80e72a87 (patch) | |
| tree | 05802e31103b73498a791446d7e7f29a04d3f28b /compiler/rustc_codegen_gcc/src/errors.rs | |
| parent | 76f0a8c30c0fb2f3315d7eeddd38474a2b63f246 (diff) | |
| parent | 8745fdc4487d6200ec652abc05b7a1ac9bb16765 (diff) | |
| download | rust-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
