Skip to content

[ConstraintSystem] Remove RValueAdjustment locator element #34432

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 2 commits into from
Oct 26, 2020

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Oct 26, 2020

It was used for unresolved member and .dynamicType references
as well as a couple of other places, but now unresolved member
references no longer need that due to new implicit "chain result"
AST node and other places could use more precise locators
e.g. new .dynamicType locator or sequence element for for ... in
loops.

xedin added 2 commits October 23, 2020 17:04
Since unresolved members now introduce an implicit expression
during pre-check, there is no need to add a separate r-value
adjustment constraint to connect "tail" of the chain with
chain result.
It was used for unresolved member and `.dynamicType` references
as well as a couple of other places, but now unresolved member
references no longer need that due to new implicit "chain result"
AST node and other places could use more precise locators
e.g. new `.dynamicType` locator or `sequence element` for `for in`
loops.
@xedin xedin requested a review from hborla October 26, 2020 07:45
@xedin
Copy link
Contributor Author

xedin commented Oct 26, 2020

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Oct 26, 2020

@swift-ci please test source compatibility

@xedin
Copy link
Contributor Author

xedin commented Oct 26, 2020

Debug configuration is a UPASS, I have opened a PR on swift-source-compat-suite repo to fix that issue.

@xedin xedin merged commit 92fe04f into swiftlang:main Oct 26, 2020
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