about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/context.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-06-26 20:15:20 -0400
committerGitHub <noreply@github.com>2025-06-26 20:15:20 -0400
commit58cda76585336dd7ea4748c3616f65e90b3a8116 (patch)
tree12df6c135b75f096771f1301b027152ac3cfe20a /compiler/rustc_middle/src/ty/context.rs
parent25e239c193b3e22d0dc5e8e3eaebd66ed9b7374b (diff)
parent644469e9613253321d09887ffe0fb2c98528ee21 (diff)
downloadrust-58cda76585336dd7ea4748c3616f65e90b3a8116.tar.gz
rust-58cda76585336dd7ea4748c3616f65e90b3a8116.zip
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.
Diffstat (limited to 'compiler/rustc_middle/src/ty/context.rs')
0 files changed, 0 insertions, 0 deletions