about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-09-19 12:30:07 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-09-22 20:05:45 -0700
commite9ad12c0cae5c43ada6641c7dc840a0fbe5010a2 (patch)
tree21b3e62d447bda4ccda606894edb66ca965bccee /src/rustllvm/PassWrapper.cpp
parent43fd619819b334b8548dca98797bd4c8078636cb (diff)
downloadrust-e9ad12c0cae5c43ada6641c7dc840a0fbe5010a2.tar.gz
rust-e9ad12c0cae5c43ada6641c7dc840a0fbe5010a2.zip
librustc: Forbid private types in public APIs.
This breaks code like:

    struct Foo {
        ...
    }

    pub fn make_foo() -> Foo {
        ...
    }

Change this code to:

    pub struct Foo {    // note `pub`
        ...
    }

    pub fn make_foo() -> Foo {
        ...
    }

The `visible_private_types` lint has been removed, since it is now an
error to attempt to expose a private type in a public API. In its place
a `#[feature(visible_private_types)]` gate has been added.

Closes #16463.

RFC #48.

[breaking-change]
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions