Skip to content

Fix minor issues around indexing Kubernetes#227

Merged
jupblb merged 2 commits intomainfrom
michal/unsafe
Apr 21, 2026
Merged

Fix minor issues around indexing Kubernetes#227
jupblb merged 2 commits intomainfrom
michal/unsafe

Conversation

@jupblb
Copy link
Copy Markdown
Collaborator

@jupblb jupblb commented Apr 21, 2026

  • Skip unsafe package members in symbol lookup
  • Skip labels in global symbol lookup

The unsafe pseudo-package is never loaded via packages.Load, so its
members (Pointer, Sizeof, etc.) have no entry in the global symbols map.
This caused ~2,844 debug warnings when indexing projects like Kubernetes.

Handle unsafe the same way as other builtins: return early with no symbol.
@jupblb jupblb changed the title Skip unsafe package members in symbol lookup Fix minor issues around indexing Kubernetes Apr 21, 2026
Labels (goto/break/continue targets) are function-scoped and should not
be resolved as global symbols. They were falling through to the error
path, producing spurious debug warnings.
@jupblb jupblb merged commit 575034b into main Apr 21, 2026
9 checks passed
@jupblb jupblb deleted the michal/unsafe branch April 21, 2026 16:18
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