diff options
| author | bors <bors@rust-lang.org> | 2016-04-04 21:50:05 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-04-04 21:50:05 -0700 |
| commit | 7fd331e16642363c333804fe3322ae6bc0be8fbc (patch) | |
| tree | ab72c2b72f95ed18e4cc801ce7e22cec04007e13 /src/libstd/sys | |
| parent | 600dc3552ffcdff014cc770e98a67b674496d10a (diff) | |
| parent | 6f09deaa32ba8a4f26a46c28ffecbb3efc3d165e (diff) | |
| download | rust-7fd331e16642363c333804fe3322ae6bc0be8fbc.tar.gz rust-7fd331e16642363c333804fe3322ae6bc0be8fbc.zip | |
Auto merge of #32328 - jseyfried:coherence, r=nikomatsakis
resolve: Improve import failure detection and lay groundwork for RFC 1422 This PR improves import failure detection and lays some groundwork for RFC 1422. More specifically, it - Avoids recomputing the resolution of an import directive's module path. - Refactors code in `resolve_imports` that does not scale to the arbitrarily many levels of visibility that will be required by RFC 1422. - Replaces `ModuleS`'s fields `public_glob_count`, `private_glob_count`, and `resolved_globs` with a list of glob import directives `globs`. - Replaces `NameResolution`'s fields `pub_outstanding_references` and `outstanding_references` with a field `single_imports` of a newly defined type `SingleImports`. - Improves import failure detection by detecting cycles that include single imports (currently, only cycles of globs are detected). This fixes #32119. r? @nikomatsakis
Diffstat (limited to 'src/libstd/sys')
0 files changed, 0 insertions, 0 deletions
