]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.9] cmd/compile: simplify "missing function body" error message
authorMatthew Dempsky <mdempsky@google.com>
Sun, 3 Sep 2017 19:31:14 +0000 (12:31 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 25 Oct 2017 20:22:47 +0000 (20:22 +0000)
Fixes #21747.

Change-Id: I6a68370be3b7510ce364ddd1e41a1d767ce3a67f
Reviewed-on: https://go-review.googlesource.com/61311
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-on: https://go-review.googlesource.com/70972
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/noder.go

index 3977be1d733db08ae5bd95199bdc7f39fe9e12dd..5f199482222ee9f906c356aefc9afeaa64e1fa1b 100644 (file)
@@ -401,7 +401,7 @@ func (p *noder) funcDecl(fun *syntax.FuncDecl) *Node {
                f.Func.Endlineno = lineno
        } else {
                if pure_go || strings.HasPrefix(f.funcname(), "init.") {
-                       yyerrorl(f.Pos, "missing function body for %q", f.funcname())
+                       yyerrorl(f.Pos, "missing function body")
                }
        }