Skip to content

Commit 35a6b3e

Browse files
committed
Translate a paragraph
1 parent 30cd9b0 commit 35a6b3e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/dropck.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,16 @@ know not to inspect during destruction.
326326
これは、デストラクションの際にデータにアクセスしないと分かっている、
327327
上記の 2 つの Inspector のようなケースに対処するのを手助けしてくれるでしょう。
328328

329+
<!--
329330
In the meantime, there is an unstable attribute that one can use to
330331
assert (unsafely) that a generic type's destructor is *guaranteed* to
331332
not access any expired data, even if its type gives it the capability
332333
to do so.
334+
-->
335+
336+
それまでは、 (アンセーフではあるが) ジェネリックな型のデストラクタが、
337+
たとえ破棄されたデータにアクセス出来るとしても、そのようなアクセスをしないと*保証する*と見なす、
338+
アンステーブルなアトリビュートを使用することが出来ます。
333339

334340
That attribute is called `may_dangle` and was introduced in [RFC 1327]
335341
(https://github.com/rust-lang/rfcs/blob/master/text/1327-dropck-param-eyepatch.md).

0 commit comments

Comments
 (0)