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

Resolve: don't compute LastPrivate data for Def::Err to avoid ICE #31716

Merged
merged 2 commits into from
Feb 19, 2016

Conversation

jseyfried
Copy link
Contributor

Fixes #31714

@alexcrichton
Copy link
Member

r? @nrc (more familiar with this since I last touched it)

@rust-highfive rust-highfive assigned nrc and unassigned alexcrichton Feb 16, 2016
@jseyfried
Copy link
Contributor Author

Fixes #31729

}

fn main() {
zed::foo(); // Check that this does not panic. Ideally, it would be a privacy error.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you file an issue for this please?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah; in fact, I can fix it now

@nrc
Copy link
Member

nrc commented Feb 19, 2016

@bors: r+

@bors
Copy link
Contributor

bors commented Feb 19, 2016

📌 Commit 1b5d2f2 has been approved by nrc

@jseyfried
Copy link
Contributor Author

@nrc The above commit addresses your comment by making the error for trying to use an inaccessible unresolved import the same as if it the import were resolved.

@jseyfried
Copy link
Contributor Author

Right now, this error is just "unresolved name" -- it's not a privacy error since we can't use non-pub imports in non-lexical scopes (see #13598).
This could be improved to a more descriptive error -- I can file an issue for that.

@nrc
Copy link
Member

nrc commented Feb 19, 2016

Thanks!

@bors: r+

@bors
Copy link
Contributor

bors commented Feb 19, 2016

📌 Commit 08b9097 has been approved by nrc

bors added a commit that referenced this pull request Feb 19, 2016
@bors
Copy link
Contributor

bors commented Feb 19, 2016

⌛ Testing commit 08b9097 with merge 917db28...

@bors bors merged commit 08b9097 into rust-lang:master Feb 19, 2016
@jseyfried jseyfried deleted the fix_privacy_for_def_err 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.

4 participants