pub fn implicit_imports_for(
module: &AIRModule,
public_symbols: &HashMap<String, String>,
own_path: &str,
) -> Vec<(String, String)>Expand description
Compute the implicit cross-module imports for module: public symbols
declared in other reachable modules that module references but neither
declares locally nor imports explicitly. Returns (module_path, name)
pairs.
“References” is a conservative structural scan of the module’s debug
rendering for the symbol name as a quoted identifier token (mirroring the
Python / ESM equivalents). It can only over-import a name the program does
not really use — harmless on Rust (a dead use is allow-ed by the
crate-level #![allow(unused_imports)]) — never under-import, so it
cannot reintroduce the unresolved reference it exists to fix.