rust/src/test
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
..
auxiliary librustc: Forbid private types in public APIs. 2014-09-22 20:05:45 -07:00
bench auto merge of #17335 : TeXitoi/rust/relicense-shootout, r=brson 2014-09-18 03:20:39 +00:00
codegen librustc: Forbid private types in public APIs. 2014-09-22 20:05:45 -07:00
compile-fail librustc: Forbid private types in public APIs. 2014-09-22 20:05:45 -07:00
compile-fail-fulldeps Add lint groups; define built-in lint groups bad_style and unused 2014-08-30 09:12:04 +12:00
debuginfo Move -Z lto to -C lto. 2014-09-21 02:17:31 -04:00
pretty Add enum variants to the type namespace 2014-09-19 15:11:00 +12:00
run-fail Add enum variants to the type namespace 2014-09-19 15:11:00 +12:00
run-make Move -Z lto to -C lto. 2014-09-21 02:17:31 -04:00
run-pass librustc: Forbid private types in public APIs. 2014-09-22 20:05:45 -07:00
run-pass-fulldeps Test fixes from the rollup 2014-09-19 19:58:14 -07:00