Skip to content

Fix InternalImportsByDefault diagnostics in _AsyncFileSystem #7895

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
Aug 20, 2024
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
4 changes: 2 additions & 2 deletions Sources/_AsyncFileSystem/AsyncFileSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
//===----------------------------------------------------------------------===//

import protocol _Concurrency.Actor
@preconcurrency import struct SystemPackage.Errno
@preconcurrency import struct SystemPackage.FilePath
@preconcurrency package import struct SystemPackage.Errno
@preconcurrency package import struct SystemPackage.FilePath

/// An abstract file system protocol with first-class support for Swift Concurrency.
package protocol AsyncFileSystem: Actor {
Expand Down
2 changes: 1 addition & 1 deletion Sources/_AsyncFileSystem/MockFileSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//
//===----------------------------------------------------------------------===//

@preconcurrency import struct SystemPackage.FilePath
@preconcurrency package import struct SystemPackage.FilePath

/// In-memory implementation of `AsyncFileSystem` for mocking and testing purposes.
package actor MockFileSystem: AsyncFileSystem {
Expand Down
2 changes: 1 addition & 1 deletion Sources/_AsyncFileSystem/OpenReadableFile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//===----------------------------------------------------------------------===//

internal import class Dispatch.DispatchQueue
import struct SystemPackage.FileDescriptor
internal import struct SystemPackage.FileDescriptor

/// A read-only thread-safe handle to an open file.
package struct OpenReadableFile: Sendable {
Expand Down
4 changes: 2 additions & 2 deletions Sources/_AsyncFileSystem/OpenWritableFile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
//===----------------------------------------------------------------------===//

internal import class Dispatch.DispatchQueue
@preconcurrency import struct SystemPackage.FileDescriptor
import struct SystemPackage.FilePath
@preconcurrency internal import struct SystemPackage.FileDescriptor
internal import struct SystemPackage.FilePath

/// A write-only thread-safe handle to an open file.
package actor OpenWritableFile: WritableStream {
Expand Down
2 changes: 1 addition & 1 deletion Sources/_AsyncFileSystem/ReadableFileStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//===----------------------------------------------------------------------===//

import _Concurrency
import SystemPackage
internal import SystemPackage
internal import class Dispatch.DispatchQueue

/// Type-erasure wrapper over underlying file system readable streams.
Expand Down