<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/alloc/src/collections/btree/map/entry.rs, branch cargo_update</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=cargo_update</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=cargo_update'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-09-20T04:32:15+00:00</updated>
<entry>
<title>Add unstable attribute to BTreeMap-related allocator generics</title>
<updated>2025-09-20T04:32:15+00:00</updated>
<author>
<name>Sidney Cammeresi</name>
<email>sac@cheesecake.org</email>
</author>
<published>2025-09-20T04:17:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=42b38e3781ee3c34cf3df4dea4cd836a814cfb60'/>
<id>urn:sha1:42b38e3781ee3c34cf3df4dea4cd836a814cfb60</id>
<content type='text'>
Although these types aren't directly constructable externally, since
they're pub, I think this omission was an oversight.
</content>
</entry>
<entry>
<title>Rollup merge of #144871 - Kivooeo:btree_entry_insert-stabilize, r=jhpratt</title>
<updated>2025-09-17T04:56:42+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-09-17T04:56:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=feeb68eb5e6a09053a499461b3e7ce471447ebf6'/>
<id>urn:sha1:feeb68eb5e6a09053a499461b3e7ce471447ebf6</id>
<content type='text'>
Stabilize `btree_entry_insert` feature

This stabilises `btree_map::VacantEntry::insert_entry` and `btree_map::Entry::insert_entry`, following the FCP in [tracking issue](https://github.com/rust-lang/rust/issues/65225).

New stable API:

```rust
impl&lt;'a, K: Ord, V, A: Allocator + Clone&gt; Entry&lt;'a, K, V, A&gt; {
    pub fn insert_entry(self, value: V) -&gt; OccupiedEntry&lt;'a, K, V, A&gt;;
}

impl&lt;'a, K: Ord, V, A: Allocator + Clone&gt; VacantEntry&lt;'a, K, V, A&gt; {
    pub fn insert_entry(mut self, value: V) -&gt; OccupiedEntry&lt;'a, K, V, A&gt;;
}
```

(FCP ended almost a year ago, so if it's needed for process we could rerun it)

Closes: https://github.com/rust-lang/rust/issues/65225
</content>
</entry>
<entry>
<title>remove deprecated Error::description in impls</title>
<updated>2025-08-26T06:36:53+00:00</updated>
<author>
<name>Marijn Schouten</name>
<email>mhkbst@gmail.com</email>
</author>
<published>2025-08-23T19:36:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=845311a065a5638c516ed96c73b09862b176b329'/>
<id>urn:sha1:845311a065a5638c516ed96c73b09862b176b329</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove gates</title>
<updated>2025-08-03T20:24:22+00:00</updated>
<author>
<name>Kivooeo</name>
<email>Kivooeo123@gmail.com</email>
</author>
<published>2025-08-03T20:24:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b5a4e5d73fb7fd47caa1b22ffe8527c13f895c21'/>
<id>urn:sha1:b5a4e5d73fb7fd47caa1b22ffe8527c13f895c21</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add `BTreeSet` entry APIs to match `HashSet`</title>
<updated>2024-11-27T18:51:24+00:00</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2024-11-14T22:45:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b0f8bd7438362e3160de47381dfd1da5b8cf4449'/>
<id>urn:sha1:b0f8bd7438362e3160de47381dfd1da5b8cf4449</id>
<content type='text'>
* `fn get_or_insert(&amp;mut self, value: T) -&gt; &amp;T`
* `fn get_or_insert_with&lt;Q: ?Sized, F&gt;(&amp;mut self, value: &amp;Q, f: F) -&gt; &amp;T`
* `fn entry(&amp;mut self, value: T) -&gt; Entry&lt;'_, T, A&gt;` (+ `Entry` APIs)
</content>
</entry>
<entry>
<title>btree: add `{Entry,VacantEntry}::insert_entry`</title>
<updated>2024-11-14T19:41:55+00:00</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2024-11-14T17:15:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=584ec95972485f4c271760517799f4fba85a10f2'/>
<id>urn:sha1:584ec95972485f4c271760517799f4fba85a10f2</id>
<content type='text'>
This matches the recently-stabilized methods on `HashMap` entries. I've
reused tracking issue #65225 for now, but we may want to split it.
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</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>Fix doc nits</title>
<updated>2024-07-26T12:26:33+00:00</updated>
<author>
<name>John Arundel</name>
<email>john@bitfieldconsulting.com</email>
</author>
<published>2024-07-15T11:26:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a19472a93e2eecce1477011fa9f7ec49b45ca164'/>
<id>urn:sha1:a19472a93e2eecce1477011fa9f7ec49b45ca164</id>
<content type='text'>
Many tiny changes to stdlib doc comments to make them consistent (for example
"Returns foo", rather than "Return foo", per RFC1574), adding missing periods, paragraph
breaks, backticks for monospace style, and other minor nits.

https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
</content>
</entry>
<entry>
<title>lib: fix some unnecessary_cast clippy lint</title>
<updated>2024-03-25T20:19:40+00:00</updated>
<author>
<name>klensy</name>
<email>klensy@users.noreply.github.com</email>
</author>
<published>2024-03-25T20:19:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8560d01a96f38790299c20b9c34dcc6853a08a00'/>
<id>urn:sha1:8560d01a96f38790299c20b9c34dcc6853a08a00</id>
<content type='text'>
warning: casting raw pointers to the same type and constness is unnecessary (`*mut V` -&gt; `*mut V`)
   --&gt; library\alloc\src\collections\btree\map\entry.rs:357:31
    |
357 |                 let val_ptr = root.borrow_mut().push(self.key, value) as *mut V;
    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `root.borrow_mut().push
(self.key, value)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

warning: casting to the same type is unnecessary (`usize` -&gt; `usize`)
   --&gt; library\alloc\src\ffi\c_str.rs:411:56
    |
411 |             let slice = slice::from_raw_parts_mut(ptr, len as usize);
    |                                                        ^^^^^^^^^^^^ help: try: `len`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

warning: casting raw pointers to the same type and constness is unnecessary (`*mut T` -&gt; `*mut T`)
   --&gt; library\alloc\src\slice.rs:516:25
    |
516 |                         (buf.as_mut_ptr() as *mut T).add(buf.len()),
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `buf.as_mut_ptr()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

warning: casting raw pointers to the same type and constness is unnecessary (`*mut T` -&gt; `*mut T`)
   --&gt; library\alloc\src\slice.rs:537:21
    |
537 |                     (buf.as_mut_ptr() as *mut T).add(buf.len()),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `buf.as_mut_ptr()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

warning: casting raw pointers to the same type and constness is unnecessary (`*const ()` -&gt; `*const ()`)
   --&gt; library\alloc\src\task.rs:151:13
    |
151 |             waker as *const (),
    |             ^^^^^^^^^^^^^^^^^^ help: try: `waker`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

warning: casting raw pointers to the same type and constness is unnecessary (`*const ()` -&gt; `*const ()`)
   --&gt; library\alloc\src\task.rs:323:13
    |
323 |             waker as *const (),
    |             ^^^^^^^^^^^^^^^^^^ help: try: `waker`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

warning: casting to the same type is unnecessary (`usize` -&gt; `usize`)
   --&gt; library\std\src\sys_common\net.rs:110:21
    |
110 |             assert!(len as usize &gt;= mem::size_of::&lt;c::sockaddr_in&gt;());
    |                     ^^^^^^^^^^^^ help: try: `len`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

warning: casting to the same type is unnecessary (`usize` -&gt; `usize`)
   --&gt; library\std\src\sys_common\net.rs:116:21
    |
116 |             assert!(len as usize &gt;= mem::size_of::&lt;c::sockaddr_in6&gt;());
    |                     ^^^^^^^^^^^^ help: try: `len`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
</content>
</entry>
</feed>
