Skip to content

Resolve: fix diagnostics bugs #31648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 15, 2016
Merged

Conversation

jseyfried
Copy link
Contributor

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 in with_scope to fix #31644.

r? @nrc

@nrc
Copy link
Member

nrc commented Feb 14, 2016

@bors: r+

@bors
Copy link
Collaborator

bors commented Feb 14, 2016

📌 Commit 81d5d02 has been approved by nrc

bors added a commit that referenced this pull request Feb 15, 2016
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
@bors
Copy link
Collaborator

bors commented Feb 15, 2016

⌛ Testing commit 81d5d02 with merge 4ce8038...

@bors bors merged commit 81d5d02 into rust-lang:master Feb 15, 2016
@jseyfried jseyfried deleted the fix_diagnostics branch March 25, 2016 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resolve: incorrect error messages after a duplicate module definition
3 participants