* Cleans up the algorithm * Move first pass to walk (second still folds) * Support part of a type/value namespace split (crate metadata and module indices still need to be taught about this) * Remove a few blatant inefficiencies (import tables being recreated for every lookup, most importantly)
20 lines
198 B
Rust
20 lines
198 B
Rust
// xfail-boot
|
|
// xfail-stage0
|
|
// error-pattern: unresolved import
|
|
|
|
import m.unexported;
|
|
|
|
mod m {
|
|
export exported;
|
|
|
|
fn exported() {
|
|
}
|
|
|
|
fn unexported() {
|
|
}
|
|
}
|
|
|
|
|
|
fn main() {
|
|
unexported();
|
|
}
|