rust/src/test/codegen
Patrick Walton e9ad12c0ca 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]
2014-09-22 20:05:45 -07:00
..
iterate-over-array.cc
iterate-over-array.rs
scalar-function-call.cc
scalar-function-call.rs
single-return-value.cc
single-return-value.rs
small-dense-int-switch.cc
small-dense-int-switch.rs
stack-alloc-string-slice.cc
stack-alloc-string-slice.rs
static-method-call-multi.cc
static-method-call-multi.rs librustc: Forbid private types in public APIs. 2014-09-22 20:05:45 -07:00
static-method-call.cc
static-method-call.rs librustc: Forbid private types in public APIs. 2014-09-22 20:05:45 -07:00
virtual-method-call-struct-return.cc
virtual-method-call-struct-return.rs librustc: Forbid private types in public APIs. 2014-09-22 20:05:45 -07:00
virtual-method-call.cc
virtual-method-call.rs librustc: Forbid private types in public APIs. 2014-09-22 20:05:45 -07:00