Skip to content

Conversation

phausler
Copy link
Contributor

@phausler phausler commented Feb 4, 2021

SILGen verification crash when no other async functions are called in a function body not marked as async when a for-await-in syntax is used. This corrects the diagnostics to ensure that the type check effects sees the proper async call that the for-await-in syntax infers.

for-await-in syntax was missing a diagnistic hint for inserting a try when the protocol conformance of the sequence shows a potential of throwing. (also there was a superfluous check for the nominal type in that type check (which was removed).

for-await-in syntax and for-try-await-in syntax did not infer async or throwing to closure constraints, both were added to properly identify the asyncy-ness/throwy-ness of the iteration.

Resolves:
rdar://73952786
rdar://73883058
rdar://73953266
rdar://73995416
rdar://74008250

…de-gen scenarios and improve diagnostics

SILGen verification crash when no other async functions are called in a function body not marked as async when a for-await-in syntax is used. This corrects the diagnostics to ensure that the type check effects sees the proper async call that the for-await-in syntax infers.

for-await-in syntax was missing a diagnistic hint for inserting a try when the protocol conformance of the sequence shows a potential of throwing. (also there was a superfluous check for the nominal type in that type check (which was removed).

for-await-in syntax and for-try-await-in syntax did not infer async or throwing to closure constraints, both were added to properly identify the asyncy-ness/throwy-ness of the iteration.
@phausler phausler requested a review from slavapestov February 4, 2021 17:24
@phausler
Copy link
Contributor Author

phausler commented Feb 4, 2021

@swift-ci please smoke test

@phausler
Copy link
Contributor Author

phausler commented Feb 4, 2021

ooh that is a fun error from windows:

fatal: not a git repository (or any of the parent directories): .git
error: https://github.com/apple/swift.git did not send all necessary objects

fatal: not a git repository (or any of the parent directories): .git

network failure?

@phausler
Copy link
Contributor Author

phausler commented Feb 4, 2021

Mac failure is:

/Users/buildnode/jenkins/workspace/swift-PR-macos-smoke-test/branch-main/swiftpm/Sources/Build/SPMSwiftDriverExecutor.swift:80:39: error: value of type '[Job.ArgTemplate]' has no member 'joinedArguments'
10:51:18       result += " # \(job.commandLine.joinedArguments)"
10:51:18                       ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
10:51:18 [14/21][ 66%][34.489s] Linking Swift shared library lib/libXcodeproj.dylib
10:51:18 ninja: build stopped: subcommand failed.

@phausler
Copy link
Contributor Author

phausler commented Feb 4, 2021

@swift-ci please smoke test

@phausler
Copy link
Contributor Author

phausler commented Feb 4, 2021

@swift-ci please smoke test

@phausler
Copy link
Contributor Author

phausler commented Feb 5, 2021

@swift-ci Please Build Toolchain macOS Platform

@DougGregor
Copy link
Member

@swift-ci please smoke test

@DougGregor
Copy link
Member

Toolchain build had a strange error:

20:52:08 fatal error
20:52:08 : module map file '/Users/buildnode/jenkins/workspace/swift-PR-toolchain-osx/branch-main/buildbot_osx/swiftpm-macosx-x86_64/apple/Intermediates.noindex/GeneratedModuleMaps/macosx/CCryptoBoringSSL.modulemap' not found

@DougGregor DougGregor merged commit faec07e into swiftlang:main Feb 6, 2021
@kylemacomber
Copy link
Contributor

@swift-ci Please Build Toolchain macOS Platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants