Commit f203fc7
committed
auto merge of #12348 : brunoabinader/rust/libcollections-list-refactory, r=alexcrichton
This PR includes:
- Create an iterator for ```List<T>``` called ```Items<T>```;
- Move all list operations inside ```List<T>``` impl;
- Removed functions that are already provided by ```Iterator``` trait;
- Refactor on ```len()``` and ```is_empty``` using ```Container``` trait;
- Bunch of minor fixes;
A replacement for using @ is intended, but still in discussion.
Closes #12344.File tree
7 files changed
+177
-217
lines changed- src
- doc
- libarena
- libcollections
- librustc/middle/typeck
- libstd
- test/run-pass
7 files changed
+177
-217
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3256 | 3256 | | |
3257 | 3257 | | |
3258 | 3258 | | |
3259 | | - | |
| 3259 | + | |
3260 | 3260 | | |
3261 | 3261 | | |
3262 | | - | |
| 3262 | + | |
3263 | 3263 | | |
3264 | 3264 | | |
3265 | 3265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | | - | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
122 | | - | |
123 | | - | |
| 121 | + | |
124 | 122 | | |
125 | 123 | | |
126 | 124 | | |
127 | | - | |
128 | | - | |
| 125 | + | |
129 | 126 | | |
130 | 127 | | |
131 | 128 | | |
| |||
0 commit comments