diff options
author | Chris Manghane <cmang@golang.org> | 2014-12-08 19:17:37 -0800 |
---|---|---|
committer | Chris Manghane <cmang@golang.org> | 2015-02-25 20:04:22 +0000 |
commit | 77d7771a829411b36461487b90a1e3034843b8dd (patch) | |
tree | 9e6e9704c2938230dad8ee7cb45d60dcfd862a8c /test/escape2.go | |
parent | 85d09574fd2ed789eb5550a04eae1d261aaf4d17 (diff) | |
download | go-git-77d7771a829411b36461487b90a1e3034843b8dd.tar.gz |
cmd/internal/gc: omit non-explicit capacity in errors with map/chan make
Fixes #9083.
Change-Id: Ifbdebafb39a73a1dacf7e67171e8e88028d1f10b
Reviewed-on: https://go-review.googlesource.com/1219
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Chris Manghane <cmang@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'test/escape2.go')
-rw-r--r-- | test/escape2.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/escape2.go b/test/escape2.go index ca9f61481b..3fd62d1dfc 100644 --- a/test/escape2.go +++ b/test/escape2.go @@ -1753,7 +1753,7 @@ func slicerunetostring2() { } func makemap0() { - m := make(map[int]int) // ERROR "make\(map\[int\]int\, 0\) does not escape" + m := make(map[int]int) // ERROR "make\(map\[int\]int\) does not escape" m[0] = 0 m[1]++ delete(m, 1) @@ -1761,10 +1761,10 @@ func makemap0() { } func makemap1() map[int]int { - return make(map[int]int) // ERROR "make\(map\[int\]int\, 0\) escapes to heap" + return make(map[int]int) // ERROR "make\(map\[int\]int\) escapes to heap" } func makemap2() { - m := make(map[int]int) // ERROR "make\(map\[int\]int\, 0\) escapes to heap" + m := make(map[int]int) // ERROR "make\(map\[int\]int\) escapes to heap" sink = m } |