We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5a492e commit 1de7dc2Copy full SHA for 1de7dc2
src/dropck.md
@@ -357,9 +357,15 @@ unsafe impl<#[may_dangle] 'a> Drop for Inspector<'a> {
357
}
358
```
359
360
+<!--
361
Use of this attribute requires the `Drop` impl to be marked `unsafe` because the
362
compiler is not checking the implicit assertion that no potentially expired data
363
(e.g. `self.0` above) is accessed.
364
+-->
365
+
366
+このアトリビュートを使用する場合、 `Drop` の impl が `unsafe` でマークされる必要があります。
367
+なぜならコンパイラは、いかなる既に破棄されているかもしれないデータ (例えば上記の `self.0`) にアクセスしないという
368
+暗黙の主張について検査しないからです。
369
370
The attribute can be applied to any number of lifetime and type parameters. In
371
the following example, we assert that we access no data behind a reference of
0 commit comments