Skip to content

Commit 25f44a8

Browse files
committed
Translate a paragraph
1 parent 915312b commit 25f44a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/dropck.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,16 @@ live long enough.
273273
しかしながら、上記の*両方の*変種は、 `fn main` の分析中に、 `days`
274274
十分長生きしないと言われ、借用チェッカに弾かれるでしょう。
275275

276+
<!--
276277
The reason is that the borrow checking analysis of `main` does not
277278
know about the internals of each Inspector's Drop implementation. As
278279
far as the borrow checker knows while it is analyzing `main`, the body
279280
of an inspector's destructor might access that borrowed data.
281+
-->
282+
283+
理由は、 `main` の借用チェックの際、 借用チェッカはそれぞれの Inspector の Drop の実装の
284+
内部については知らないからです。借用チェッカが `main` の分析をしている間、 inspector の
285+
デストラクタの本体が借用されたデータにアクセスするかもしれないと借用チェッカが認識しているからです。
280286

281287
Therefore, the drop checker forces all borrowed data in a value to
282288
strictly outlive that value.

0 commit comments

Comments
 (0)