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.
326
326
これは、デストラクションの際にデータにアクセスしないと分かっている、
327
327
上記の 2 つの Inspector のようなケースに対処するのを手助けしてくれるでしょう。
328
328
329
+ <!--
329
330
In the meantime, there is an unstable attribute that one can use to
330
331
assert (unsafely) that a generic type's destructor is *guaranteed* to
331
332
not access any expired data, even if its type gives it the capability
332
333
to do so.
334
+ -->
335
+
336
+ それまでは、 (アンセーフではあるが) ジェネリックな型のデストラクタが、
337
+ たとえ破棄されたデータにアクセス出来るとしても、そのようなアクセスをしないと* 保証する* と見なす、
338
+ アンステーブルなアトリビュートを使用することが出来ます。
333
339
334
340
That attribute is called ` may_dangle ` and was introduced in [ RFC 1327]
335
341
(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