<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/alloc/src/vec, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-07-15T14:47:10+00:00</updated>
<entry>
<title>Auto merge of #143877 - xizheyin:143813, r=scottmcm,saethlin</title>
<updated>2025-07-15T14:47:10+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-07-15T14:47:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3014e79f9c8d5510ea7b3a3b70d171d0948b1e96'/>
<id>urn:sha1:3014e79f9c8d5510ea7b3a3b70d171d0948b1e96</id>
<content type='text'>
`std::vec`: Add UB check for `set_len`, `from_raw_parts_in`, and etc.

Closes rust-lang/rust#143813

I noticed that `from_parts_in` do the similar things like `from_raw_parts_in`, so I add the UB check in the last commit. If it is not appropriate, I will remove it.

And I fix a typo in the first commit.

r? `@scottmcm`
</content>
</entry>
<entry>
<title>update issue number for `const_trait_impl`</title>
<updated>2025-07-13T15:55:06+00:00</updated>
<author>
<name>Deadbeef</name>
<email>ent3rm4n@gmail.com</email>
</author>
<published>2025-07-13T08:21:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6b02597ed3dc7a7c3581960ca6afae575f6c691e'/>
<id>urn:sha1:6b02597ed3dc7a7c3581960ca6afae575f6c691e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std::vec: Add UB check in `from_parts_in`</title>
<updated>2025-07-13T08:18:56+00:00</updated>
<author>
<name>xizheyin</name>
<email>xizheyin@smail.nju.edu.cn</email>
</author>
<published>2025-07-13T08:18:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=48caa5f8897263da935ebdc2bbec8a95b5d3d025'/>
<id>urn:sha1:48caa5f8897263da935ebdc2bbec8a95b5d3d025</id>
<content type='text'>
Signed-off-by: xizheyin &lt;xizheyin@smail.nju.edu.cn&gt;
</content>
</entry>
<entry>
<title>std::vec: Add UB check in `from_raw_parts_in`</title>
<updated>2025-07-13T08:17:43+00:00</updated>
<author>
<name>xizheyin</name>
<email>xizheyin@smail.nju.edu.cn</email>
</author>
<published>2025-07-13T08:17:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=090c177003272da7d2d3b04702f35261d3952b72'/>
<id>urn:sha1:090c177003272da7d2d3b04702f35261d3952b72</id>
<content type='text'>
Signed-off-by: xizheyin &lt;xizheyin@smail.nju.edu.cn&gt;
</content>
</entry>
<entry>
<title>`std::vec`: Upgrade `debug_assert` to UB check in `set_len`</title>
<updated>2025-07-13T08:06:53+00:00</updated>
<author>
<name>xizheyin</name>
<email>xizheyin@smail.nju.edu.cn</email>
</author>
<published>2025-07-13T08:06:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1cab09ed9c582e7804bd0f9a6ead61129bb537d5'/>
<id>urn:sha1:1cab09ed9c582e7804bd0f9a6ead61129bb537d5</id>
<content type='text'>
Signed-off-by: xizheyin &lt;xizheyin@smail.nju.edu.cn&gt;
</content>
</entry>
<entry>
<title>Fix typo in `std::vec`</title>
<updated>2025-07-13T07:51:32+00:00</updated>
<author>
<name>xizheyin</name>
<email>xizheyin@smail.nju.edu.cn</email>
</author>
<published>2025-07-13T07:51:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=10866f46172e92a7949dca2e5a52b8c444a5b082'/>
<id>urn:sha1:10866f46172e92a7949dca2e5a52b8c444a5b082</id>
<content type='text'>
Signed-off-by: xizheyin &lt;xizheyin@smail.nju.edu.cn&gt;
</content>
</entry>
<entry>
<title>Make `Default` const and add some `const Default` impls</title>
<updated>2025-07-07T22:09:37+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-12-21T20:25:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c3301503b97cd6b768a944661b81a92994e9db00'/>
<id>urn:sha1:c3301503b97cd6b768a944661b81a92994e9db00</id>
<content type='text'>
Full list of `impl const Default` types:

