-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace OnceLock
with LazyLock
, update MSRV to 1.80
#12601
base: main
Are you sure you want to change the base?
Conversation
OnceLock
to LazyLock
, update MSRV to 1.80OnceLock
with LazyLock
, update MSRV to 1.80
cdeeae7
to
920eabb
Compare
OnceLock
with LazyLock
, update MSRV to 1.80OnceLock
with LazyLock
, update MSRV to 1.80
OnceLock
with LazyLock
, update MSRV to 1.80OnceLock
with LazyLock
, update MSRV to 1.80
Unfortunately, we can't bump msrv now according to the policy. We might mark this pr blocked and wait 1.84 released. |
Sorry for misleading you @OussamaSaoudi -- it will be great when 1.80 is released |
np @alamb :) |
Which issue does this PR close?
Closes #11687
Rationale for this change
As mentioned in the issue,
LazyLock
is more ergonomic compared toOnceLock
.What changes are included in this PR?
In this PR, I change every occurrence of
OnceLock
toLazyLock
Are these changes tested?
No additional tests are needed. The existing code compiles, and tests pass.
Are there any user-facing changes?
None, this is an implementation detail.