File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
branches/try/src/doc/tarpl Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
3
3
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4
- refs/heads/try: 0a36ea7db130dfaa6012d76ccf80b9b77e15796b
4
+ refs/heads/try: 06ded9c04e23ceaa41a4a5d01dd54432aaafd0db
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
7
7
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ untouched. For now we'll only implement the "basic" full-range version.
8
8
use std::marker::PhantomData;
9
9
10
10
struct Drain<'a, T: 'a> {
11
+ // Need to bound the lifetime here, so we do it with `&'a mut Vec<T>`
12
+ // because that's semantically what we contain. We're "just" calling
13
+ // `pop()` and `remove(0)`.
11
14
vec: PhantomData<&'a mut Vec<T>>
12
15
start: *const T,
13
16
end: *const T,
You can’t perform that action at this time.
0 commit comments