Skip to content

[6.2] Diagnostic message: suppress printing "requires LifetimeDependence" #81686

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

Open
wants to merge 1 commit into
base: release/6.2
Choose a base branch
from

Conversation

atrick
Copy link
Contributor

@atrick atrick commented May 21, 2025

Adopters of the new Span and MutableSpan types should not encounter information
about an experimental feature when they attempt to use these types in
unsupported ways, such as simply returning them from a function.

Fixes rdar://151788740 (Diagnostic message: suppress printing "requires
'-enable-experimental-feature LifetimeDependence'")

(cherry picked from commit 50a69bc)

--- CCC ---

Explanation: Adopters of the new Span and MutableSpan types should not
encounter information about an experimental feature when they attempt
to use these types in unsupported ways, such as simply returning one
from a function.

Scope: This change only affects the text of a diagnostic message that
is new in this release. This message will only be seen by adopters of
the new Span and MutableSpan types.

Radar/SR Issue: rdar://151788740 (Diagnostic message: suppress
printing "requires '-enable-experimental-feature LifetimeDependence'")

main PR: #81685

Risk: None

Testing: Updated several unit tests for this diagnostic.

Reviewer: Joe Groff

@atrick atrick requested a review from a team as a code owner May 21, 2025 18:44
@atrick atrick added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels May 21, 2025
@atrick atrick requested review from jckarter, hborla, meg-gupta and tbkka May 21, 2025 18:45
@atrick
Copy link
Contributor Author

atrick commented May 21, 2025

@swift-ci test

@atrick atrick requested a review from natecook1000 May 21, 2025 19:40
@atrick atrick enabled auto-merge May 21, 2025 23:48
Adopters of the new Span and MutableSpan types should not encounter information
about an experimental feature when they attempt to use these types in
unsupported ways, such as simply returning them from a function.

Fixes rdar://151788740 (Diagnostic message: suppress printing "requires
'-enable-experimental-feature LifetimeDependence'")

(cherry picked from commit 6cc1a8d)
@atrick atrick force-pushed the 62-lifedep-unprint-feature branch from f890a8d to f0ec734 Compare May 22, 2025 06:01
@atrick
Copy link
Contributor Author

atrick commented May 22, 2025

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants