<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/alloc, branch 1.76.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.76.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.76.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-01-25T19:40:56+00:00</updated>
<entry>
<title>fix: Drop guard was deallocating with the incorrect size</title>
<updated>2024-01-25T19:40:56+00:00</updated>
<author>
<name>The 8472</name>
<email>git@infinite-source.de</email>
</author>
<published>2024-01-19T21:42:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=73b36b14042351b55fcce7afc196669a5bc84c09'/>
<id>urn:sha1:73b36b14042351b55fcce7afc196669a5bc84c09</id>
<content type='text'>
InPlaceDstBufDrop holds onto the allocation before the shrinking happens
which means it must deallocate the destination elements but the source
allocation.

(cherry picked from commit 5796b3c16733f3d9cb2f3476ed1dc0fe05b14e25)
</content>
</entry>
<entry>
<title>remove alignment-changing in-place collect</title>
<updated>2024-01-25T19:40:51+00:00</updated>
<author>
<name>The 8472</name>
<email>git@infinite-source.de</email>
</author>
<published>2024-01-18T21:50:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e55be1a711e36f1057d54add574ec1b5ca3f9fdb'/>
<id>urn:sha1:e55be1a711e36f1057d54add574ec1b5ca3f9fdb</id>
<content type='text'>
Currently stable users can't benefit from this because GlobaAlloc doesn't support
alignment-changing realloc and neither do most posix allocators.
So in practice it always results in an extra memcpy.

(cherry picked from commit 85d17879623116be76a68c2170c4cb6ff58f4ceb)
</content>
</entry>
<entry>
<title>update internal ASCII art comment for vec specializations</title>
<updated>2024-01-25T19:40:51+00:00</updated>
<author>
<name>The 8472</name>
<email>git@infinite-source.de</email>
</author>
<published>2024-01-18T21:47:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dde389754e6e87bbb89832d6aaf9ba6757280a46'/>
<id>urn:sha1:dde389754e6e87bbb89832d6aaf9ba6757280a46</id>
<content type='text'>
(cherry picked from commit b28a95391b85e17b1d2f7edc1115291d8a86bcd2)
</content>
</entry>
<entry>
<title>update version placeholders</title>
<updated>2023-12-21T14:43:00+00:00</updated>
<author>
<name>Pietro Albini</name>
<email>pietro@pietroalbini.org</email>
</author>
<published>2023-12-21T14:39:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=efd6564318b14f82e2fd83fe532c5f26b8fcdc26'/>
<id>urn:sha1:efd6564318b14f82e2fd83fe532c5f26b8fcdc26</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #106790 - the8472:rawvec-niche, r=scottmcm</title>
<updated>2023-12-20T02:19:10+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2023-12-20T02:19:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=51c0db6a9118735190466d15432b5d8890bb09ee'/>
<id>urn:sha1:51c0db6a9118735190466d15432b5d8890bb09ee</id>
<content type='text'>
add more niches to rawvec

Previously RawVec only had a single niche in its `NonNull` pointer. With this change it now has `isize::MAX` niches since half the value-space of the capacity field is never needed, we can't have a capacity larger than isize::MAX.
</content>
</entry>
<entry>
<title>Update c_str.rs</title>
<updated>2023-12-15T00:08:36+00:00</updated>
<author>
<name>Daniel Huang</name>
<email>hello@danielh.cc</email>
</author>
<published>2023-12-15T00:08:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f2f9b1d82a123667b63d5fa6b5ccc9c59d290320'/>
<id>urn:sha1:f2f9b1d82a123667b63d5fa6b5ccc9c59d290320</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add comment to RawVec::cap field</title>
<updated>2023-12-11T22:38:48+00:00</updated>
<author>
<name>The 8472</name>
<email>git@infinite-source.de</email>
</author>
<published>2023-04-29T19:47:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6a2f44e9d850d241e9483792710dba7c58a249ec'/>
<id>urn:sha1:6a2f44e9d850d241e9483792710dba7c58a249ec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add more niches to rawvec</title>
<updated>2023-12-11T22:38:48+00:00</updated>
<author>
<name>The 8472</name>
<email>git@infinite-source.de</email>
</author>
<published>2023-01-12T21:54:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=502df1b7d4f3ba61d55cf2b3a47785a7a4df940b'/>
<id>urn:sha1:502df1b7d4f3ba61d55cf2b3a47785a7a4df940b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #117758 - Urgau:lint_pointer_trait_comparisons, r=davidtwco</title>
<updated>2023-12-11T14:33:16+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2023-12-11T14:33:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8a3765582cb83733f8c344062729df0175409488'/>
<id>urn:sha1:8a3765582cb83733f8c344062729df0175409488</id>
<content type='text'>
Add lint against ambiguous wide pointer comparisons

This PR is the resolution of https://github.com/rust-lang/rust/issues/106447 decided in https://github.com/rust-lang/rust/issues/117717 by T-lang.

## `ambiguous_wide_pointer_comparisons`

*warn-by-default*

The `ambiguous_wide_pointer_comparisons` lint checks comparison of `*const/*mut ?Sized` as the operands.

### Example

```rust
let ab = (A, B);
let a = &amp;ab.0 as *const dyn T;
let b = &amp;ab.1 as *const dyn T;

let _ = a == b;
```

### Explanation

The comparison includes metadata which may not be expected.

-------

This PR also drops `clippy::vtable_address_comparisons` which is superseded by this one.

~~One thing: is the current naming right? `invalid` seems a bit too much.~~

Fixes https://github.com/rust-lang/rust/issues/117717
</content>
</entry>
<entry>
<title>Auto merge of #118692 - surechen:remove_unused_imports, r=petrochenkov</title>
<updated>2023-12-10T11:55:48+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2023-12-10T11:55:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=84f6130fe37b7c18e93ad6b3220ade5aadc571da'/>
<id>urn:sha1:84f6130fe37b7c18e93ad6b3220ade5aadc571da</id>
<content type='text'>
remove redundant imports

detects redundant imports that can be eliminated.

for #117772 :

In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.

r? `@petrochenkov`
</content>
</entry>
</feed>
