Skip to content

Commit

Permalink
swift 5.10 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tayloraswift committed Aug 7, 2024
1 parent 4507ea7 commit 4407eb4
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.build
.vscode
.build.ssgc
.github/mongonet/data*
.vscode

/Snippets/_Experiments
20 changes: 10 additions & 10 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-collections.git",
"state" : {
"revision" : "94cf62b3ba8d4bed62680a282d4c25f9c63c2efb",
"version" : "1.1.0"
"revision" : "3d2dc41a01f9e49d84f0a3925fb858bed64f702d",
"version" : "1.1.2"
}
},
{
Expand All @@ -33,35 +33,35 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/tayloraswift/swift-hash",
"state" : {
"revision" : "7798c344afd5a96b689fa9904ad52242a85b5068",
"version" : "0.6.0"
"revision" : "7a3fbb75ec4c88421796faaf0b47f16ffc21b348",
"version" : "0.6.2"
}
},
{
"identity" : "swift-nio",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-nio.git",
"state" : {
"revision" : "359c461e5561d22c6334828806cc25d759ca7aa6",
"version" : "2.65.0"
"revision" : "4c4453b489cf76e6b3b0f300aba663eb78182fad",
"version" : "2.70.0"
}
},
{
"identity" : "swift-nio-ssl",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-nio-ssl.git",
"state" : {
"revision" : "7c381eb6083542b124a6c18fae742f55001dc2b5",
"version" : "2.26.0"
"revision" : "a9fa5efd86e7ce2e5c1b6de113262e58035ca251",
"version" : "2.27.1"
}
},
{
"identity" : "swift-system",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-system.git",
"state" : {
"revision" : "025bcb1165deab2e20d4eaba79967ce73013f496",
"version" : "1.2.1"
"revision" : "d2ba781702a1d8285419c15ee62fd734a9437ff5",
"version" : "1.3.2"
}
},
{
Expand Down
6 changes: 0 additions & 6 deletions Sources/BSONABI/Primitives/BSON.Millisecond.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,3 @@ extension UnixMillisecond
@inlinable public
var value:Int64 { self.index }
}
@available(*, unavailable)
extension UnixMillisecond:ExpressibleByIntegerLiteral
{
@inlinable public
init(integerLiteral:Int64) { self.init(index: integerLiteral) }
}
6 changes: 6 additions & 0 deletions Sources/UnixTime_Atomics/Days (ext).swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import Atomics
import UnixTime

#if swift(>=6.0)
extension Days:@retroactive AtomicValue
{
}
#else
extension Days:AtomicValue
{
}
#endif
6 changes: 6 additions & 0 deletions Sources/UnixTime_Atomics/Milliseconds (ext).swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import Atomics
import UnixTime

#if swift(>=6.0)
extension Milliseconds:@retroactive AtomicValue
{
}
#else
extension Milliseconds:AtomicValue
{
}
#endif
6 changes: 6 additions & 0 deletions Sources/UnixTime_Atomics/Minutes (ext).swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import Atomics
import UnixTime

#if swift(>=6.0)
extension Minutes:@retroactive AtomicValue
{
}
#else
extension Minutes:AtomicValue
{
}
#endif
6 changes: 6 additions & 0 deletions Sources/UnixTime_Atomics/Nanoseconds (ext).swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import Atomics
import UnixTime

#if swift(>=6.0)
extension Nanoseconds:@retroactive AtomicValue
{
}
#else
extension Nanoseconds:AtomicValue
{
}
#endif
6 changes: 6 additions & 0 deletions Sources/UnixTime_Atomics/Seconds (ext).swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import Atomics
import UnixTime

#if swift(>=6.0)
extension Seconds:@retroactive AtomicValue
{
}
#else
extension Seconds:AtomicValue
{
}
#endif

0 comments on commit 4407eb4

Please sign in to comment.