test: update list of escape reasons

The escape_because.go test file (which tests the "because" escape
explainations printed by `-m -m`) cointains a machine-generated list
of all the escape reasons seen in the escape tests.

The list appears to be outdated; moreove a new escape reason was added
in CL 102895. This change re-generates the list.

Change-Id: Idc721c6bbfe9516895b5cf1e6d09b77deda5a3dd
Reviewed-on: https://go-review.googlesource.com/103375
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Alberto Donizetti 2018-03-29 14:35:57 +02:00
parent 7fe2f549cc
commit 04e993f953

View file

@ -141,51 +141,40 @@ appended to slice
appendee slice appendee slice
arg to ... arg to ...
arg to recursive call arg to recursive call
array literal element
array-element-equals array-element-equals
assign-pair array literal element
assign-pair-dot-type
assign-pair-func-call
assigned assigned
assigned to top level variable assigned to top level variable
call part assign-pair-dot-type
assign-pair-func-call
captured by a closure captured by a closure
closure-var captured by called closure
converted
copied slice
defer func
defer func ...
defer func arg
dot dot
dot of pointer
dot-equals dot-equals
dot of pointer
fixed-array-index-of fixed-array-index-of
go func
go func ...
go func arg go func arg
indirection indirection
interface-converted interface-converted
key of map put key of map put
map literal key map literal key
map literal value map literal value
non-constant size
panic
parameter to indirect call parameter to indirect call
passed-to-and-returned-from-call
passed to call[argument content escapes] passed to call[argument content escapes]
passed to call[argument escapes] passed to call[argument escapes]
passed-to-and-returned-from-call
pointer literal pointer literal
range
range-deref range-deref
receiver in indirect call receiver in indirect call
return return
returned from recursive function returned from recursive function
send
slice
slice-element-equals slice-element-equals
slice-literal-element slice-literal-element
star-dot-equals star-dot-equals
star-equals star-equals
struct literal element struct literal element
switch case
too large for stack too large for stack
value of map put value of map put
*/ */
@ -198,7 +187,6 @@ assign-pair-mapr
assign-pair-receive assign-pair-receive
call receiver call receiver
map index map index
panic
pointer literal [assign] pointer literal [assign]
slice literal element slice literal element
*/ */