]> git.lizzy.rs Git - rust.git/commit
auto merge of #15234 : pcwalton/rust/integer-fallback-and-casts, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 29 Jun 2014 19:46:46 +0000 (19:46 +0000)
committerbors <bors@rust-lang.org>
Sun, 29 Jun 2014 19:46:46 +0000 (19:46 +0000)
commitff94f867d29a90ab59060c10a62f65994776a8c4
tree2a1eb17ef28c64da19f6b3248217d113e6a2b8bd
parentcc5663ad55f3dc3a642c8e2c4043900783dcc9f8
parenta5bb0a3a4574af88add700ace7aefc37172fa7a5
auto merge of #15234 : pcwalton/rust/integer-fallback-and-casts, r=alexcrichton

This will break code that looks like:

    let mut x = 0;
    while ... {
        x += 1;
    }
    println!("{}", x);

Change that code to:

    let mut x = 0i;
    while ... {
        x += 1;
    }
    println!("{}", x);

Closes #15201.

[breaking-change]

r? @alexcrichton