rust/compiler/rustc_ty_utils/src
bors 9bb6fbe261 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
2023-07-08 13:48:30 +00:00
..
abi.rs Move TyCtxt::mk_x to Ty::new_x where applicable 2023-07-05 20:27:07 +01:00
assoc.rs Move TyCtxt::mk_x to Ty::new_x where applicable 2023-07-05 20:27:07 +01:00
common_traits.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
consts.rs Rename adjustment::PointerCast and variants using it to PointerCoercion 2023-07-07 18:17:16 +02:00
errors.rs Re-use error code for duplicate error 2023-06-22 15:51:14 +00:00
implied_bounds.rs use deeply_normalize for assumed_wf_types 2023-07-03 09:12:14 +02:00
instance.rs get rid of a bit more calls to poly_select 2023-07-06 16:50:12 +00:00
layout.rs add helper methods for accessing struct tail 2023-07-06 13:15:05 +00:00
layout_sanity_check.rs Factor out checks in layout check and add helper inherent_size. 2023-05-05 16:11:03 -07:00
lib.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
needs_drop.rs EarlyBinder::new -> EarlyBinder::bind 2023-05-29 13:46:10 +02:00
opaque_types.rs Treat closures as part of their parent 2023-07-07 13:17:00 +00:00
representability.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
structural_match.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
ty.rs add helper methods for accessing struct tail 2023-07-06 13:15:05 +00:00