Skip to content
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

Fix import resolution bug #32227

Merged
merged 3 commits into from
Mar 13, 2016
Merged

Conversation

jseyfried
Copy link
Contributor

This fixes #32222, which was introduced in #31726.

@jseyfried
Copy link
Contributor Author

Whenever decrement_outstanding_references_for caused an indeterminate NameResolution to become a success (by no longer blocking a glob import), the binding was defined in all known glob importers of its containing module.

This use of decrement_outstanding_references_for was incorrect since it would only make the resolution successful temporarily (after which the resolution is reverted to its previous state). It caused a binding to be defined in all known glob importers each time the resolution became temporarily successful, leading to incorrect duplicate errors (and other privacy-related bugs).

@jseyfried
Copy link
Contributor Author

r? @alexcrichton

@alexcrichton
Copy link
Member

@bors: r+ d102014

Thanks for the quick fix @jseyfried! Does this affect beta as well do you know? If so this would probably be a good candidate for a backport.

@bors
Copy link
Contributor

bors commented Mar 13, 2016

⌛ Testing commit d102014 with merge d5880ff...

bors added a commit that referenced this pull request Mar 13, 2016
…chton

Fix import resolution bug

This fixes #32222, which was introduced in #31726.
@bors bors merged commit d102014 into rust-lang:master Mar 13, 2016
@bors bors mentioned this pull request Mar 13, 2016
@jseyfried
Copy link
Contributor Author

@alexcrichton this doesn't affect beta.

@jseyfried jseyfried deleted the fix_import_resolution_bug branch March 17, 2016 13:07
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.

Very minor changes causing unrelated module to fail to compile in a nonsense fashion
3 participants