about summary refs log tree commit diff
path: root/src/libsyntax/errors
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-03-25 15:53:16 -0700
committerbors <bors@rust-lang.org>2016-03-25 15:53:16 -0700
commita1e29daf1a9ca4e26719887b0c934de5d1695031 (patch)
tree5da1402523312269a5fb7c7e5e7aa48abdfd8f60 /src/libsyntax/errors
parentcf9274b727423306121c223681022ac0531c6091 (diff)
parent54cd4d1472508af604e2fed328951dd5c622ecbc (diff)
downloadrust-a1e29daf1a9ca4e26719887b0c934de5d1695031.tar.gz
rust-a1e29daf1a9ca4e26719887b0c934de5d1695031.zip
Auto merge of #32167 - jseyfried:refactor_prelude, r=nikomatsakis
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
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions