rust/src/libcoretest
Patrick Walton caa564bea3 librustc: Stop desugaring for expressions and translate them directly.
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]
2014-07-24 18:58:12 -07:00
..
fmt Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
num Change Shl<T, T> for Int to Shl<uint, T> 2014-07-04 09:57:04 +01:00
any.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
atomics.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
cell.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
char.rs ignore-lexer-test to broken files and remove some tray hyphens 2014-07-21 10:59:58 -07:00
clone.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
cmp.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
finally.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
iter.rs librustc: Stop desugaring for expressions and translate them directly. 2014-07-24 18:58:12 -07:00
lib.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
mem.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
ops.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
option.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
ptr.rs Deprecated str::raw::from_c_str 2014-07-24 07:25:43 -07:00
raw.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
result.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
tuple.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00