Commit 9ec67b4
Implement
Implementing `PointerLike` for `UnsafeCell` enables the possibility of
interior mutable `dyn*` values. Since this means potentially exercising
new codegen behavior, I added a test for it in `tests/ui/dyn-star/cell.rs`.
Also updated UI tests to account for the `isize` implementation changing
error messages.PointerLike for isize, NonNull, Cell, UnsafeCell, and SyncUnsafeCell.1 parent 3fcf1ec commit 9ec67b4
3 files changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
677 | 677 | | |
678 | 678 | | |
679 | 679 | | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
680 | 683 | | |
681 | 684 | | |
682 | 685 | | |
| |||
2258 | 2261 | | |
2259 | 2262 | | |
2260 | 2263 | | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
2261 | 2267 | | |
2262 | 2268 | | |
2263 | 2269 | | |
| |||
2364 | 2370 | | |
2365 | 2371 | | |
2366 | 2372 | | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
2367 | 2376 | | |
2368 | 2377 | | |
2369 | 2378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1003 | 1003 | | |
1004 | 1004 | | |
1005 | 1005 | | |
| 1006 | + | |
1006 | 1007 | | |
1007 | 1008 | | |
1008 | 1009 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1555 | 1555 | | |
1556 | 1556 | | |
1557 | 1557 | | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
1558 | 1562 | | |
1559 | 1563 | | |
1560 | 1564 | | |
| |||
0 commit comments