diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2024-05-27 13:02:39 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2024-06-02 22:53:41 -0700 |
| commit | 2d0ebca9798f76ff5ff1ef171cdf73fb5c8d7127 (patch) | |
| tree | 1dd9a289625d681a108e72a2dd675de15bb3f4fd /compiler/rustc_interface/src/errors.rs | |
| parent | fdb96f2123a8306e24f6ef0c77296bf0d2f9af99 (diff) | |
| download | rust-2d0ebca9798f76ff5ff1ef171cdf73fb5c8d7127.tar.gz rust-2d0ebca9798f76ff5ff1ef171cdf73fb5c8d7127.zip | |
Move first OnceLock example to LazyLock
This example is spiritually an example of LazyLock, as it computes a variable at runtime but accepts no inputs into that process. It is also slightly simpler and thus easier to understand. Change it to an even-more concise version and move it to LazyLock. The example now editorializes slightly more. This may be unnecessary, but it can be educational for the reader.
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
