Skip to content

Conversation

@bishabosha
Copy link
Member

@bishabosha bishabosha commented Dec 5, 2025

Now that runtimeChecked will be stable in 3.8.0, suggest .runtimeChecked instead of : @unchecked

also, change the patch applied under 3.2-migration.

Edit: pre 3.8, the warning and patch still suggest to use : @unchecked. From 3.8 onwards the warning and patch will apply .runtimeChecked instead

fixes #23946

suggest `.runtimeChecked` instead of `: @unchecked`

also, change the patch applied under 3.2-migration.
@bishabosha bishabosha added the backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. label Dec 5, 2025
@bishabosha bishabosha requested review from a team and Gedochao December 5, 2025 09:11
@bishabosha
Copy link
Member Author

bishabosha commented Dec 5, 2025

I dont remember if there is such a policy that migration patches are frozen (i.e. if the actual change should be a rewrite from : unchecked to .runtimeChecked under a 3.8-migration mode.

in which case perhaps there can be 2 stages. The message mentions a patch applied under 3.8-migration, then at some later point in the future when : @unchecked is deprecated, introduce a rewrite from that to .runtimeChecked?

Edit: the second commit implements this by preserving behavior for pre-3.8 source mode. from 3.8 only the new message/patch is applied

@bishabosha bishabosha force-pushed the unchecked-to-runtimeChecked-warning-messages branch from 693e9e5 to 3770894 Compare December 5, 2025 10:44
@bishabosha bishabosha added this to the 3.8.0 milestone Dec 5, 2025
patch and warning message text will still suggest/replace `: @unchecked` pre 3.8.

from 3.8-migration onwards, the message/patch suggests `.runtimeChecked`

This preserves behavior under older source versions.
@bishabosha bishabosha force-pushed the unchecked-to-runtimeChecked-warning-messages branch from 3770894 to e944b5e Compare December 5, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing .runtimeChecked still gives warning and advice about adding : @unchecked

1 participant