<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/core/src/array, branch stable</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=stable</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=stable'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-07-21T09:49:45+00:00</updated>
<entry>
<title>Constify Try, From, TryFrom</title>
<updated>2025-07-21T09:49:45+00:00</updated>
<author>
<name>Evgenii Zheltonozhskii</name>
<email>zheltonozhskiy@gmail.com</email>
</author>
<published>2025-07-21T09:49:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3c76e3d0026ea9904358b1614bbd9c4f8b7cedf5'/>
<id>urn:sha1:3c76e3d0026ea9904358b1614bbd9c4f8b7cedf5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>constify `Index` trait and its slice impls</title>
<updated>2025-07-15T08:27:15+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>github333195615777966@oli-obk.de</email>
</author>
<published>2025-07-11T09:24:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2b4ede7e3d37de731821b5b04a6f1fce269c1afb'/>
<id>urn:sha1:2b4ede7e3d37de731821b5b04a6f1fce269c1afb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>simplify receivers for some array method calls</title>
<updated>2025-07-03T14:39:27+00:00</updated>
<author>
<name>Marijn Schouten</name>
<email>mhkbst@gmail.com</email>
</author>
<published>2025-07-03T14:39:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d3f2e2ec6eead8ba698aeda5967a1f4578e904b2'/>
<id>urn:sha1:d3f2e2ec6eead8ba698aeda5967a1f4578e904b2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update version placeholders</title>
<updated>2025-07-01T17:54:33+00:00</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2025-06-23T17:24:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9ce8930da62a9be15831b78b9834d91702872e15'/>
<id>urn:sha1:9ce8930da62a9be15831b78b9834d91702872e15</id>
<content type='text'>
</content>
</entry>
<entry>
<title>impl `Default` for `array::IntoIter`</title>
<updated>2025-05-26T07:21:03+00:00</updated>
<author>
<name>Deadbeef</name>
<email>ent3rm4n@gmail.com</email>
</author>
<published>2025-05-26T07:20:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=62435f922a0b0b100f217f13047d4741c14ec1c5'/>
<id>urn:sha1:62435f922a0b0b100f217f13047d4741c14ec1c5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #140066 - thaliaarchi:const-array-as-mut-slice, r=jhpratt</title>
<updated>2025-05-24T19:23:47+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2025-05-24T19:23:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=07157b78b1acc47100bebfc0070d322cee2d9fa5'/>
<id>urn:sha1:07157b78b1acc47100bebfc0070d322cee2d9fa5</id>
<content type='text'>
Stabilize `&lt;[T; N]&gt;::as_mut_slice` as `const`

This is trivial and has no design questions.

Tracked in https://github.com/rust-lang/rust/issues/133333.

r? libs-api
</content>
</entry>
<entry>
<title>Add `#[must_use]` to Array::map</title>
<updated>2025-05-13T03:34:53+00:00</updated>
<author>
<name>Julian Knodt</name>
<email>julianknodt@gmail.com</email>
</author>
<published>2025-05-13T02:17:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ab1c49a7facad5083c20407a2b1fd0b2104e174e'/>
<id>urn:sha1:ab1c49a7facad5083c20407a2b1fd0b2104e174e</id>
<content type='text'>
The output of Array::map is intended to be an array of the same size, and does not modify the
original in place nor is it intended for side-effects. Thus, under normal circumstances it should be consumed.

See [discussion](https://internals.rust-lang.org/t/array-map-annotate-with-must-use/22813/26).

Attaching to tracking issue #75243
</content>
</entry>
<entry>
<title>Stabilize &lt;[T; N]&gt;::as_mut_slice as const</title>
<updated>2025-04-20T09:13:34+00:00</updated>
<author>
<name>Thalia Archibald</name>
<email>thalia@archibald.dev</email>
</author>
<published>2025-04-20T09:13:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=38c55452445fbf9b3abaf7023273e3318e4bd64b'/>
<id>urn:sha1:38c55452445fbf9b3abaf7023273e3318e4bd64b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #139430 - scottmcm:polymorphic-array-into-iter, r=cuviper</title>
<updated>2025-04-11T23:21:31+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-04-11T23:21:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1bc56185ee257ed829a0aea7abdc3b03c5fed887'/>
<id>urn:sha1:1bc56185ee257ed829a0aea7abdc3b03c5fed887</id>
<content type='text'>
Polymorphize `array::IntoIter`'s iterator impl

Today we emit all the iterator methods for every different array width.  That's wasteful since the actual array length never even comes into it -- the indices used are from the separate `alive: IndexRange` field, not even the `N` const param.

This PR switches things so that an `array::IntoIter&lt;T, N&gt;` stores a `PolymorphicIter&lt;[MaybeUninit&lt;T&gt;; N]&gt;`, which we *unsize* to `PolymorphicIter&lt;[MaybeUninit&lt;T&gt;]&gt;` and call methods on that non-`Sized` type for all the iterator methods.

That also necessarily makes the layout consistent between the different lengths of arrays, because of the unsizing.  Compare that to today &lt;https://rust.godbolt.org/z/Prb4xMPrb&gt;, where different widths can't even be deduped because the offset to the indices is different for different array widths.
</content>
</entry>
<entry>
<title>PR feedback</title>
<updated>2025-04-10T04:44:59+00:00</updated>
<author>
<name>Scott McMurray</name>
<email>scottmcm@users.noreply.github.com</email>
</author>
<published>2025-04-09T06:26:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4207c786e752ed7495782c39b74917bbcaf438cf'/>
<id>urn:sha1:4207c786e752ed7495782c39b74917bbcaf438cf</id>
<content type='text'>
</content>
</entry>
</feed>
