diff options
| author | bors <bors@rust-lang.org> | 2023-07-08 13:48:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-08 13:48:30 +0000 |
| commit | 9bb6fbe26198e58b517bfbf58a3348fad98d1654 (patch) | |
| tree | 93757921e1cb6b726b5fef256746bd16b1f9b69a /tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff | |
| parent | ce519c5945c90596cf429dc2a91c846daeb75cd1 (diff) | |
| parent | 2beabbbf6fd0ccbd986920ad1650b39081c1eaaa (diff) | |
| download | rust-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 'tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff')
| -rw-r--r-- | tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff b/tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff index 6c450067cc4..eb81e0eea2c 100644 --- a/tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff +++ b/tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff @@ -25,7 +25,7 @@ StorageLive(_6); StorageLive(_7); _7 = &(*_2); - _6 = move _7 as &[u8] (Pointer(Unsize)); + _6 = move _7 as &[u8] (PointerCoercion(Unsize)); StorageDead(_7); - _5 = Len((*_6)); + _5 = const N; |
