Skip to content

Merge main 2022-04-01 #4398

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 341 commits into from
Apr 1, 2022
Merged

Merge main 2022-04-01 #4398

merged 341 commits into from
Apr 1, 2022

Conversation

kateinoigakukun
Copy link
Member

No description provided.

kavon and others added 30 commits March 24, 2022 21:53
[distributed] Require explicit assignment of `actorSystem`
Add the length of the longest *initial* rule to the rule length limit
before comparing.

Fixes https://bugs.swift.org/browse/SR-16024.
if there is a non-null callee.

Otherwise, getParameterList(callee) will crash if the callee is a closure.
Closures can't have default arguments anyway, so there's no need to
attempt this new inference.
…expr-solver-based

[CodeCompletion] Migrate AfterPoundExprCompletion to solver-based
is no parameter list for the callee.

This can happen when the callee is a closure that has been assigned to
a variable.
[Demangler] Make Node::addChild(NULL, ...) always assert.
[Distributed] Fix generic actors and distributed funcs returning those generics
…stem-flagged

TypeWitnessSystem: Disable by default
The release-devirtualizer must not run on the same alloc_ref twice.
This is a very rare case, but if it happens it's a very bad thing, because it results in a double-free crash.

The fix is to detect that a dealloc_ref instruction (although it isn't "releasing"), does a memory deallocation.

Found by doing some unrelated experiments.
[Distributed] Review followups, cleanups
…euristic

RequirementMachine: Tweak rule limit non-termination heuristic
…ference-cycle

RequirementMachine: Fix subtle bug in isRecursivelyConstructingRequirementMachine()
using `.. code-block:: swift` instead of `::` we can turn code into more prettier and legible form!
…lays

[SourceKit] Make sure to use overlays when reading files
[Concurrency] Improve diagnostic for inout params with Sendable closures
Some of the functions inside the SWIFT_STDLIB_HAS_TYPE_PRINTING conditional
are now needed even in the minimal build as a result of swiftlang#41452.

rdar://90839754
rintaro and others added 25 commits March 31, 2022 09:53
…mpilermodules-rdar90236990

[SourceKit] Link SwiftCompilerModules to SourceKit
SILGen: Emit async let entry points at correct abstraction level.
[SE-0345] Support `if let foo {` optional binding conditions
As the _MatchingEngine module no longer contains the matching engine, this patch renames this module to describe its role more accurately. Because this module primarily contains the AST and the regex parsing logic, I propose we rename it to "_RegexParser".

Also renames the ExperimentalRegex module in SwiftCompilerSources to _RegexParser for consistency. This would prevent errors if sources in _RegexParser used qualified lookup with the module name.
Frontend: flip the default of whether importing SPI_AVAILABLE from clang
... because marker protocols have no witness tables.

Fixes rdar://91011153.
- Don't pass 'verify' since it's now the default
- Update tests where diagnostics changed in a correct way to pass 'on' instead
- Delete compiler_scale/explicit_requirements_perf.swift since it's not testing anything with the requirement machine
…r-protocol

An `@objc` protocol can inherit from a marker protocol
swiftlang#42094 added a new `IRGenOptions::CompactAbsoluteFunctionPointer` field, but did not initialize it. We subsequently started seeing flaky test failures in LLDB tests that tried to resolve relocations in metadata, so we think this may have resulted in the option sometimes being set to `true` in the REPL.
…ures

Another important step towards implementing SE-0338 semantics.
Fixes rdar://90950355.
…type-preconcurrency

Fix the "early" computation of a return type to respect `@preconcurrency`
Fix uninitialized IRGenOptions field
…for-diagnostics

Update -requirement-machine-* flags in various tests
rdar://91132726
rdar://91133163
…ated-sendable-closure-capture

Don't diagnose non-Sendable captures in actor-isolated @sendable closures
…ark-executable

[Test] Added REQUIRES line to two.
…atures-enable

LangOptions: Change default for RequirementMachineAbstractSignatures from Verify to Enabled
@kateinoigakukun kateinoigakukun merged commit 8a5a820 into swiftwasm Apr 1, 2022
@kateinoigakukun kateinoigakukun deleted the katei/merge-main-2022-04-01 branch April 20, 2022 08:46
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.