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

Fix prev_sibling indexing off-by-one #176

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

milianw
Copy link
Contributor

@milianw milianw commented Nov 22, 2024

The patch f06a2c9 changed the code to use skip instead of nth, which lead to an off-by-one bug that was uncovered by unit tests in ludtwig, see 1.

Fixes: #175

The patch f06a2c9 changed the
code to use skip instead of nth, which lead to an off-by-one
bug that was uncovered by unit tests in ludtwig, see [1].

[1]: MalteJanz/ludtwig#122

Fixes: rust-analyzer#175
@lnicola
Copy link
Member

lnicola commented Nov 22, 2024

Ouch, thanks!

@lnicola lnicola merged commit e25dbdf into rust-analyzer:master Nov 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Rowan upgrade to 0.16.0 breaks prev_sibling behaviour
2 participants