Skip to content

[5.3][Diagnostics] Do more checking before recording force downcast fix #33273

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 1 commit into from
Aug 4, 2020

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 3, 2020

Cherry-pick of #33272


  • Explanation:

Solver should do more checking upfront before recording
force downcast fix, to make sure that it's indeed always
applicable when recorded, otherwise it would be possible
to misdiagnose or omit diagnostics in certain situations.

  • Scope: Limited to situations when it is possible to find an ObjC bridged type
    for right-hand side of the conversion ("to" type) but the other side
    ("from" type) can't be bridged to such a type.

  • Resolves: rdar://problem/65254452

  • Risk: Very Low

  • Testing: Added regression tests

  • Reviewer: @hborla

Resolves: rdar://problem/65254452
(cherry picked from commit d89c096)

Solver should do more checking upfront before recording
`force downcast` fix, to make sure that it's indeed always
applicable when recorded, otherwise it would be possible
to misdiagnose or omit diagnostics in certain situations.

Resolves: rdar://problem/65254452
(cherry picked from commit d89c096)
@xedin xedin added the r5.3 label Aug 3, 2020
@xedin xedin requested a review from a team as a code owner August 3, 2020 23:56
@xedin
Copy link
Contributor Author

xedin commented Aug 3, 2020

@swift-ci please test

@tkremenek tkremenek merged commit a277175 into swiftlang:release/5.3 Aug 4, 2020
@AnthonyLatsis AnthonyLatsis added swift 5.3 🍒 release cherry pick Flag: Release branch cherry picks labels Jan 8, 2023
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 5.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants