Skip to content

Conversation

Muscraft
Copy link
Member

@Muscraft Muscraft commented Sep 2, 2025

While migrating cargo to annotate-snippets@0.12.0, I enabled the simd feature, and found that it wasn't correctly aligning things when the max line number was 10. After some digging, I figured out that the cause was simd's newline_count being off by 1. This PR fixes that issue and adds tests that will hopefully catch any regressions.

To test this PR, run the following command on each commit:

cargo hack test --each-feature --workspace

@Muscraft Muscraft force-pushed the fix-simd-newline-count branch from 60dc57f to b43f04f Compare September 2, 2025 13:34
@epage epage merged commit 4006279 into rust-lang:master Sep 2, 2025
15 checks passed
@Muscraft Muscraft deleted the fix-simd-newline-count branch September 2, 2025 13:36
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.

2 participants