rust/library/alloc/src
bors 3014e79f9c Auto merge of #143877 - xizheyin:143813, r=scottmcm,saethlin
`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`
2025-07-15 14:47:10 +00:00
..
boxed library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
collections Renamed retain_mut to retain on LinkedList as mentioned in the ACP 2025-07-06 10:40:55 -04:00
ffi Rollup merge of #137268 - bjoernager:c-string-eq-c-str, r=Amanieu 2025-06-24 15:39:37 +02:00
raw_vec Simplify Vec::as_non_null implementation and make it const 2025-05-05 21:56:33 +02:00
vec Auto merge of #143877 - xizheyin:143813, r=scottmcm,saethlin 2025-07-15 14:47:10 +00:00
alloc.rs Make __rust_alloc_error_handler_should_panic a function 2025-07-03 10:52:21 -07:00
borrow.rs Fully test the alloc crate through alloctests 2025-03-07 19:11:13 +00:00
boxed.rs Remove PointerLike trait 2025-07-03 20:03:49 +00:00
bstr.rs Fully test the alloc crate through alloctests 2025-03-07 19:11:13 +00:00
fmt.rs Fix typo in documentation 2025-04-12 22:26:38 +08:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs Auto merge of #143877 - xizheyin:143813, r=scottmcm,saethlin 2025-07-15 14:47:10 +00:00
macros.rs Streamline the format macro. 2025-04-28 06:56:13 +10:00
rc.rs Change {Box,Arc,Rc,Weak}::into_raw to only work with A = Global 2025-07-01 18:25:30 +02:00
slice.rs remove extraneous text 2025-06-06 06:39:51 +02:00
str.rs remove extraneous text 2025-06-06 06:39:51 +02:00
string.rs update issue number for const_trait_impl 2025-07-13 23:55:06 +08:00
sync.rs Change {Box,Arc,Rc,Weak}::into_raw to only work with A = Global 2025-07-01 18:25:30 +02:00
task.rs Stabilize noop_waker 2024-12-05 14:14:17 -08:00