diff options
| author | Michael Goulet <michael@errs.io> | 2023-12-05 14:52:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-05 14:52:43 -0500 |
| commit | 6fa93e83c96ac3e52e5093687a88ef8f64bd5f47 (patch) | |
| tree | fa5107fdb66bdd36efc6a9ff2dbd72f1414d1494 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | aa5f25174dfce3b445f38adff0094724542cdd16 (diff) | |
| parent | 13c16e3afc09746bc0b6fd0f467c4a0f33d1dcc1 (diff) | |
| download | rust-6fa93e83c96ac3e52e5093687a88ef8f64bd5f47.tar.gz rust-6fa93e83c96ac3e52e5093687a88ef8f64bd5f47.zip | |
Rollup merge of #118450 - marcin-serwin:master, r=workingjubilee
Use OnceCell in cell module documentation The spanning tree example in the std cell module implementation was created before `OnceCell` was added to Rust so it uses `RefCell`. However, in this case using `OnceCell` seems more appropriate and produces simpler code. As a bonus, this also means that all three cell types are presented in the examples of std cell module.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
