pub fn rewrite_private_references(
errors: Vec<CompileError>,
private: &HashMap<String, PrivateImport>,
) -> Vec<CompileError>Expand description
#2618: report a reference to a used commons’ private declaration as
bynk.visibility.private_item rather than as the unknown name it resolves
as. An importer does not see private declarations at all (they are left
out of its composed tables, so its own declaration of the same name is no
conflict), so the reference first fails as unknown_*; this names the
real reason instead. The subject is read from the message exactly as
split_broken_decl_echoes reads it.