diff options
author | Dan Scales <danscales@google.com> | 2021-02-24 13:03:17 -0800 |
---|---|---|
committer | Dan Scales <danscales@google.com> | 2021-02-24 21:34:21 +0000 |
commit | 8027343b6395536aa8bef8158bad8f4c290dd650 (patch) | |
tree | 836afccdd9c0826eea60c9a3e0e43b2367e119b3 /test/inline.go | |
parent | 6c3f8a2f4730f005850be7fde3a3dac6dc5323a6 (diff) | |
download | go-8027343b6395536aa8bef8158bad8f4c290dd650.tar.gz go-8027343b6395536aa8bef8158bad8f4c290dd650.zip |
cmd/compile: disable inlining functions with closures for now
Added a flag '-d=inlfuncswithclosures=1' to allow inlining functions with
closures, and change the default to off for now, until #44370 is fixed.
Updates #44370.
Change-Id: Ic17723aa5c091d91f5f5004d8b63ec7125257acf
Reviewed-on: https://go-review.googlesource.com/c/go/+/296049
Run-TryBot: Dan Scales <danscales@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Dan Scales <danscales@google.com>
Diffstat (limited to 'test/inline.go')
-rw-r--r-- | test/inline.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/inline.go b/test/inline.go index a79f5589fb..44c746b282 100644 --- a/test/inline.go +++ b/test/inline.go @@ -1,4 +1,4 @@ -// errorcheck -0 -m +// errorcheck -0 -m -d=inlfuncswithclosures=1 // Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style |