<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src, branch 1.52.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.52.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.52.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-05-03T13:30:11+00:00</updated>
<entry>
<title>Revert "Add debug_assert_matches macro."</title>
<updated>2021-05-03T13:30:11+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2021-04-30T16:08:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1406d0610493b9090c55bb36c7cc4e8f14e4a441'/>
<id>urn:sha1:1406d0610493b9090c55bb36c7cc4e8f14e4a441</id>
<content type='text'>
This reverts commit 0a8e401188062f0c60c989978352663b1e25e70e.
</content>
</entry>
<entry>
<title>Revert "Add assert_matches!(expr, pat)."</title>
<updated>2021-05-03T13:30:11+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2021-04-30T16:06:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fa332b02450fdf5813aa82c8433f9565aff59466'/>
<id>urn:sha1:fa332b02450fdf5813aa82c8433f9565aff59466</id>
<content type='text'>
This reverts commit eb18746bc6c6c5c710ad674873438cbad5894f06.
</content>
</entry>
<entry>
<title>Rollup merge of #83678 - GuillaumeGomez:hack-Self-keyword-conflict, r=jyn514</title>
<updated>2021-04-21T20:41:24+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2021-03-30T23:14:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9787d0c7805e49ce55381375a4223dab178e0367'/>
<id>urn:sha1:9787d0c7805e49ce55381375a4223dab178e0367</id>
<content type='text'>
Fix Self keyword doc URL conflict on case insensitive file systems (until definitely fixed on rustdoc)

This is just a hack to allow rustup to work on macOS and windows again to distribute std documentation (hopefully once https://github.com/rust-lang/rfcs/pull/3097 or an equivalent is merged).

Fixes https://github.com/rust-lang/rust/issues/80504. Prevents https://github.com/rust-lang/rust/issues/83154 and https://github.com/rust-lang/rustup/issues/2694 in future releases.

cc ``@kinnison``
r? ``@jyn514``
</content>
</entry>
<entry>
<title>Rollup merge of #83269 - bstrie:revertdep, r=m-ou-se</title>
<updated>2021-03-19T22:01:39+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2021-03-19T22:01:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dbf589f9700fdebfbfd4b26b58b9d813f7677e84'/>
<id>urn:sha1:dbf589f9700fdebfbfd4b26b58b9d813f7677e84</id>
<content type='text'>
Revert the second deprecation of collections::Bound

Per the review at https://github.com/rust-lang/rust/pull/82122#discussion_r596448078 and the decision at https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/unavoidable.20breakage.20when.20deprecating.20an.20enum.3F , revert this small portion of #82122 for the time being. This doesn't affect the other components of that patch, i.e. `intrinsics::drop_in_place` is still deprecated-for-real, and uses of `collections::Bound` remain removed from the repo.
</content>
</entry>
<entry>
<title>Rollup merge of #83215 - bstrie:dephaikuraw, r=joshtriplett</title>
<updated>2021-03-19T14:03:26+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2021-03-19T14:03:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=675ae2e366741caaa90fc4719cd0a8cee377abc3'/>
<id>urn:sha1:675ae2e366741caaa90fc4719cd0a8cee377abc3</id>
<content type='text'>
Deprecate std::os::haiku::raw, which accidentally wasn't deprecated

In early 2016, all `std::os::*::raw` modules [were deprecated](https://github.com/rust-lang/rust/commit/aa23c98450063992473d40d707273903f8a3937d) in accordance with [RFC 1415](https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md). However, at this same time support for Haiku was being added to libstd, landing shortly after the aforementioned commit, and due to some crossed wires a `std::os::haiku::raw` module was added and was not marked as deprecated.

I have been in correspondence with the author of the Haiku patch, ````@nielx,```` who has confirmed that this was simply an oversight and that the definitions from the libc crate should be preferred instead.
</content>
</entry>
<entry>
<title>Rollup merge of #82892 - jix:clarify-read-read, r=joshtriplett</title>
<updated>2021-03-19T14:03:22+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2021-03-19T14:03:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=db4a97c4cbcb160b3754c803284dd0110d1de1e4'/>
<id>urn:sha1:db4a97c4cbcb160b3754c803284dd0110d1de1e4</id>
<content type='text'>
Clarify docs for Read::read's return value

Right now the docs for `Read::read`'s return value are phrased in a way that makes it easy for the reader to assume that the return value is never larger than the passed buffer. This PR clarifies that this is a requirement for implementations of the trait, but that callers have to expect a buggy yet safe implementation failing to do so, especially if unchecked accesses to the buffer are done afterwards.

I fell into this trap recently, and when I noticed, I looked at the docs again and had the feeling that I might not have been the first one to miss this.

The same issue of trusting the return value of `read` was also present in std itself for about 2.5 years and only fixed recently, see #80895.

I hope that clarifying the docs might help others to avoid this issue.
</content>
</entry>
<entry>
<title>Rollup merge of #82500 - CDirkx:hermit-pipe, r=joshtriplett</title>
<updated>2021-03-19T14:03:14+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2021-03-19T14:03:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4abcd4042c34a80872d0e687b9aa325e68b58d08'/>
<id>urn:sha1:4abcd4042c34a80872d0e687b9aa325e68b58d08</id>
<content type='text'>
Reuse `std::sys::unsupported::pipe` on `hermit`

Pipes are not supported on `hermit` and `hermit/pipe.rs` is identical to `unsupported/pipe.rs`. This PR reduces duplication between the two by doing the following on `hermit`:

```rust
#[path = "../unsupported/pipe.rs"]
pub mod pipe;
```
</content>
</entry>
<entry>
<title>Clarify docs for Read::read's return value</title>
<updated>2021-03-18T21:52:46+00:00</updated>
<author>
<name>Jannis Harder</name>
<email>me@jix.one</email>
</author>
<published>2021-03-08T10:58:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9dfda62763a4462407bf76b916b1808aed57401a'/>
<id>urn:sha1:9dfda62763a4462407bf76b916b1808aed57401a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert the second deprecation of collections::Bound</title>
<updated>2021-03-18T17:57:31+00:00</updated>
<author>
<name>bstrie</name>
<email>865233+bstrie@users.noreply.github.com</email>
</author>
<published>2021-03-18T17:57:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1e322e33fe4469ff18e3d9fddc218b82bbede82e'/>
<id>urn:sha1:1e322e33fe4469ff18e3d9fddc218b82bbede82e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #83223 - JohnTitor:display-err-from-mmap, r=joshtriplett</title>
<updated>2021-03-17T23:28:15+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2021-03-17T23:28:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=03400455e151b0af745b94fc864186c82fe02e36'/>
<id>urn:sha1:03400455e151b0af745b94fc864186c82fe02e36</id>
<content type='text'>
Display error details when a `mmap` call fails

Fixes #82388
</content>
</entry>
</feed>
