From: bors Date: Mon, 15 Feb 2016 07:13:02 +0000 (+0000) Subject: Auto merge of #31648 - jseyfried:fix_diagnostics, r=nrc X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=4ce803837e8a414d20b17274aac5a2cbd06237bc;p=rust.git Auto merge of #31648 - jseyfried:fix_diagnostics, r=nrc 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 --- 4ce803837e8a414d20b17274aac5a2cbd06237bc