Skip to main content

private_imports_in

Function private_imports_in 

Source
pub fn private_imports_in<'a>(
    local: &UnitTable,
    uses: impl Iterator<Item = (&'a String, &'a UnitTable)>,
) -> HashMap<String, PrivateImport>
Expand description

#2618: the private declarations of the commons local uses that a reference in local could be reaching for. A name local declares itself is left out, since a reference to it is the unit’s own; so is a method of a type local declares. The first uses target to declare a subject wins.