-
Notifications
You must be signed in to change notification settings - Fork 13.3k
fix overflow due to multiline error span #31281
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
... oops. Thanks for fixing this. (I guess adding yet another testcase, here for "end-highlighted-multiline-but-less-than-6-lines-span", would be overkill) |
@mitaa: the testcase would not help, we need to enable debug assertions in travis and homu. The test case for this situation was 10% of compile-fail ;) |
In particular, I believe we have at least one buildbot that has |
update tests emitter.rs
@oli-obk seems like it's still worth having focused tests, since many of us (e.g., me) run tests with |
But then there is a test? (Also, the travis failures look...bogus to me?) |
Yes, but since the code path was never used, due to overflow, it is naturally off by one. ( Currently, running tests locally.. :-( |
I don't understand what you mean by this. |
Sorry, what I basically meant to say was that there is a test for this, that the travis failure is genuine, and that the final necessary fix is probably to change ( |
Travis likes it now |
@bors r+ rollup |
📌 Commit 54927ac has been approved by |
lgtm! |
No description provided.