Commit 7cc13f1
authored
[cast] Fix safety comment bug for CastUnsized (#2908)
The decorated `unsafe impl` block is still sound, but the proof
previously proved too much (namely, that the cast preserves referent
size, when in fact it may shrink referent size).
gherrit-pr-id: Gba34c175d9c27344e336de4ed088eb0754d87f301 parent 5c67d2c commit 7cc13f1
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
144 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
0 commit comments