Skip to content

Commit

Permalink
Auto merge of #30843 - jseyfried:no_per_ns, r=nikomatsakis
Browse files Browse the repository at this point in the history
This commit refactors the field `Module::children` from mapping `Name` -> `NameBindings` to mapping `(Name, Namespace)` -> `NameBinding` and refactors the field `Module::import_resolutions` from mapping `Name` -> `ImportResolutionPerNamespace` to mapping `(Name, Namespace)` -> `ImportResolution`.

This allows the duplicate checking code to be refactored so that `NameBinding` no longer needs ref-counting or a RefCell (removing the need for `NsDef`).

r? @nikomatsakis
  • Loading branch information
bors committed Jan 30, 2016
2 parents ef1a13b + afd42d2 commit b16fbe7
Show file tree
Hide file tree
Showing 3 changed files with 451 additions and 904 deletions.
Loading

0 comments on commit b16fbe7

Please sign in to comment.