<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/core/src/task, branch 1.62.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.62.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.62.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-05-13T06:01:18+00:00</updated>
<entry>
<title>Remove some unnecessary `rustc_allow_const_fn_unstable` attributes.</title>
<updated>2022-05-13T06:01:18+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-05-13T06:01:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fd01fbc05884178122471a1a44b715f0dc87d187'/>
<id>urn:sha1:fd01fbc05884178122471a1a44b715f0dc87d187</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #89869 - kpreid:from-doc, r=yaahc</title>
<updated>2022-02-17T05:29:57+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-02-17T05:29:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1cc0ae4cbbcb9909035b5b99fc20bf6b79f4010c'/>
<id>urn:sha1:1cc0ae4cbbcb9909035b5b99fc20bf6b79f4010c</id>
<content type='text'>
Add documentation to more `From::from` implementations.

For users looking at documentation through IDE popups, this gives them relevant information rather than the generic trait documentation wording “Performs the conversion”. For users reading the documentation for a specific type for any reason, this informs them when the conversion may allocate or copy significant memory versus when it is always a move or cheap copy.

Notes on specific cases:
* The new documentation for `From&lt;T&gt; for T` explains that it is not a conversion at all.
* Also documented `impl&lt;T, U&gt; Into&lt;U&gt; for T where U: From&lt;T&gt;`, the other central blanket implementation of conversion.
* The new documentation for construction of maps and sets from arrays of keys mentions the handling of duplicates. Future work could be to do this for *all* code paths that convert an iterable to a map or set.
* I did not add documentation to conversions of a specific error type to a more general error type.
* I did not add documentation to unstable code.

This change was prepared by searching for the text "From&lt;... for" and so may have missed some cases that for whatever reason did not match. I also looked for `Into` impls but did not find any worth documenting by the above criteria.
</content>
</entry>
<entry>
<title>Implement data and vtable getters for `RawWaker`</title>
<updated>2021-12-16T20:30:13+00:00</updated>
<author>
<name>oxalica</name>
<email>oxalicc@pm.me</email>
</author>
<published>2021-12-12T09:55:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bae0da83612257185691faf94fc39457b4ed14e6'/>
<id>urn:sha1:bae0da83612257185691faf94fc39457b4ed14e6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add documentation to more `From::from` implementations.</title>
<updated>2021-12-04T15:46:36+00:00</updated>
<author>
<name>Kevin Reid</name>
<email>kpreid@google.com</email>
</author>
<published>2021-10-13T15:46:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6fd5cf51c1528c16f8a186ced5d6d21b1d70e319'/>
<id>urn:sha1:6fd5cf51c1528c16f8a186ced5d6d21b1d70e319</id>
<content type='text'>
For users looking at documentation through IDE popups, this gives them
relevant information rather than the generic trait documentation wording
“Performs the conversion”. For users reading the documentation for a
specific type for any reason, this informs them when the conversion may
allocate or copy significant memory versus when it is always a move or
cheap copy.

Notes on specific cases:
* The new documentation for `From&lt;T&gt; for T` explains that it is not a
  conversion at all.
* Also documented `impl&lt;T, U&gt; Into&lt;U&gt; for T where U: From&lt;T&gt;`, the other
  central blanket implementation of conversion.
* I did not add documentation to conversions of a specific error type to
  a more general error type.
* I did not add documentation to unstable code.

This change was prepared by searching for the text "From&lt;... for" and so
may have missed some cases that for whatever reason did not match. I
also looked for `Into` impls but did not find any worth documenting by
the above criteria.
</content>
</entry>
<entry>
<title>Rollup merge of #89897 - jkugelman:must-use-core, r=joshtriplett</title>
<updated>2021-10-31T08:20:26+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2021-10-31T08:20:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=95750ae4394b4575df24e2d1484a823ca2988231'/>
<id>urn:sha1:95750ae4394b4575df24e2d1484a823ca2988231</id>
<content type='text'>
Add #[must_use] to remaining core functions

I've run out of compelling reasons to group functions together across crates so I'm just going to go module-by-module. This is everything remaining from the `core` crate.

Ignored by clippy for reasons unknown:

