Skip to content

Conversation

@nickolas-pohilets
Copy link
Contributor

@nickolas-pohilets nickolas-pohilets commented Apr 1, 2025

Changes were originally wrapped into experimental feature, but after proposal was approved, feature was removed and PR applies changes unconditionally.

@rjmccall
Copy link
Contributor

@swift-ci Please build toolchain

@rjmccall
Copy link
Contributor

rjmccall commented May 1, 2025

@swift-ci Please build macOS toolchain

@nickolas-pohilets
Copy link
Contributor Author

@swift-ci Please smoke test

Remaining failures:

DebugInfo/guard-let-scope4.swift
expr/closure/closures.swift
SILGen/capture-transitive.swift
SILGen/dynamic_self.swift
SILGen/unowned-class-bound-generic-parameter.swift
…le weak capture (minor source-breaking change)
Remaining failures:

SILGen/unowned-class-bound-generic-parameter.swift
@nickolas-pohilets
Copy link
Contributor Author

@swift-ci Please clean smoke test macOS platform

@nickolas-pohilets
Copy link
Contributor Author

@swift-ci Please smoke test Linux platform

@nickolas-pohilets
Copy link
Contributor Author

@swift-ci Please smoke test Windows platform

@nickolas-pohilets
Copy link
Contributor Author

@swift-ci Please test macOS platform

@nickolas-pohilets
Copy link
Contributor Author

@swift-ci Please smoke test macOS platform

1 similar comment
@nickolas-pohilets
Copy link
Contributor Author

@swift-ci Please smoke test macOS platform

@nickolas-pohilets
Copy link
Contributor Author

@swift-ci Please smoke test Windows platform

@nickolas-pohilets
Copy link
Contributor Author

Tests fail on Windows in fails because some of the error messages differ in diagnostic spelling non-sendable vs non-Sendable:

# | C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift\test\Concurrency\weak_ref_sendability.swift:52:26: error: incorrect message found
# |   // expected-error@+1 {{stored property 'x' of 'Sendable'-conforming class 'CheckSendability4' has non-sendable type 'NS?'}}
# |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |                          stored property 'x' of 'Sendable'-conforming class 'CheckSendability4' has non-Sendable type 'NS?'

@nickolas-pohilets
Copy link
Contributor Author

@swift-ci Please smoke test

Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title is wrong, since you're not adding an experimental feature anymore. It should probably refer to SE-0481.

@nickolas-pohilets nickolas-pohilets changed the title Added experimental feature to allow weak let and immutable weak captures [SE-0481] Allow weak let and make weak captures immutable May 28, 2025
Copy link
Contributor

@hamishknight hamishknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implicit self diagnostic changes LGTM!

@nickolas-pohilets
Copy link
Contributor Author

@swift-ci Please smoke test

@nickolas-pohilets
Copy link
Contributor Author

@swift-ci Please smoke test macOS platform

Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nickolas-pohilets nickolas-pohilets merged commit 87e536e into swiftlang:main Jun 5, 2025
3 checks passed
@AnthonyLatsis
Copy link
Collaborator

@nickolas-pohilets Please refrain from merging PRs containing merge commits. They unnecessarily convolute the history and — as you may have discovered — make it considerably more painful to move changes across branches.

nickolas-pohilets added a commit to nickolas-pohilets/swift that referenced this pull request Aug 22, 2025
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.

5 participants