]> git.lizzy.rs Git - rust.git/commit
auto merge of #15443 : pcwalton/rust/module-and-type-with-same-name, r=nick29581
authorbors <bors@rust-lang.org>
Tue, 8 Jul 2014 02:36:43 +0000 (02:36 +0000)
committerbors <bors@rust-lang.org>
Tue, 8 Jul 2014 02:36:43 +0000 (02:36 +0000)
commit6f46621b335d398f3c837750d31797014f63578b
tree223a7d1185cf31956d798cb5cbec014a166551db
parenta3257804df2bace236f83d9e5a9e887a1df30ef5
parent3c9443b6e58c2c1a7bd9e6e2a74e183c33c98ebc
auto merge of #15443 : pcwalton/rust/module-and-type-with-same-name, r=nick29581

This will break code that looks like:

    struct Foo {
        ...
    }

    mod Foo {
        ...
    }

Change this code to:

    struct Foo {
        ...
    }

    impl Foo {
        ...
    }

Or rename the module.

Closes #15205.

[breaking-change]

r? @nick29581
src/librustc/middle/resolve.rs