]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #32167 - jseyfried:refactor_prelude, r=nikomatsakis
authorbors <bors@rust-lang.org>
Fri, 25 Mar 2016 22:53:16 +0000 (15:53 -0700)
committerbors <bors@rust-lang.org>
Fri, 25 Mar 2016 22:53:16 +0000 (15:53 -0700)
resolve: Refactor how the prelude is handled

This PR refactors how the prelude is handled in `resolve`.

Instead of importing names from the prelude into each module's `resolutions`, this PR adds a new field `prelude: RefCell<Option<Module>>` to `ModuleS` that is set during import resolution but used only when resolving in a lexical scope (i.e. the scope of an initial segment of a relative path).

r? @nikomatsakis


Trivial merge