Skip to main content

Module privacy

Module privacy 

Source
Expand description

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.

Re-exportsΒ§

use std::cmp::Ordering; πŸ”’
use std::hash::Hash; πŸ”’
use std::hash::Hash; πŸ”’
use rustc_data_structures::fx::FxIndexMap; πŸ”’
use rustc_data_structures::fx::IndexEntry; πŸ”’
use rustc_data_structures::fx::default; πŸ”’
use rustc_data_structures::stable_hash::StableHash; πŸ”’
use rustc_data_structures::stable_hash::StableHashCtxt; πŸ”’
use rustc_data_structures::stable_hash::StableHasher; πŸ”’
use rustc_hir::def::DefKind; πŸ”’
use rustc_hir::ItemKind; πŸ”’
use rustc_hir::Node; πŸ”’
use rustc_hir::UseKind; πŸ”’
use rustc_hir::UseTree; πŸ”’
use rustc_macros::StableHash; πŸ”’
use rustc_span::def_id::CRATE_DEF_ID; πŸ”’
use rustc_span::def_id::LocalDefId; πŸ”’
use rustc_span::span_bug; πŸ”’
use crate::ty::TyCtxt; πŸ”’
use crate::ty::Visibility; πŸ”’

StructsΒ§

EffectiveVisibilities
Holds a map of effective visibilities for reachable HIR nodes.
EffectiveVisibility

EnumsΒ§

Level
Represents the levels of effective visibility an item can have.