Skip to content

Commit 6d557ce

Browse files
committed
tweak semver text in response to @cramertj's comments
1 parent 19edc2d commit 6d557ce

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

text/0000-infer-outlives.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,12 @@ error[E0309]: the type `T` may not live long enough
331331

332332
Due to the implied bounds rules, it is currently the case that
333333
removing `where T: 'a` annotations is potentially a breaking
334-
change. After this RFC, the rule is a bit more subtle: removing a
335-
field of type `&'a T` could affect the results of inference, and hence
336-
may be a breaking change. As an example, consider a struct like this:
334+
change. After this RFC, the rule is a bit more subtle: removing an
335+
annotation is still potentially a breaking change (even if it would be
336+
inferred), due to the trait object rules; but also, adding or removing
337+
a field of type `&'a T` could affect the results of inference, and
338+
hence may be a breaking change. As an example, consider a struct like
339+
this:
337340

338341
```rust
339342
struct Iter<'a, T> {

0 commit comments

Comments
 (0)