Skip to content

Commit 8dda095

Browse files
authored
Merge pull request #3779 from swiftwasm/main
[pull] swiftwasm from main
2 parents 8593be3 + 9ec9431 commit 8dda095

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,9 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
884884
Mangle::ASTMangler Mangler;
885885
std::string Result = Mangler.mangleTypeForDebugger(Ty, Sig);
886886

887-
if (!Opts.DisableRoundTripDebugTypes) {
887+
// TODO(SR-15377): We currently cannot round trip some C++ types.
888+
if (!Opts.DisableRoundTripDebugTypes &&
889+
!Ty->getASTContext().LangOpts.EnableCXXInterop) {
888890
// Make sure we can reconstruct mangled types for the debugger.
889891
#ifndef NDEBUG
890892
auto &Ctx = Ty->getASTContext();

stdlib/public/Distributed/DistributedActor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public protocol AnyActor: Sendable, AnyObject {}
3535
/// distributed actor.
3636
@available(SwiftStdlib 5.5, *)
3737
public protocol DistributedActor:
38-
AnyActor, Identifiable, Hashable, Codable {
38+
AnyActor, Sendable, Identifiable, Hashable, Codable {
3939
/// Resolves the passed in `identity` against the `transport`, returning
4040
/// either a local or remote actor reference.
4141
///
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %target-typecheck-verify-swift -warn-concurrency -enable-experimental-distributed -disable-availability-checking
2+
// REQUIRES: concurrency
3+
// REQUIRES: distributed
4+
5+
import _Distributed
6+
7+
actor Charlie {
8+
// should not cause sendable warnings, Worker is Sendable as implied by DA
9+
func two<Worker>() -> Set<Worker> where Worker: DistributedActor {
10+
[]
11+
}
12+
}

0 commit comments

Comments
 (0)