File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
package module
2
2
3
3
import (
4
- "slices"
5
4
"strings"
6
5
"sync"
7
6
@@ -96,9 +95,9 @@ func (c *resolutionCache[T]) appendLookupLocations(resolved T, failedLookupLocat
96
95
c .mu .Lock ()
97
96
defer c .mu .Unlock ()
98
97
lookupLocations := c .lookupLocations [resolved ]
99
- lookupLocations .FailedLookupLocations = slices . Concat (lookupLocations .FailedLookupLocations , failedLookupLocations )
100
- lookupLocations .AffectingLocations = slices . Concat (lookupLocations .AffectingLocations , affectingLocations )
101
- lookupLocations .ResolutionDiagnostics = slices . Concat (lookupLocations .ResolutionDiagnostics , resolutionDiagnostics )
98
+ lookupLocations .FailedLookupLocations = append (lookupLocations .FailedLookupLocations , failedLookupLocations ... )
99
+ lookupLocations .AffectingLocations = append (lookupLocations .AffectingLocations , affectingLocations ... )
100
+ lookupLocations .ResolutionDiagnostics = append (lookupLocations .ResolutionDiagnostics , resolutionDiagnostics ... )
102
101
}
103
102
104
103
type perDirectoryResolutionCache [T any ] struct {
You can’t perform that action at this time.
0 commit comments