Skip to content

Commit

Permalink
[release-branch.go1.9] cmd/compile: simplify "missing function body" …
Browse files Browse the repository at this point in the history
…error message

Fixes #21747.

Change-Id: I6a68370be3b7510ce364ddd1e41a1d767ce3a67f
Reviewed-on: https://go-review.googlesource.com/61311
Run-TryBot: Matthew Dempsky <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Robert Griesemer <[email protected]>
Reviewed-on: https://go-review.googlesource.com/70972
Run-TryBot: Russ Cox <[email protected]>
Reviewed-by: Matthew Dempsky <[email protected]>
  • Loading branch information
mdempsky authored and rsc committed Oct 25, 2017
1 parent 2e4358c commit ccd5abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/gc/noder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

Expand Down

0 comments on commit ccd5abc

Please sign in to comment.