We don't punctuate compiler diagnostics.
Change-Id: I19e1f30fbf04f0d1bfe6648fae26beaf3a06ee92
Reviewed-on: https://go-review.googlesource.com/c/go/+/201077
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
}
}
if compiling_runtime && clo.Esc == EscHeap {
- yyerrorl(clo.Pos, "heap-allocated closure, not allowed in runtime.")
+ yyerrorl(clo.Pos, "heap-allocated closure, not allowed in runtime")
}
}
Dump("MOVE", n)
}
if compiling_runtime {
- yyerror("%v escapes to heap, not allowed in runtime.", n)
+ yyerror("%v escapes to heap, not allowed in runtime", n)
}
if n.Class() == PAUTOHEAP {
Dump("n", n)
v := n.Left
if v.Class() == PAUTOHEAP {
if compiling_runtime {
- yyerror("%v escapes to heap, not allowed in runtime.", v)
+ yyerror("%v escapes to heap, not allowed in runtime", v)
}
if prealloc[v] == nil {
prealloc[v] = callnew(v.Type)
package p
func f(x int) func(int) int {
- return func(y int) int { return x + y } // ERROR "heap-allocated closure, not allowed in runtime."
+ return func(y int) int { return x + y } // ERROR "heap-allocated closure, not allowed in runtime"
}
-func g(x int) func(int) int { // ERROR "x escapes to heap, not allowed in runtime."
- return func(y int) int { // ERROR "heap-allocated closure, not allowed in runtime."
+func g(x int) func(int) int { // ERROR "x escapes to heap, not allowed in runtime"
+ return func(y int) int { // ERROR "heap-allocated closure, not allowed in runtime"
x += y
return x + y
}