Skip to content

Commit 2f1b076

Browse files
adonovangopherbot
authored andcommitted
x/tools: add //go:fix inline
This CL adds //go:fix inline annotations to some deprecated functions that may be inlined. Updates golang/go#32816 Change-Id: I2e8e82bee054721f266506af24ea39cf2e8b7983 Reviewed-on: https://go-review.googlesource.com/c/tools/+/649056 LUCI-TryBot-Result: Go LUCI <[email protected]> Commit-Queue: Alan Donovan <[email protected]> Auto-Submit: Alan Donovan <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]>
1 parent 86f13a9 commit 2f1b076

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

go/ast/astutil/util.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ import "go/ast"
88

99
// Unparen returns e with any enclosing parentheses stripped.
1010
// Deprecated: use [ast.Unparen].
11+
//
12+
//go:fix inline
1113
func Unparen(e ast.Expr) ast.Expr { return ast.Unparen(e) }

go/packages/packages.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ const (
141141
LoadAllSyntax = LoadSyntax | NeedDeps
142142

143143
// Deprecated: NeedExportsFile is a historical misspelling of NeedExportFile.
144+
//
145+
//go:fix inline
144146
NeedExportsFile = NeedExportFile
145147
)
146148

0 commit comments

Comments
 (0)