-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
gensym each test re-export module individually #16892
Conversation
cx.sess.span_bug( | ||
DUMMY_SP, | ||
"expected to find top-level re-export name, but found None" | ||
); |
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.
If this just uses a dummy span, it should call bug
instead of span_bug
. It also looks like some of this module is conditionally executed, so could this bug possibly be triggered on something like an empty file?
Could you add a test for #16597 as well? |
Added, and an empty test too. The tests pass |
cc @sfackler, the call to |
I don't think it's possible for the call to
And the only way that All that being said: another pair of eyes would be welcome 😆 |
@alexcrichton @sfackler Looks like this error is because the pretty-printer doesn't like gensym'd things? I can fix this by |
|
@sfackler Done :-) Can I get another r+? |
…ckler Fixes #16597 I'm not 100% sure this is the correct way to handle this - but I wasn't able to find a better way without doing way more refactoring of the code that I was comfortable with. Comments and criticism are appreciated 😄
internal: Don't eagerly try to read crate root file contents before VFS Fixes rust-lang/rust-analyzer#8623
Fixes #16597
I'm not 100% sure this is the correct way to handle this - but I wasn't able to find a better way without doing way more refactoring of the code that I was comfortable with. Comments and criticism are appreciated 😄