Skip to content

Commit 30cd9b0

Browse files
committed
Translate a paragraph
1 parent 1d4daf4 commit 30cd9b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/dropck.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,10 +314,17 @@ borrowed data in a value to outlive that value, which is certainly sound.
314314
ある値の中の全ての借用されたデータが、その値よりも長生きするよう強制するのです。
315315
これは明らかに健全です。
316316

317+
<!--
317318
Future versions of the language may make the analysis more precise, to
318319
reduce the number of cases where sound code is rejected as unsafe.
319320
This would help address cases such as the two Inspectors above that
320321
know not to inspect during destruction.
322+
-->
323+
324+
将来の Rust のバージョンでは、健全なコードがアンセーフとして弾かれるケースの
325+
数を減らすため、分析がより正確になるかもしれません。
326+
これは、デストラクションの際にデータにアクセスしないと分かっている、
327+
上記の 2 つの Inspector のようなケースに対処するのを手助けしてくれるでしょう。
321328

322329
In the meantime, there is an unstable attribute that one can use to
323330
assert (unsafely) that a generic type's destructor is *guaranteed* to

0 commit comments

Comments
 (0)