File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 67deb2e65e150a1b9b2fcd457da47e3e13b2c4f7
2
+ refs/heads/master: 98ec85f19e42edafc3d82a737f0ccbd1b7f4ff6c
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: a86d9ad15e339ab343a12513f9c90556f677b9ca
5
5
refs/heads/try: 73b8f60b60d8a2a7ca5a7d49d59771350b867951
Original file line number Diff line number Diff line change @@ -3669,10 +3669,9 @@ manually free this allocation! If we write
3669
3669
```
3670
3670
3671
3671
then Rust will automatically free ` x ` at the end of the block. This isn't
3672
- because Rust has a garbage collector -- it doesn't. Instead, Rust uses static
3673
- analysis to determine the * lifetime* of ` x ` , and then generates code to free it
3674
- once it's sure the ` x ` won't be used again. This Rust code will do the same
3675
- thing as the following C code:
3672
+ because Rust has a garbage collector -- it doesn't. Instead, when ` x ` goes out
3673
+ of scope, Rust ` free ` s ` x ` . This Rust code will do the same thing as the
3674
+ following C code:
3676
3675
3677
3676
``` {c,ignore}
3678
3677
{
You can’t perform that action at this time.
0 commit comments