File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -326,10 +326,16 @@ know not to inspect during destruction.
326326これは、デストラクションの際にデータにアクセスしないと分かっている、
327327上記の 2 つの Inspector のようなケースに対処するのを手助けしてくれるでしょう。
328328
329+ <!--
329330In the meantime, there is an unstable attribute that one can use to
330331assert (unsafely) that a generic type's destructor is *guaranteed* to
331332not access any expired data, even if its type gives it the capability
332333to do so.
334+ -->
335+
336+ それまでは、 (アンセーフではあるが) ジェネリックな型のデストラクタが、
337+ たとえ破棄されたデータにアクセス出来るとしても、そのようなアクセスをしないと* 保証する* と見なす、
338+ アンステーブルなアトリビュートを使用することが出来ます。
333339
334340That 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 ).
You can’t perform that action at this time.
0 commit comments