]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #31648 - jseyfried:fix_diagnostics, r=nrc
authorbors <bors@rust-lang.org>
Mon, 15 Feb 2016 07:13:02 +0000 (07:13 +0000)
committerbors <bors@rust-lang.org>
Mon, 15 Feb 2016 07:13:02 +0000 (07:13 +0000)
This PR fixes two unrelated diagnostics bugs in resolve.

First, it reports privacy errors for an import only after the import resolution is determined, fixing #31402.

Second, it expands the per-module map from block ids to anonymous modules so that it also maps module declarations ids to modules, and it uses this map to in `with_scope` to fix #31644.

r? @nrc

1  2 
src/librustc_resolve/resolve_imports.rs