about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-02-27 18:33:03 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-03-01 00:11:56 +1100
commit859277dfdb481c35824acdcea30fb72628fb1073 (patch)
treee47d1d54549d38cb08c7da3b8c2d7da02ef05993 /src/rustllvm/ExecutionEngineWrapper.cpp
parent31e9c947a3303b4b785f9a7f130b00c625456326 (diff)
downloadrust-859277dfdb481c35824acdcea30fb72628fb1073.tar.gz
rust-859277dfdb481c35824acdcea30fb72628fb1073.zip
rustc: implement a lint for publicly visible private types.
These are types that are in exported type signatures, but are not
exported themselves, e.g.

    struct Foo { ... }

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

will warn about the Foo.

Such types are not listed in documentation, and cannot be named outside
the crate in which they are declared, which is very user-unfriendly.

cc #10573
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions