Skip to content

Update snapshots to reflect changes from mozilla/rust-code-analysis#1253 - #6

Merged
marco-c merged 1 commit into
mainfrom
tree-sitter-0.27
Nov 21, 2026
Merged

marco-c merged 1 commit into
mainfrom
tree-sitter-0.27

Conversation

@marco-c

@marco-c marco-c commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

Updates the snapshots of the two copies of DeepSpeech's pywrapfst.cc for mozilla/rust-code-analysis#1253, which bumps tree-sitter from 0.26 to 0.27.

In __Pyx_WriteUnraisable, the __Pyx_PyThreadState_declare macro is used as a statement without a trailing semicolon. tree-sitter 0.26 recovered from the missing ; by parsing the macro as a lone type_identifier; tree-sitter 0.27 parses it as an expression_statement, which counts as a logical line in the C++ LOC metric. So lloc goes from 22 to 23 for that function, and the file totals increase by 2. No other snapshot changes.



tree-sitter 0.27 recovers differently from the missing semicolon after the
`__Pyx_PyThreadState_declare` macro in pywrapfst.cc: it is now parsed as an
expression statement, which counts as a logical line of code.
@marco-c
marco-c merged commit e4c6df0 into main Nov 21, 2026
marco-c added a commit to mozilla/rust-code-analysis that referenced this pull request Nov 21, 2026
tree-sitter 0.27 recovers differently from a missing semicolon after a
macro used as a statement in DeepSpeech's pywrapfst.cc, which changes its
LOC metric (mozilla/rust-code-analysis-output#6).
@marco-c
marco-c deleted the tree-sitter-0.27 branch November 21, 2026 01:25
marco-c added a commit to mozilla/rust-code-analysis that referenced this pull request Nov 21, 2026
tree-sitter 0.27 recovers differently from a missing semicolon after a
macro used as a statement in DeepSpeech's pywrapfst.cc, which changes its
LOC metric (mozilla/rust-code-analysis-output#6).
marco-c added a commit to mozilla/rust-code-analysis that referenced this pull request Nov 21, 2026
tree-sitter 0.27 recovers differently from a missing semicolon after a
macro used as a statement in DeepSpeech's pywrapfst.cc, which changes its
LOC metric (mozilla/rust-code-analysis-output#6).
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.

1 participant