rust/src/librustc/util
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
..
common.rs librustc: Stop desugaring for expressions and translate them directly. 2014-07-24 18:58:12 -07:00
nodemap.rs Fallout from the libcollections movement 2014-06-05 13:55:11 -07:00
ppaux.rs librustc: Implement unboxed closures with mutable receivers 2014-07-18 09:01:37 -07:00