Skip to content

Commit fafe807

Browse files
ydnardeadprogram
authored andcommitted
loader, iter, reflect: use build tags for package iter and iter methods on reflect.Value
1 parent a2be2f3 commit fafe807

File tree

3 files changed

+2
-21
lines changed

3 files changed

+2
-21
lines changed

loader/goroot.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,6 @@ func pathsToOverride(goMinor int, needsSyscallPackage bool) map[string]bool {
261261
"unique/": false,
262262
}
263263

264-
if goMinor <= 22 {
265-
paths["iter]"] = false
266-
}
267-
268264
if goMinor >= 19 {
269265
paths["crypto/internal/"] = true
270266
paths["crypto/internal/boring/"] = true

src/iter/iter.go

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/reflect/iter.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build go1.23
2+
13
// Copyright 2024 The Go Authors. All rights reserved.
24
// Use of this source code is governed by a BSD-style
35
// license that can be found in the LICENSE file.

0 commit comments

Comments
 (0)