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

@@ -494,13 +494,13 @@ func foo70(mv1 *MV, m M) { // ERROR "leaking param: m$" "leaking param: mv1$"
func foo71(x *int) []*int { // ERROR "leaking param: x$"
var y []*int
y = append(y, x)
y = append(y, x) // ERROR "append escapes to heap"
return y
}
func foo71a(x int) []*int { // ERROR "moved to heap: x$"
var y []*int
y = append(y, &x)
y = append(y, &x) // ERROR "append escapes to heap"
return y
}
@@ -860,12 +860,12 @@ func foo104(x []*int) { // ERROR "leaking param content: x"
// does not leak x but does leak content
func foo105(x []*int) { // ERROR "leaking param content: x"
_ = append(y, x...)
_ = append(y, x...) // ERROR "append does not escape"
}
// does leak x
func foo106(x *int) { // ERROR "leaking param: x$"
_ = append(y, x)
_ = append(y, x) // ERROR "append does not escape"
}
func foo107(x *int) map[*int]*int { // ERROR "leaking param: x$"