Skip to content

Commit 846e957

Browse files
committed
[Foundation] Switch to private imports of CoreFoundation shims
1 parent cdd9956 commit 846e957

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

stdlib/public/Darwin/Foundation/CharacterSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
@_exported import Foundation // Clang module
1414
import CoreFoundation
15-
import _SwiftCoreFoundationOverlayShims
15+
@_implementationOnly import _SwiftCoreFoundationOverlayShims
1616
@_implementationOnly import _SwiftFoundationOverlayShims
1717

1818
private func _utfRangeToCFRange(_ inRange : Range<Unicode.Scalar>) -> CFRange {

stdlib/public/Darwin/Foundation/Data.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ internal func __NSDataIsCompact(_ data: NSData) -> Bool {
4242

4343
@_exported import Foundation // Clang module
4444
@_implementationOnly import _SwiftFoundationOverlayShims
45-
import _SwiftCoreFoundationOverlayShims
45+
@_implementationOnly import _SwiftCoreFoundationOverlayShims
4646

4747
internal func __NSDataIsCompact(_ data: NSData) -> Bool {
4848
if #available(OSX 10.10, iOS 8.0, tvOS 9.0, watchOS 2.0, *) {

stdlib/public/Darwin/Foundation/Date.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
@_exported import Foundation // Clang module
1414
import CoreFoundation
15-
import _SwiftCoreFoundationOverlayShims
15+
@_implementationOnly import _SwiftCoreFoundationOverlayShims
1616

1717
/**
1818
`Date` represents a single point in time.

stdlib/public/Darwin/Foundation/DateInterval.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
@_exported import Foundation // Clang module
14-
import _SwiftCoreFoundationOverlayShims
14+
@_implementationOnly import _SwiftCoreFoundationOverlayShims
1515

1616
/// DateInterval represents a closed date interval in the form of [startDate, endDate]. It is possible for the start and end dates to be the same with a duration of 0. DateInterval does not support reverse intervals i.e. intervals where the duration is less than 0 and the end date occurs earlier in time than the start date.
1717
@available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)

stdlib/public/Darwin/Foundation/Decimal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
@_exported import Foundation // Clang module
14-
import _SwiftCoreFoundationOverlayShims
14+
@_implementationOnly import _SwiftCoreFoundationOverlayShims
1515

1616
extension Decimal {
1717
public typealias RoundingMode = NSDecimalNumber.RoundingMode

stdlib/public/Darwin/Foundation/Measurement.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import CoreFoundation
1515
#else
1616
@_exported import Foundation // Clang module
17-
import _SwiftCoreFoundationOverlayShims
17+
@_implementationOnly import _SwiftCoreFoundationOverlayShims
1818
#endif
1919

2020
/// A `Measurement` is a model type that holds a `Double` value associated with a `Unit`.

stdlib/public/Darwin/Foundation/UUID.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
@_exported import Foundation // Clang module
1414
import Darwin.uuid
15-
import _SwiftCoreFoundationOverlayShims
15+
@_implementationOnly import _SwiftCoreFoundationOverlayShims
1616

1717
/// Represents UUID strings, which can be used to uniquely identify types, interfaces, and other items.
1818
@available(macOS 10.8, iOS 6.0, *)

0 commit comments

Comments
 (0)