rust/src/librustc/middle/cfg
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
..
construct.rs librustc: Stop desugaring for expressions and translate them directly. 2014-07-24 18:58:12 -07:00
graphviz.rs Extend --pretty flowgraph=ID to include dataflow results in output. 2014-07-15 12:26:56 +02:00
mod.rs middle::cfg code cleanup. 2014-06-18 16:41:52 +02:00