Skip to content

Commit a102419

Browse files
committed
internal/mod/mvs/internal/...: remove ignore build tags
These packages are going to be used by internal/mod/mvs in the next CL (https://cuelang.org/cl/1168705). For #2330. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I55f55282b95c88bedf6dcc0041e32c1e1a16b84c Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1168792 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent 38cf584 commit a102419

File tree

7 files changed

+2
-52
lines changed

7 files changed

+2
-52
lines changed

internal/mod/mvs/internal/par/atomic_go1.18.go

-30
This file was deleted.

internal/mod/mvs/internal/par/atomic_go1.19.go

-11
This file was deleted.

internal/mod/mvs/internal/par/queue.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build ignore
2-
31
// Copyright 2020 The Go Authors. All rights reserved.
42
// Use of this source code is governed by a BSD-style
53
// license that can be found in the LICENSE file.

internal/mod/mvs/internal/par/queue_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build ignore
2-
31
// Copyright 2020 The Go Authors. All rights reserved.
42
// Use of this source code is governed by a BSD-style
53
// license that can be found in the LICENSE file.

internal/mod/mvs/internal/par/work.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build ignore
2-
31
// Copyright 2018 The Go Authors. All rights reserved.
42
// Use of this source code is governed by a BSD-style
53
// license that can be found in the LICENSE file.
@@ -11,6 +9,7 @@ import (
119
"errors"
1210
"math/rand"
1311
"sync"
12+
"sync/atomic"
1413
)
1514

1615
// Work manages a set of work items to be executed in parallel, at most once each.
@@ -141,7 +140,7 @@ type Cache[K comparable, V any] struct {
141140
}
142141

143142
type cacheEntry[V any] struct {
144-
done atomicBool
143+
done atomic.Bool
145144
mu sync.Mutex
146145
result V
147146
}

internal/mod/mvs/internal/par/work_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build ignore
2-
31
// Copyright 2018 The Go Authors. All rights reserved.
42
// Use of this source code is governed by a BSD-style
53
// license that can be found in the LICENSE file.

internal/mod/mvs/internal/slices/slices.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build ignore
2-
31
// Copyright 2023 The Go Authors. All rights reserved.
42
// Use of this source code is governed by a BSD-style
53
// license that can be found in the LICENSE file.

0 commit comments

Comments
 (0)