]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/api: add missing runtime struct
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 21 Aug 2014 07:43:58 +0000 (11:43 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 21 Aug 2014 07:43:58 +0000 (11:43 +0400)
Fixes build.

TBR=khr
R=golang-codereviews
CC=golang-codereviews, khr
https://golang.org/cl/130390044

src/cmd/api/goapi.go

index e0d17c9564cbcb04907aa6e5fdff92e2a254981f..5933f32563d0a0b3d41bf72f28c9e7dc19d02871 100644 (file)
@@ -381,7 +381,7 @@ func (w *Walker) parseFile(dir, file string) (*ast.File, error) {
                src := "package runtime; type maptype struct{}; type _type struct{}; type alg struct{};" +
                        " type mspan struct{}; type m struct{}; type lock struct{}; type slicetype struct{};" +
                        " type iface struct{}; type eface struct{}; type interfacetype struct{}; type itab struct{};" +
-                       " type mcache struct{}"
+                       " type mcache struct{}; type bucket struct{}"
                f, err = parser.ParseFile(fset, filename, src, 0)
                if err != nil {
                        log.Fatalf("incorrect generated file: %s", err)