Skip to content

Commit

Permalink
Auto merge of rust-lang#29530 - jseyfried:resolve, r=nikomatsakis
Browse files Browse the repository at this point in the history
Replace `TypeNsDef` and `ValueNsDef` with a more general type `NsDef`.

Define a newtype `NameBinding` for `Rc<RefCell<Option<NsDef>>>` and refactor `NameBindings` to be a `NameBinding` for each namespace.

Replace uses of `NameBindings` with `NameBinding` where only one binding is being used (in `NamespaceResult`, `Target,` etc).

Refactor away `resolve_definition_of_name_in_module` and `NameDefinition`, fixing issue rust-lang#4952.
  • Loading branch information
bors committed Nov 23, 2015
2 parents 69b8e74 + 6a6e1db commit 8e9a975
Show file tree
Hide file tree
Showing 6 changed files with 377 additions and 825 deletions.
Loading

0 comments on commit 8e9a975

Please sign in to comment.