about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorTim (Theemathas) Chirananthavat <theemathas@gmail.com>2025-06-19 12:04:24 +0700
committerTim (Theemathas) Chirananthavat <theemathas@gmail.com>2025-06-19 12:04:24 +0700
commit644469e9613253321d09887ffe0fb2c98528ee21 (patch)
treea62137515925656614dd568178d427ffac0ba41d /compiler/rustc_middle/src
parentd1d8e386c5e84c4ba857f56c3291f73c27e2d62a (diff)
downloadrust-644469e9613253321d09887ffe0fb2c98528ee21.tar.gz
rust-644469e9613253321d09887ffe0fb2c98528ee21.zip
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.
Diffstat (limited to 'compiler/rustc_middle/src')
0 files changed, 0 insertions, 0 deletions