about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/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
commit1816caaa7659cef6c8b084cfc07519e379d86e18 (patch)
treeab4b8725272798b024063230c6cbb68f94f4b41a /compiler/rustc_codegen_llvm/src
parent87373d7f522031c0adc66eb87864ae86868e4fed (diff)
parentb5ac726ed348430ee25a04d7de6569cb4627e726 (diff)
downloadrust-1816caaa7659cef6c8b084cfc07519e379d86e18.tar.gz
rust-1816caaa7659cef6c8b084cfc07519e379d86e18.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_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions