Update to go1.25.0

This commit is contained in:
Vorapol Rinsatitnon
2025-08-13 21:50:03 +07:00
parent 4fdddd398d
commit c7759f4edb
2303 changed files with 161699 additions and 70952 deletions

View File

@@ -51,7 +51,7 @@ func test1(iter int) {
// var fn func() // this makes it work, because fn stays off heap
j := 0 // ERROR "moved to heap: j$"
fn = func() { // ERROR "func literal escapes to heap$"
m[i] = append(m[i], 0)
m[i] = append(m[i], 0) // ERROR "append escapes to heap"
if j < 25 {
j++
fn()
@@ -75,7 +75,7 @@ func test2(iter int) {
var fn func() // this makes it work, because fn stays off heap
j := 0
fn = func() { // ERROR "func literal does not escape$"
m[i] = append(m[i], 0)
m[i] = append(m[i], 0) // ERROR "append escapes to heap"
if j < 25 {
j++
fn()