<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sync/lazy_lock, branch 1.85.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.85.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.85.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-09-29T02:48:13+00:00</updated>
<entry>
<title>Fix std tests for wasm32-wasip2 target</title>
<updated>2024-09-29T02:48:13+00:00</updated>
<author>
<name>Nicola Krumschmidt</name>
<email>git@nkcom.de</email>
</author>
<published>2024-09-04T00:18:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=87f17f3ccb69e9827562522ae1a38f84d2ba998a'/>
<id>urn:sha1:87f17f3ccb69e9827562522ae1a38f84d2ba998a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement ACP 429: add `Lazy{Cell,Lock}::get[_mut]` and `force_mut`</title>
<updated>2024-09-17T16:40:34+00:00</updated>
<author>
<name>Chayim Refael Friedman</name>
<email>chayimfr@gmail.com</email>
</author>
<published>2024-08-20T21:10:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d0a2ca4867c15659e28ab9c3930b5df4e60afcb0'/>
<id>urn:sha1:d0a2ca4867c15659e28ab9c3930b5df4e60afcb0</id>
<content type='text'>
In the implementation of `force_mut`, I chose performance over safety.
For `LazyLock` this isn't really a choice; the code has to be unsafe.
But for `LazyCell`, we can have a full-safe implementation, but it will
be a bit less performant, so I went with the unsafe approach.
</content>
</entry>
<entry>
<title>Reformat `use` declarations.</title>
<updated>2024-07-28T22:26:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-28T22:13:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=84ac80f1921afc243d71fd0caaa4f2838c294102'/>
<id>urn:sha1:84ac80f1921afc243d71fd0caaa4f2838c294102</id>
<content type='text'>
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
</content>
</entry>
<entry>
<title>More inference-friendly API for lazy</title>
<updated>2022-10-29T08:56:20+00:00</updated>
<author>
<name>Aleksey Kladov</name>
<email>aleksey.kladov@gmail.com</email>
</author>
<published>2022-10-29T08:56:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3cddc8bff6d5357fc68a87c802a7f4fa3e1642a7'/>
<id>urn:sha1:3cddc8bff6d5357fc68a87c802a7f4fa3e1642a7</id>
<content type='text'>
The signature for new was

```
fn new&lt;F&gt;(f: F) -&gt; Lazy&lt;T, F&gt;
```

Notably, with `F` unconstrained, `T` can be literally anything, and just
`let _ = Lazy::new(|| 92)` would not typecheck.

This historiacally was a necessity -- `new` is a `const` function, it
couldn't have any bounds. Today though, we can move `new` under the `F:
FnOnce() -&gt; T` bound, which gives the compiler enough data to infer the
type of T from closure.
</content>
</entry>
<entry>
<title>Move/rename `lazy::Sync{OnceCell,Lazy}` to `sync::{Once,Lazy}Lock`</title>
<updated>2022-06-16T15:54:42+00:00</updated>
<author>
<name>Maybe Waffle</name>
<email>waffle.lapkin@gmail.com</email>
</author>
<published>2022-06-16T15:39:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c1a2db3372a4d6896744919284f3287650a38ab7'/>
<id>urn:sha1:c1a2db3372a4d6896744919284f3287650a38ab7</id>
<content type='text'>
</content>
</entry>
</feed>
