Skip to content

Commit 792f91f

Browse files
committed
internal/refactor/inline: tweak everything test for cgo
We are down to one remaining call in all of x/tools that doesn't inline correctly (due to golang/go#62664). Change-Id: Ic39e60697323ede4565ce190bee69f670e627611 Reviewed-on: https://go-review.googlesource.com/c/tools/+/531456 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Robert Findley <[email protected]>
1 parent 9416299 commit 792f91f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

internal/refactor/inline/everything_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ func TestEverything(t *testing.T) {
153153
"has no body",
154154
"type parameters are not yet",
155155
"line directives",
156+
"cgo-generated",
156157
} {
157158
if strings.Contains(err.Error(), ignore) {
158159
return

internal/refactor/inline/inline.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ func inline(logf func(string, ...any), caller *Caller, callee *gobCallee) (*resu
866866
return res, nil
867867
}
868868

869-
// TODO(adonovan): parameterless call to { stmt; return expr }
869+
// TODO(adonovan): parameterless call to { stmts; return expr }
870870
// from one of these contexts:
871871
// x, y = f()
872872
// x, y := f()

0 commit comments

Comments
 (0)