Giter Site home page Giter Site logo

Comments (4)

rxwei avatar rxwei commented on June 19, 2024

Removing @_alwaysEmitIntoClient gets rid of the last error.

--
/Volumes/Media/Development/Swift/swift-source/build/Ninja-ReleaseAssert/swift-macosx-x86_64/lib/swift/macosx/_MatchingEngine.swiftmodule/x86_64-apple-macos.swiftinterface:1460:1: error: type 'TypedIndex<C, 👻>' does not conform to protocol 'RangeReplaceableCollection'
extension _MatchingEngine.TypedIndex : Swift.RangeReplaceableCollection where C : Swift.RangeReplaceableCollection {
^
/Volumes/Media/Development/Swift/swift-source/build/Ninja-ReleaseAssert/swift-macosx-x86_64/lib/swift/macosx/_MatchingEngine.swiftmodule/x86_64-apple-macos.swiftinterface:1460:1: error: unavailable instance method 'replaceSubrange(_:with:)' was used to satisfy a requirement of protocol 'RangeReplaceableCollection'
extension _MatchingEngine.TypedIndex : Swift.RangeReplaceableCollection where C : Swift.RangeReplaceableCollection {
^
Swift.RangeReplaceableCollection:4:26: note: 'replaceSubrange(_:with:)' declared here
    public mutating func replaceSubrange<C>(_ subrange: Range<Self.Index>, with newElements: C) where C : Collection, Self.Element == C.Element
                         ^
Swift.RangeReplaceableCollection:4:19: note: requirement 'replaceSubrange(_:with:)' declared here
    mutating func replaceSubrange<C>(_ subrange: Range<Self.Index>, with newElements: __owned C) where C : Collection, Self.Element == C.Element
                  ^
/Volumes/Media/Development/Swift/swift-source/build/Ninja-ReleaseAssert/swift-macosx-x86_64/lib/swift/macosx/_MatchingEngine.swiftmodule/x86_64-apple-macos.swiftinterface:1:1: error: failed to build module '_MatchingEngine' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

The remaining error still claims that it's using the unavailable'd method. Not sure why it did not resolve to the local definition of replaceSubrange(_:with:).

from swift-experimental-string-processing.

rxwei avatar rxwei commented on June 19, 2024

@_implements(RangeReplaceableCollection, replaceSubrange(_:with:)) doesn't work either:

Swift.RangeReplaceableCollection:4:19: Multiple matching functions named 'replaceSubrange(_:with:)' with type '<C> (Range<TypedIndex<C, 👻>.Index>, with: __owned C) -> ()' (aka '<C> (Range<TypedInt<👻>>, with: __owned C) -> ()')
TypedIndex.swift:84:24: Candidate exactly matches [with SubSequence = TypedIndex<C, 👻>.SubSequence]
TypedIndex.swift:84:24: Candidate exactly matches [with SubSequence = TypedIndex<C, 👻>.SubSequence]
TypedIndex.swift:84:24: Candidate exactly matches [with SubSequence = TypedIndex<C, 👻>.SubSequence]
TypedIndex.swift:84:24: Candidate exactly matches [with SubSequence = TypedIndex<C, 👻>.SubSequence]
Swift.RangeReplaceableCollection:2:37: Candidate exactly matches [with SubSequence = TypedIndex<C, 👻>.SubSequence]

from swift-experimental-string-processing.

milseman avatar milseman commented on June 19, 2024

We can drop the attributes. They were for when Util was a separate module, and currently only benefit prototypes. Prototypes can issue function calls. I can look into removing RRC, because it mostly just needs append IIRC

from swift-experimental-string-processing.

milseman avatar milseman commented on June 19, 2024

@rxwei is there anything left to track here, or should we close this?

from swift-experimental-string-processing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.