Skip to content
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

[ConstraintSystem] Be more principled about recording r-value -> l-value fix #26852

Merged
merged 2 commits into from
Aug 28, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 26, 2019

Instead of recording TreatRValueAsLValue fix directly inside
matchTypes, let's move towards recording it specifically for
each possible case in repairFailures which makes it a lot
easier to determine what other fixes could be applied (if any).

If type of the assignment destination expression has been determined
to be a r-value type or a type variable which can't be bound to an
l-value type, let's fix the type and record a fix for that early.
@xedin
Copy link
Contributor Author

xedin commented Aug 26, 2019

@swift-ci please smoke test

@xedin xedin force-pushed the refactor-treat-r-as-l-value branch from e348ebf to 0707c2c Compare August 26, 2019 22:12
@xedin
Copy link
Contributor Author

xedin commented Aug 26, 2019

@swift-ci please smoke test

@xedin xedin force-pushed the refactor-treat-r-as-l-value branch from 0707c2c to e706ee3 Compare August 27, 2019 00:45
@xedin
Copy link
Contributor Author

xedin commented Aug 27, 2019

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Aug 27, 2019

@swift-ci please smoke test Linux platform

…lue fix

Instead of recording `TreatRValueAsLValue` fix directly inside
`matchTypes`, let's move towards recording it specifically for
each possible case in `repairFailures` which makes it a lot
easier to determine what other fixes could be applied (if any).
@xedin xedin force-pushed the refactor-treat-r-as-l-value branch from e706ee3 to 1b397ed Compare August 27, 2019 20:13
@xedin
Copy link
Contributor Author

xedin commented Aug 27, 2019

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Aug 27, 2019

@swift-ci please test source compatibility

@xedin
Copy link
Contributor Author

xedin commented Aug 27, 2019

@swift-ci please smoke test

@xedin xedin merged commit 7b8fb88 into swiftlang:master Aug 28, 2019
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.

2 participants