Skip to content

fix issues preventing overlay from compiling due to SE-0025 #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/swift/Data.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct DispatchData : RandomAccessCollection {
// which is only made available on platforms with Objective-C.
case custom(DispatchQueue?, () -> Void)

private var _deallocator: (DispatchQueue?, @convention(block) () -> Void) {
fileprivate var _deallocator: (DispatchQueue?, @convention(block) () -> Void) {
switch self {
case .free: return (nil, _dispatch_data_destructor_free())
case .unmap: return (nil, _dispatch_data_destructor_munmap())
Expand Down
6 changes: 3 additions & 3 deletions src/swift/Queue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public struct DispatchQueueAttributes : OptionSet {
public static let serial = DispatchQueueAttributes(rawValue: 1<<0)
public static let concurrent = DispatchQueueAttributes(rawValue: 1<<1)

private var _translatedValue: DispatchQueue.Attributes {
fileprivate var _translatedValue: DispatchQueue.Attributes {
if self.contains(.concurrent) { return .concurrent }
return []
}
Expand All @@ -48,7 +48,7 @@ public extension DispatchQueue {
@available(OSX 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *)
public static let initiallyInactive = Attributes(rawValue: 1<<2)

private func _attr() -> dispatch_queue_attr_t? {
fileprivate func _attr() -> dispatch_queue_attr_t? {
var attr: dispatch_queue_attr_t? = nil

if self.contains(.concurrent) {
Expand Down Expand Up @@ -95,7 +95,7 @@ public extension DispatchQueue {
public enum GlobalQueueDeprecatedPriority {
case qosBackground

private var _translatedValue: DispatchQoS.QoSClass {
fileprivate var _translatedValue: DispatchQoS.QoSClass {
switch self {
case .qosBackground: return .background
}
Expand Down
4 changes: 2 additions & 2 deletions src/swift/Time.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public struct DispatchTime : Comparable {

public static let distantFuture = DispatchTime(rawValue: ~0)

private init(rawValue: dispatch_time_t) {
fileprivate init(rawValue: dispatch_time_t) {
self.rawValue = rawValue
}

Expand Down Expand Up @@ -64,7 +64,7 @@ public struct DispatchWallTime : Comparable {

public static let distantFuture = DispatchWallTime(rawValue: ~0)

private init(rawValue: dispatch_time_t) {
fileprivate init(rawValue: dispatch_time_t) {
self.rawValue = rawValue
}

Expand Down