Logo
Explore Help
Register Sign In
Mirrors/rust
1
0
Fork 0
You've already forked rust
mirror of https://github.com/rust-lang/rust.git synced 2026-05-01 07:13:24 +03:00
Code Issues Packages Projects Releases Wiki Activity
Files
perf-tmp
rust/library/std/tests
T
History
Jonathan Brouwer 8d8dcf142a Rollup merge of #154929 - davidgauch:const-default-lazy, r=jhpratt
Add `const Default` impls for `LazyCell` and `LazyLock`

Follow up to these commits by @estebank https://github.com/rust-lang/rust/pull/134628 and https://github.com/rust-lang/rust/pull/151190.
Tracking issue https://github.com/rust-lang/rust/issues/143894.

cc @fmease @fee1-dead @oli-obk

This enables `static L: LazyLock<D> = Default::default()`  for any type `D: Default` which is safe as `D::default()` is only evaluated at runtime.
2026-04-13 20:20:02 +02:00
..
common
…
sync
…
thread_local
…
ambiguous-hash_map.rs
…
builtin-clone.rs
…
create_dir_all_bare.rs
…
env_modify.rs
…
env.rs
…
eq-multidispatch.rs
…
error.rs
…
istr.rs
…
log-knows-the-names-of-variants-in-std.rs
…
minmax-stability-issue-23687.rs
…
num.rs
…
panic.rs
…
path.rs
…
pipe_subprocess.rs
…
process_spawning.rs
…
run-time-detect.rs
…
seq-compare.rs
…
slice-from-array-issue-113238.rs
…
switch-stdout.rs
…
thread.rs
…
time.rs
…
type-name-unsized.rs
…
volatile-fat-ptr.rs
…
win_delete_self.rs
…
windows_unix_socket.rs
…
windows.rs
…
Powered by Gitea Version: 1.26.0 Page: 3237ms Template: 18ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API