Skip to content

Commit 343c967

Browse files
committed
---
yaml --- r: 229027 b: refs/heads/try c: c97673c h: refs/heads/master i: 229025: b796edd 229023: 3e9eaec v: v3
1 parent 2271170 commit 343c967

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: b79d279418db10728d5067fc872c0a9f273ba123
4+
refs/heads/try: c97673c7b0fffe131822f2a5be520cf408c68319
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/doc/tarpl/lifetimes.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,7 @@ let y = &x;
6666
z = y;
6767
```
6868

69-
The borrow checker always tries to minimize the extent of a lifetime, so it will
70-
likely desugar to something like the following:
71-
7269
```rust,ignore
73-
// NOTE: `'a: {` and `foo = &'b x` is not valid syntax!
7470
'a: {
7571
let x: i32 = 0;
7672
'b: {
@@ -191,8 +187,6 @@ println!("{}", x);
191187
'c: {
192188
// Temporary scope because we don't need the
193189
// &mut to last any longer.
194-
195-
// NOTE: Vec::push is not valid syntax
196190
Vec::push(&'c mut data, 4);
197191
}
198192
println!("{}", x);

0 commit comments

Comments
 (0)