Skip to content

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented Aug 27, 2021

Since we insert some extra characters for the fake file the corresponding fake range can overshoot the end of the original node in some cases, this mainly can happen in macro expanded files.

Note that this range fetching approach in general is brittle and fails with macros like the one in this test(the code just assumed our insertion would not affect the text ranges prior to our insertion).
Fixes #10042
bors r+

@bors
Copy link
Contributor

bors bot commented Aug 27, 2021

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.

thread '<unnamed>' panicked at 'Bad range: node range 0..69, range 50..72'

1 participant