#!stacks
"bug.Errorf" && "golang.builtinDecl:+63"

Issue created by stacks.

    if obj.Pkg() == types.Unsafe {
        // package "unsafe":
        // parse $GOROOT/src/unsafe/unsafe.go
        //
        // (Strictly, we shouldn't assume that the ID of a std
        // package is its PkgPath, but no Bazel+gopackagesdriver
        // users have complained about this yet.)
        unsafe := snapshot.Metadata("unsafe")
        if unsafe == nil {
            // If the type checker somehow resolved 'unsafe', we must have metadata
            // for it.
            return nil, nil, bug.Errorf("no metadata for package 'unsafe'")
        }

This stack vDHSJA was reported by telemetry:

golang.org/x/tools/gopls@v0.17.1 go1.23.4 darwin/arm64 vscode (1)

Dups: cKN8JA

Comment From: gabyhelp

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Comment From: adonovan

This stack cKN8JA was reported by telemetry:

golang.org/x/tools/gopls@v0.19.1 go1.24.4 darwin/arm64 vscode (1)