rust/library/alloc/src
Tim (Theemathas) Chirananthavat 644469e961 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-19 12:04:24 +07:00
..
boxed library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
collections Rollup merge of #142520 - hkBst:less-static-mut, r=tgross35 2025-06-17 23:19:35 +02:00
ffi Delegate <CStr as Debug> to ByteStr 2025-06-12 12:53:14 -04:00
raw_vec Simplify Vec::as_non_null implementation and make it const 2025-05-05 21:56:33 +02:00
vec update docs, test 2025-06-11 22:57:57 -04:00
alloc.rs Change __rust_no_alloc_shim_is_unstable to be a function 2025-06-16 10:54:07 -07:00
borrow.rs Fully test the alloc crate through alloctests 2025-03-07 19:11:13 +00:00
boxed.rs replace version placeholder 2025-04-09 12:29:59 +01: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 stabilize nonnull_provenance 2025-06-09 12:36:24 +02:00
macros.rs Streamline the format macro. 2025-04-28 06:56:13 +10:00
rc.rs Remove incorrect comments in Weak 2025-06-19 12:04:24 +07: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 Make performance of String::insert_str more precise 2025-06-17 06:04:04 +00:00
sync.rs Remove incorrect comments in Weak 2025-06-19 12:04:24 +07:00
task.rs Stabilize noop_waker 2024-12-05 14:14:17 -08:00