With Swift 5.9 our uses of the index C APIs warned with:
.../Sources/IndexStore/IndexStore.swift:299:66: warning: forming 'UnsafeMutableRawPointer' to a variable of type '(SymbolOccurrence, (Symbol, SymbolRoles) -> ())'; this is likely incorrect because '(SymbolOccurrence, (Symbol, SymbolRoles) -> ())' may contain an object reference.
And in our case things definitely contained object references. Assuming
this warning is valid I guess we were just lucky with our usage before.
Now we pass through a Context object that handles the state for us
instead.
With Swift 5.9 our uses of the index C APIs warned with:
And in our case things definitely contained object references. Assuming this warning is valid I guess we were just lucky with our usage before. Now we pass through a Context object that handles the state for us instead.