Files
rust/library/alloc/src
Michael Goulet 58cda76585 Rollup merge of #142700 - theemathas:remove-weak-comment, r=ibraheemdev
Remove incorrect comments in `Weak`

It is currently possible to create a dangling `Weak` to a DST by calling `Weak::new()` for a sized type, then doing an unsized coercion. Therefore, the comments are wrong.

These comments were added in <https://github.com/rust-lang/rust/pull/73845>. As far as I can tell, the guarantee in the comment was only previously used in the `as_ptr` method. However, the current implementation of `as_ptr` no longer relies on this guarantee.
2025-06-26 20:15:20 -04:00
..
2025-06-11 22:57:57 -04:00
2025-04-09 12:29:59 +01:00
2025-04-12 22:26:38 +08:00
2025-06-09 12:36:24 +02:00
2025-04-28 06:56:13 +10:00
2025-06-19 12:04:24 +07:00
2025-06-06 06:39:51 +02:00
2025-06-06 06:39:51 +02:00
2025-06-19 12:04:24 +07:00
2024-12-05 14:14:17 -08:00