Optimize Imports.

This commit is contained in:
Stephen Chung
2020-11-19 10:14:43 +08:00
parent 21c641d21f
commit a8cdb661f8
3 changed files with 43 additions and 29 deletions

View File

@@ -1588,7 +1588,7 @@ impl Module {
..
},
)| {
// Flatten all methods so they can be available without namespace qualifiers
// Flatten all functions with global namespace
if namespace.is_global() {
functions.insert(hash, func.clone());
}