]> git.lizzy.rs Git - rust.git/commit
rustc: Account for typedefs in privacy
authorAlex Crichton <alex@alexcrichton.com>
Sun, 25 May 2014 21:43:30 +0000 (14:43 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 27 May 2014 16:04:08 +0000 (09:04 -0700)
commit49a65815f17d9d3ee1a8ea323aaaf96e1beb265a
tree92ef76defab28fe3ec9c421da22f7306f21c70ba
parent1cf1527b91db3c605e44fe9b90fc46ecf1d04c4f
rustc: Account for typedefs in privacy

This ensures that a public typedef to a private item is ensured to be public in
terms of linkage. This affects both the visibility of the library's symbols as
well as other lints based on privacy (dead_code for example).

Closes #14421
Closes #14422
src/librustc/middle/privacy.rs
src/test/auxiliary/issue-14421.rs [new file with mode: 0644]
src/test/auxiliary/issue-14422.rs [new file with mode: 0644]
src/test/run-pass/issue-14421.rs [new file with mode: 0644]
src/test/run-pass/issue-14422.rs [new file with mode: 0644]