Updates golang/go#63933
Change-Id: I3ff71e92d124c850eb8b4d136e163bf5786897a2
Reviewed-on: https://go-review.googlesource.com/c/go/+/545615
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
"go/token"
"internal/godebug"
. "internal/types/errors"
+ "strings"
)
// nopos indicates an unknown position
case *ast.SelectorExpr:
return x.Sel
}
- panic("instantiated ident not found")
+
+ // extra debugging of #63933
+ var buf strings.Builder
+ buf.WriteString("instantiated ident not found; please report: ")
+ ast.Fprint(&buf, token.NewFileSet(), expr, ast.NotNilFilter)
+ panic(buf.String())
}
func (check *Checker) recordDef(id *ast.Ident, obj Object) {