rust/src/libunicode
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
..
decompose.rs librustc: Stop desugaring for expressions and translate them directly. 2014-07-24 18:58:12 -07:00
lib.rs Register new snapshots 2014-07-19 20:38:00 -07:00
tables.rs add Graphemes iterator; tidy unicode exports 2014-07-14 19:53:46 -04:00
u_char.rs Add libunicode; move unicode functions from core 2014-07-07 14:52:24 -04:00
u_str.rs auto merge of #15867 : cmr/rust/rewrite-lexer4, r=alexcrichton 2014-07-22 07:16:17 +00:00