```rust
core::alloc::Layout   unsafe fn for_value_raw&lt;T: ?Sized&gt;(t: *const T) -&gt; Self;
core::any             const fn type_name_of_val&lt;T: ?Sized&gt;(_val: &amp;T) -&gt; &amp;'static str;
```

Ignored by clippy because of `mut`:

```rust
str   fn split_at_mut(&amp;mut self, mid: usize) -&gt; (&amp;mut str, &amp;mut str);
```

&lt;del&gt;
Ignored by clippy presumably because a caller might want `f` called for side effects. That seems like a bad usage of `map` to me.

```rust
core::cell::Ref&lt;'b, T&gt;   fn map&lt;U: ?Sized, F&gt;(orig: Ref&lt;'b, T&gt;, f: F) -&gt; Ref&lt;'b, T&gt;;
core::cell::Ref&lt;'b, T&gt;   fn map_split&lt;U: ?Sized, V: ?Sized, F&gt;(orig: Ref&lt;'b, T&gt;, f: F) -&gt; (Ref&lt;'b, U&gt;, Ref&lt;'b, V&gt;);
```
&lt;/del&gt;

Parent issue: #89692

r? ```@joshtriplett```
</content>
</entry>
<entry>
<title>Add #[must_use] to remaining core functions</title>
<updated>2021-10-30T22:21:29+00:00</updated>
<author>
<name>John Kugelman</name>
<email>john@kugelman.name</email>
</author>
<published>2021-10-14T22:54:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=68b0d862945782f215f39980d6ac9ffabdb2031c'/>
<id>urn:sha1:68b0d862945782f215f39980d6ac9ffabdb2031c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make more `From` impls `const`</title>
<updated>2021-10-18T10:19:28+00:00</updated>
<author>
<name>woppopo</name>
<email>woppopo@protonmail.com</email>
</author>
<published>2021-10-18T10:19:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7936ecff4803e30ec0d3d85a531860025bb6b346'/>
<id>urn:sha1:7936ecff4803e30ec0d3d85a531860025bb6b346</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix minor spelling error in Poll::ready docs</title>
<updated>2021-10-12T04:00:02+00:00</updated>
<author>
<name>ast-ral</name>
<email>33921117+ast-ral@users.noreply.github.com</email>
</author>
<published>2021-10-12T04:00:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5100630dcd634cb5db5e030a9f439a03057a5a25'/>
<id>urn:sha1:5100630dcd634cb5db5e030a9f439a03057a5a25</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #89651 - ibraheemdev:poll-ready, r=dtolnay</title>
<updated>2021-10-11T21:45:48+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2021-10-11T21:45:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d3984e16bf04f8ff886247cbf684041ba623d6ab'/>
<id>urn:sha1:d3984e16bf04f8ff886247cbf684041ba623d6ab</id>
<content type='text'>
Add `Poll::ready` and revert stabilization of `task::ready!`

This PR adds an inherent `ready` method to `Poll` that can be used with the `?` operator as an alternative to the `task::ready!` macro:
```rust
let val = ready!(fut.poll(cx));
let val = fut.poll(cx).ready()?;
```

I think this form is a nice, non-breaking middle ground between changing the `impl Try for Poll`, and adding a separate macro. It looks better than `ready!` in my opinion, and it composes well:

```rust
let elem = ready!(fut.poll(cx)).pop().unwrap();
let elem = fut.poll(cx).ready()?.pop().unwrap();
```

The planned stabilization of `ready!` in 1.56 has been reverted because I think this alternate approach is worth considering.

r? rust-lang/libs
</content>
</entry>
<entry>
<title>Add library tracking issue for poll_ready feature</title>
<updated>2021-10-11T19:17:41+00:00</updated>
<author>
<name>David Tolnay</name>
<email>dtolnay@gmail.com</email>
</author>
<published>2021-10-11T19:17:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a1e03fc563eaaab04b747cf8d3f1a0d8931e39fd'/>
<id>urn:sha1:a1e03fc563eaaab04b747cf8d3f1a0d8931e39fd</id>
<content type='text'>
</content>
</entry>
</feed>
