Skip to content

[pull] swiftwasm from main #3663

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 26 commits into from
Oct 6, 2021
Merged

[pull] swiftwasm from main #3663

merged 26 commits into from
Oct 6, 2021

Conversation

pull[bot]
Copy link

@pull pull bot commented Oct 6, 2021

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

hamishknight and others added 26 commits October 1, 2021 12:54
We need to be looking at the callee locator here
for the recorded IUO unwrap.

SR-15249
Add `OverloadChoice::isAnyDynamicMemberLookup`,
and use it to clean up a couple of places.
Look at the callee locator to add some additional
info to the diagnostic.
Solution application needs to set interface types for variables
declared in a `case` statement, otherwise this would lead to crashes
in SILGen.
This patch forces the main function to be protected behind MainActor
isolation. If no actor isolation is specified, the main function will
implicitly have MainActor isolation.
Putting the main function under the MainActor appears to have
accidentally "fixed" the resilience tests on Windows. I've put the entry
to those tests under a separate task to try and avoid accidentally
hiding the bug behind the main actor.
Tests for crashes aren't available on WebAssembly/WASI since there's no way to intercept traps or crashes on this platform. Trapping causes the whole Wasm VM to shut down with no way to recover from within the test code.
[Serialization] Fix merge character artifact
Replace inferrable types before binding literals to contextual type
[ResultBuilders] Make sure that `case` body variables get types
… elts and then perform sub-initialization.

Previsouly we were evaluating a tuple elt and then performing the relevant
sub-initialization. The problem is that a sub-initialization can invoke code
that could perform an early exit cleanup. So any later tuple-elements that may
need to be cleaned up along such path will not have had their cleanups
initialized, resulting in a leak along such paths.

With this commit, we instead evaluate all of the tuple elements and only them
perform the sub-initialization ensuring that any early exits clean up all of the
tuple elements.

rdar://83770295
…-mains

Require MainActor isolation on main() function
…f21dca3acd548f55c7bea18

[silgen] When initializing tuples in SILGen, first evaluate all tuple elts and then perform sub-initialization.
…ect-backdeploy

Stop re-exporting SwiftNativeNSObject from _Concurrency
@MaxDesiatov MaxDesiatov enabled auto-merge October 6, 2021 13:41
@MaxDesiatov MaxDesiatov merged commit 64ab350 into swiftwasm Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.