- ()
- bool
- char
- Cell
- std::ascii::Char
- usize
- u8
- u16
- u32
- u64
- u128
- i8
- i16
- i32
- i64
- i128
- f16
- f32
- f64
- f128
- std::marker::PhantomData&lt;T&gt;
- Option&lt;T&gt;
- std::iter::Empty&lt;T&gt;
- std::ptr::Alignment
- &amp;[T]
- &amp;mut [T]
- &amp;str
- &amp;mut str
- String
- Vec&lt;T&gt;
</content>
</entry>
<entry>
<title>Auto merge of #143338 - matthiaskrgr:rollup-ykaxh04, r=matthiaskrgr</title>
<updated>2025-07-02T23:29:03+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-07-02T23:29:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=25face9808491588e59b6d7844f2185b09eef479'/>
<id>urn:sha1:25face9808491588e59b6d7844f2185b09eef479</id>
<content type='text'>
Rollup of 11 pull requests

Successful merges:

 - rust-lang/rust#131923 (Derive `Copy` and `Hash` for `IntErrorKind`)
 - rust-lang/rust#138340 (Remove some unsized tuple impls now that we don't support unsizing tuples anymore)
 - rust-lang/rust#141219 (Change `{Box,Arc,Rc,Weak}::into_raw` to only work with `A = Global`)
 - rust-lang/rust#142212 (bootstrap: validate `rust.codegen-backends` &amp; `target.&lt;triple&gt;.codegen-backends`)
 - rust-lang/rust#142237 (Detect more cases of unused_parens around types)
 - rust-lang/rust#142964 (Attribute rework: a parser for single attributes without arguments)
 - rust-lang/rust#143070 (Rewrite `macro_rules!` parser to not use the MBE engine itself)
 - rust-lang/rust#143235 (Assemble const bounds via normal item bounds in old solver too)
 - rust-lang/rust#143261 (Feed `explicit_predicates_of` instead of `predicates_of`)
 - rust-lang/rust#143276 (loop match: handle opaque patterns)
 - rust-lang/rust#143306 (Add `track_caller` attributes to trace origin of Clippy lints)

r? `@ghost`
`@rustbot` modify labels: rollup

try-job: aarch64-apple
try-job: x86_64-msvc-1
try-job: x86_64-gnu
try-job: dist-i586-gnu-i586-i686-musl
try-job: test-various
</content>
</entry>
<entry>
<title>Rollup merge of #142138 - ashivaram23:vec_into_chunks, r=scottmcm</title>
<updated>2025-07-02T17:28:04+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-07-02T17:28:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6a31e693eb4c6c1ee29248bebc643ae8aa9cf4bd'/>
<id>urn:sha1:6a31e693eb4c6c1ee29248bebc643ae8aa9cf4bd</id>
<content type='text'>
Add `Vec::into_chunks`

Tracking issue rust-lang/rust#142137
</content>
</entry>
<entry>
<title>Change `{Box,Arc,Rc,Weak}::into_raw` to only work with `A = Global`</title>
<updated>2025-07-01T16:25:30+00:00</updated>
<author>
<name>Amanieu d'Antras</name>
<email>amanieu@gmail.com</email>
</author>
<published>2025-05-18T11:01:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=15bd619d5f12b4d01bb645340e7eea97d7b0e7c7'/>
<id>urn:sha1:15bd619d5f12b4d01bb645340e7eea97d7b0e7c7</id>
<content type='text'>
Also applies to `Vec::into_raw_parts`.

The expectation is that you can round-trip these methods with
`from_raw`, but this is only true when using the global allocator. With
custom allocators you should instead be using
`into_raw_with_allocator` and `from_raw_in`.

The implementation of `Box::leak` is changed to use
`Box::into_raw_with_allocator` and explicitly leak the allocator (which
was already the existing behavior). This is because, for `leak` to be
safe, the allocator must not free its underlying backing store. The
`Allocator` trait only guarantees that allocated memory remains valid
until the allocator is dropped.
</content>
</entry>
</feed>
