Commit 09b16d2
committed
improve safety documentation for
The inner SAFETY comments were missing since commit 5cfe7be ("rust:
enable `clippy::undocumented_unsafe_blocks` lint").
Also rework the implementation of `__pinned_init` to better justify the
SAFETY comment.
Signed-off-by: Benno Lossin <[email protected]>
(cherry picked from commit df925b2)impl<T> [Pin]Init<T> for T
1 parent 3240feb commit 09b16d2
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1390 | 1390 | | |
1391 | 1391 | | |
1392 | 1392 | | |
1393 | | - | |
| 1393 | + | |
1394 | 1394 | | |
1395 | 1395 | | |
1396 | | - | |
| 1396 | + | |
1397 | 1397 | | |
1398 | 1398 | | |
1399 | 1399 | | |
1400 | 1400 | | |
1401 | 1401 | | |
1402 | | - | |
| 1402 | + | |
| 1403 | + | |
1403 | 1404 | | |
1404 | 1405 | | |
1405 | | - | |
1406 | | - | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
1407 | 1409 | | |
1408 | 1410 | | |
1409 | 1411 | | |
| |||
0 commit comments