Skip to content

Rust: parsing-layer coverage gaps (9 findings) #1934

Description

@magyargergo

Parent epic: #1919
Enabled by: #1920 (node-type validator) — closes F67, F74 · #1921 (heritage helper) — closes F69

9 verified findings (1 HIGH). Each box is a discrete fix unit. Legend: ✅ confirmed · 🟡 partial.

  • F66 [HIGH] let mut x = ... bindings dropped by scope-resolution type-binding/declaration queries
    • grammar: node-types.json: let_declaration.pattern type is _pattern (required)
    • source: query.ts: every let_declaration rule uses pattern:(identifier) at lines 43-44,63-65,68-71,74-77,80-84,87-89 (verbatim)
  • F67 [MEDIUM] Dead method_call_expression branch — Rust method-call binding inference never fires
  • F68 [MEDIUM] Variable extractor drops let mut x declarations (name resolution fails)
  • F69 [MEDIUM] Heritage queries miss impl ScopedTrait for Type (scoped trait paths)
  • F70 [MEDIUM] Struct-literal construction calls miss scoped and turbofish struct names
  • F71 [LOW] union_item definitions are not extracted anywhere
  • F72 [LOW] Function-like macro invocations are not captured as calls
  • F73 [LOW] Variadic parameters skipped in method/parameter extraction
  • F74 [LOW] Dead slice_type branch in for-loop element-type extraction

Verified against main @ a93ecee0. Finding IDs use an F prefix to avoid colliding with unrelated issue/PR numbers.

Metadata

Metadata

Labels

Language SupportAdditional lang support for gitnexusring:3-languageRing 3 — Per-language migration

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions