We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1478e commit ac7efcbCopy full SHA for ac7efcb
test/escape4.go
@@ -38,20 +38,15 @@ func f2() {} // ERROR "can inline f2"
38
func f3() { panic(1) } // ERROR "can inline f3" "1 escapes to heap"
39
func f4() { recover() }
40
41
-// TODO(cuonglm): remove f5, f6 //go:noinline and update the error message
42
-// once GOEXPERIMENT=nounified is gone.
43
-
44
-//go:noinline
45
-func f5() *byte {
+func f5() *byte { // ERROR "can inline f5"
46
type T struct {
47
x [1]byte
48
}
49
t := new(T) // ERROR "new.T. escapes to heap"
50
return &t.x[0]
51
52
53
54
-func f6() *byte {
+func f6() *byte { // ERROR "can inline f6"
55
56
x struct {
57
y byte
0 commit comments