From 6570607bccb89549bfab6698cb6e9889d087e9e9 Mon Sep 17 00:00:00 2001 From: James Williams Date: Mon, 14 Nov 2022 17:05:20 +0000 Subject: [PATCH] Grammar change for lifetime-mismatch.md "[...] stops to be needed [...]" -> "[...] ceases to be needed [...]" --- src/lifetime-mismatch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lifetime-mismatch.md b/src/lifetime-mismatch.md index 1da2d28..bc53f06 100644 --- a/src/lifetime-mismatch.md +++ b/src/lifetime-mismatch.md @@ -74,7 +74,7 @@ care about, but the lifetime system is too coarse-grained to handle that. ## Improperly reduced borrows The following code fails to compile, because Rust sees that a variable, `map`, -is borrowed twice, and can not infer that the first borrow stops to be needed +is borrowed twice, and can not infer that the first borrow ceases to be needed before the second one occurs. This is caused by Rust conservatively falling back to using a whole scope for the first borrow. This will eventually get fixed.