Skip to content

Commit 06ce987

Browse files
committed
Translate a paragraph
1 parent 6d0c1f7 commit 06ce987

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/phantom-data.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,18 @@ Nope.
105105

106106
いいえ。
107107

108+
<!--
108109
The drop checker will generously determine that `Vec<T>` does not own any values
109110
of type T. This will in turn make it conclude that it doesn't need to worry
110111
about Vec dropping any T's in its destructor for determining drop check
111112
soundness. This will in turn allow people to create unsoundness using
112113
Vec's destructor.
114+
-->
115+
116+
ドロップチェッカは、 `Vec<T>` がいかなる型 `T` の値も持たないと惜しみなく決定するでしょう。
117+
これは結果的に、ドロップチェックの健全性を決定するために Vec のデストラクタ内で、 Vec がなにか T の
118+
値をドロップするということを心配する必要がないと結論付けます。
119+
この結果、 Vec のデストラクタを使用して、無制限という性質を作り出すことを可能にするのです。
113120

114121
In order to tell dropck that we *do* own values of type T, and therefore may
115122
drop some T's when *we* drop, we must add an extra PhantomData saying exactly

0 commit comments

Comments
 (0)