Skip to content

Commit a624afa

Browse files
committed
Clarify speculation about RPIT counterfactual history
We have a sentence that speculates that if `async fn` had happened before RPIT that the original lifetime capture rules for RPIT might have matched those of `async fn`. Let's improve the wording of this sentence to make it more clear what we're saying and why we're saying it.
1 parent 94e115e commit a624afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3498-lifetime-capture-rules-2024.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fn foo<'a, T>(x: &'a (), y: T)
9191

9292
(As we'll discuss below, other seemingly simpler desugarings are incorrect.)
9393

94-
If `async fn` had happened first, we could imagine that the original lifetime capture rules for RPIT may have gone the other way.
94+
Given how `async fn` captures all type and lifetime parameters in scope in its returned opaque type, we could imagine that if it had happened first, the original lifetime capture rules for RPIT might have done that as well.
9595

9696
### Behavior of `async fn` with lifetimes in outer impl
9797

0 commit comments

Comments
 (0)