-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Conversation
r? @nrc (more familiar with this since I last touched it) |
Fixes #31729 |
} | ||
|
||
fn main() { | ||
zed::foo(); // Check that this does not panic. Ideally, it would be a privacy error. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
@bors: r+ |
📌 Commit 1b5d2f2 has been approved by |
@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. |
Right now, this error is just "unresolved name" -- it's not a privacy error since we can't use non- |
Thanks! @bors: r+ |
📌 Commit 08b9097 has been approved by |
Fixes #31714