about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-08 13:48:30 +0000
committerbors <bors@rust-lang.org>2023-07-08 13:48:30 +0000
commit9bb6fbe26198e58b517bfbf58a3348fad98d1654 (patch)
tree93757921e1cb6b726b5fef256746bd16b1f9b69a /compiler/rustc_hir_analysis/src
parentce519c5945c90596cf429dc2a91c846daeb75cd1 (diff)
parent2beabbbf6fd0ccbd986920ad1650b39081c1eaaa (diff)
downloadrust-9bb6fbe26198e58b517bfbf58a3348fad98d1654.tar.gz
rust-9bb6fbe26198e58b517bfbf58a3348fad98d1654.zip
Auto merge of #113376 - Nilstrieb:pointer-coercions-are-not-casts-because-that-sounds-way-to-general-aaaa, r=oli-obk
Rename `adjustment::PointerCast` and variants using it to `PointerCoercion`

It makes it sounds like the `ExprKind` and `Rvalue` are supposed to represent all pointer related casts, when in reality their just used to share a little enum variants. Make it clear there these are only coercions and that people who see this and think "why are so many pointer related casts not in these variants" aren't insane.

This enum was added in #59987. I'm not sure whether the variant sharing is actually worth it, but this at least makes it less confusing.

r? oli-obk
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
0 files changed, 0 insertions, 0 deletions