Files
rust/tests/ui
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
..
2025-06-11 15:30:15 +01:00
2025-07-13 13:50:01 +00:00
2025-07-15 09:21:27 +02:00
2025-05-21 07:24:43 +00:00
2025-07-10 18:50:35 +05:00
2025-07-13 00:03:31 +05:00
2025-06-11 17:49:03 +05:00
2025-07-13 00:03:31 +05:00
2025-07-15 09:21:27 +02:00
2025-07-15 09:21:27 +02:00
2025-06-18 10:20:43 +02:00
2025-07-05 00:45:24 +05:00
2025-07-05 01:54:04 +05:00
2025-07-05 01:54:04 +05:00
2025-06-16 07:30:09 -04:00
2025-07-06 09:51:35 +02:00
2025-07-13 13:50:01 +00:00
2025-06-06 20:52:34 +00:00
2025-07-01 23:33:59 +05:00
2025-05-31 19:49:19 +05:00
2025-07-10 18:50:35 +05:00
2025-06-11 20:51:49 +05:00
2025-06-29 15:37:33 +05:00
2025-07-08 15:49:00 +00:00
2025-06-13 01:16:36 +02:00
2025-07-10 18:50:35 +05:00
2025-06-03 11:45:58 +02:00
2025-07-10 18:47:20 +05:00
2025-06-18 10:20:43 +02:00
2025-06-18 10:20:43 +02:00
2025-07-01 14:36:28 +02:00
2025-07-05 00:45:24 +05:00
2025-07-13 00:03:31 +05:00
2025-07-10 18:47:20 +05:00
2025-07-01 15:16:56 +05:00
2025-07-10 18:50:35 +05:00
2025-07-05 00:45:24 +05:00
2025-07-13 00:03:31 +05:00
2025-07-10 18:50:35 +05:00
2025-07-13 00:03:31 +05:00
2025-07-06 09:51:35 +02:00
2025-06-08 11:25:09 +05:00
2025-07-05 01:54:04 +05:00
2025-07-05 01:54:04 +05:00
2025-07-01 19:00:21 +00:00
2025-07-15 09:21:27 +02:00
2025-07-07 08:13:12 +00:00
2025-07-13 13:50:01 +00:00
2025-07-05 00:45:24 +05:00
2025-07-05 01:25:48 +05:00
2025-06-30 11:50:19 +05:00
2025-06-26 18:11:14 +00:00
2025-07-13 13:50:01 +00:00
2025-07-13 00:03:31 +05:00
2025-07-05 01:54:04 +05:00
2025-07-01 15:16:56 +05:00
2025-07-13 00:03:31 +05:00
2025-06-18 10:20:43 +02:00
2025-07-10 18:47:20 +05:00
2025-07-13 00:03:31 +05:00
2025-06-08 03:44:44 +05:00
2025-07-10 18:50:35 +05:00
2025-06-18 10:20:43 +02:00
2025-07-04 23:04:56 +08:00
2025-07-14 12:01:41 +03:00