caa564bea3
This makes edge cases in which the `Iterator` trait was not in scope and/or `Option` or its variants were not in scope work properly. This breaks code that looks like: struct MyStruct { ... } impl MyStruct { fn next(&mut self) -> Option<int> { ... } } for x in MyStruct { ... } { ... } Change ad-hoc `next` methods like the above to implementations of the `Iterator` trait. For example: impl Iterator<int> for MyStruct { fn next(&mut self) -> Option<int> { ... } } Closes #15392. [breaking-change] |
||
---|---|---|
.. | ||
fmt | ||
num | ||
any.rs | ||
atomics.rs | ||
cell.rs | ||
char.rs | ||
clone.rs | ||
cmp.rs | ||
finally.rs | ||
iter.rs | ||
lib.rs | ||
mem.rs | ||
ops.rs | ||
option.rs | ||
ptr.rs | ||
raw.rs | ||
result.rs | ||
tuple.rs |