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 @@ -273,10 +273,16 @@ live long enough.
273
273
しかしながら、上記の* 両方の* 変種は、 ` fn main ` の分析中に、 ` days ` が
274
274
十分長生きしないと言われ、借用チェッカに弾かれるでしょう。
275
275
276
+ <!--
276
277
The reason is that the borrow checking analysis of `main` does not
277
278
know about the internals of each Inspector's Drop implementation. As
278
279
far as the borrow checker knows while it is analyzing `main`, the body
279
280
of an inspector's destructor might access that borrowed data.
281
+ -->
282
+
283
+ 理由は、 ` main ` の借用チェックの際、 借用チェッカはそれぞれの Inspector の Drop の実装の
284
+ 内部については知らないからです。借用チェッカが ` main ` の分析をしている間、 inspector の
285
+ デストラクタの本体が借用されたデータにアクセスするかもしれないと借用チェッカが認識しているからです。
280
286
281
287
Therefore, the drop checker forces all borrowed data in a value to
282
288
strictly outlive that value.
You can’t perform that action at this time.
0 commit comments