Skip to content

Fix prev_sibling indexing off-by-one - #176

Merged
lnicola merged 1 commit into
rust-analyzer:masterfrom
milianw:fix-prev_sibling
Nov 22, 2024
Merged

Fix prev_sibling indexing off-by-one#176
lnicola merged 1 commit into
rust-analyzer:masterfrom
milianw:fix-prev_sibling

Conversation

@milianw

@milianw milianw commented Nov 22, 2024

Copy link
Copy Markdown
Contributor

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

lnicola commented Nov 22, 2024

Copy link
Copy Markdown
Member

Ouch, thanks!

@lnicola
lnicola merged commit e25dbdf into rust-analyzer:master Nov 22, 2024
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