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.
105
105
106
106
いいえ。
107
107
108
+ <!--
108
109
The drop checker will generously determine that `Vec<T>` does not own any values
109
110
of type T. This will in turn make it conclude that it doesn't need to worry
110
111
about Vec dropping any T's in its destructor for determining drop check
111
112
soundness. This will in turn allow people to create unsoundness using
112
113
Vec's destructor.
114
+ -->
115
+
116
+ ドロップチェッカは、 ` Vec<T> ` がいかなる型 ` T ` の値も持たないと惜しみなく決定するでしょう。
117
+ これは結果的に、ドロップチェックの健全性を決定するために Vec のデストラクタ内で、 Vec がなにか T の
118
+ 値をドロップするということを心配する必要がないと結論付けます。
119
+ この結果、 Vec のデストラクタを使用して、無制限という性質を作り出すことを可能にするのです。
113
120
114
121
In order to tell dropck that we * do* own values of type T, and therefore may
115
122
drop 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