File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,18 @@ Nope.
105105
106106いいえ。
107107
108+ <!--
108109The drop checker will generously determine that `Vec<T>` does not own any values
109110of type T. This will in turn make it conclude that it doesn't need to worry
110111about Vec dropping any T's in its destructor for determining drop check
111112soundness. This will in turn allow people to create unsoundness using
112113Vec's destructor.
114+ -->
115+
116+ ドロップチェッカは、 ` Vec<T> ` がいかなる型 ` T ` の値も持たないと惜しみなく決定するでしょう。
117+ これは結果的に、ドロップチェックの健全性を決定するために Vec のデストラクタ内で、 Vec がなにか T の
118+ 値をドロップするということを心配する必要がないと結論付けます。
119+ この結果、 Vec のデストラクタを使用して、無制限という性質を作り出すことを可能にするのです。
113120
114121In order to tell dropck that we * do* own values of type T, and therefore may
115122drop some T's when * we* drop, we must add an extra PhantomData saying exactly
You can’t perform that action at this time.
0 commit comments