Module rustc::middle::privacy[src]

A pass that checks to make sure private fields and methods aren't used outside their scopes. This pass will also generate a set of exported items which are available for use externally when compiled as a library.

Functions

check_crate

Type Definitions

ExportedItems

A set of AST nodes exported by the crate.

PublicItems

A set of AST nodes that are fully public in the crate. This map is used for documentation purposes (reexporting a private struct inlines the doc, reexporting a public struct doesn't inline the doc).