Skip to main content

phase_tables_uses_consts

Function phase_tables_uses_consts 

Source
pub fn phase_tables_uses_consts(
    groups: &BTreeMap<String, Vec<usize>>,
    kinds: &BTreeMap<String, UnitKind>,
    parsed: &mut [ParsedFile],
    policy: &StabilityPolicy,
    errors: &mut ErrorSink,
    refs: &mut RefSink,
) -> (HashMap<String, UnitTable>, HashMap<String, Vec<String>>)
Expand description

Phases 4, 5 and 5a: build the unit tables, resolve each unit’s uses, then resolve a constant named by a literal-only annotation argument to the literal it denotes (#3445, crate::annotation_consts). The last rewrites parsed and the tables built from it, ahead of every reader of annotation arguments.