Skip to content

Commit c13e322

Browse files
committed
---
yaml --- r: 221069 b: refs/heads/tmp c: 91f0301 h: refs/heads/master i: 221067: a3ad633 v: v3
1 parent 33446e8 commit c13e322

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: c8bab9d06a179028a0d5129aa62f09d694d9cc49
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: f78333e052d0aee0387695de9e115f34802fd928
28+
refs/heads/tmp: 91f0301aa521e057ab180d8d0c6b2ca98796f095
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: e58601ab085591c71a27ae82137fc313222c2270
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/src/librustc_typeck/diagnostics.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,9 +2139,9 @@ enum Foo<T> {
21392139
}
21402140
```
21412141
2142-
This error may also commonly be found when working with unsafe code. For
2142+
This error may also commonly be found when working with unsafe code. For
21432143
example, when using raw pointers one may wish to specify the lifetime for
2144-
which the pointed-at data is valid. An initial attempt (below) causes this
2144+
which the pointed-at data is valid. An initial attempt (below) causes this
21452145
error:
21462146
21472147
```
@@ -2151,8 +2151,8 @@ struct Foo<'a, T> {
21512151
```
21522152
21532153
We want to express the constraint that Foo should not outlive `'a`, because
2154-
the data pointed to by `T` is only valid for that lifetime. The problem is
2155-
that there are no actual uses of `'a`. It's possible to work around this
2154+
the data pointed to by `T` is only valid for that lifetime. The problem is
2155+
that there are no actual uses of `'a`. It's possible to work around this
21562156
by adding a PhantomData type to the struct, using it to tell the compiler
21572157
to act as if the struct contained a borrowed reference `&'a T`:
21582158
@@ -2165,8 +2165,8 @@ struct Foo<'a, T: 'a> {
21652165
}
21662166
```
21672167
2168-
PhantomData can also be used to express information about unused type parameters.
2169-
You can read more about it in the API documentation:
2168+
PhantomData can also be used to express information about unused type
2169+
parameters. You can read more about it in the API documentation:
21702170
21712171
https://doc.rust-lang.org/std/marker/struct.PhantomData.html
21722172
"##

0 commit comments

Comments
 (0)