Commit 953064f
authored
Rollup merge of rust-lang#132847 - RalfJung:addr-dont-expose, r=Mark-Simulacrum
elem_offset / subslice_range: use addr() instead of 'as usize'
There's no reason to use ptr-to-int casts with their subtle semantics here.1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4578 | 4578 | | |
4579 | 4579 | | |
4580 | 4580 | | |
4581 | | - | |
4582 | | - | |
| 4581 | + | |
| 4582 | + | |
4583 | 4583 | | |
4584 | 4584 | | |
4585 | 4585 | | |
| |||
4631 | 4631 | | |
4632 | 4632 | | |
4633 | 4633 | | |
4634 | | - | |
4635 | | - | |
| 4634 | + | |
| 4635 | + | |
4636 | 4636 | | |
4637 | 4637 | | |
4638 | 4638 | | |
| |||
0 commit comments