Skip to content

Fix bug with lexical recursive property. #61042

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

Conversation

nate-chandler
Copy link
Contributor

When setting properties to be non-trivial, also set them to be lexical. And then apply overrides from attributes.

When examining non-trivial types which were non-lexical, when a field
lacks a field decl (as happens with tuples), whether the type was
annotated @_eagerMove was overlooked, resulting in incorrectly
determining that a leaf was lexical.
@nate-chandler nate-chandler force-pushed the fix-lexical-recursive-properties-bug branch from a2f062b to 02459d0 Compare September 11, 2022 22:46
In addition to starting all RecursiveProperties values which are
NonTrivial as Lexical, also mark instances of the structs which are
modified to become NonTrivial to simultaneously become Lexical.
@nate-chandler nate-chandler force-pushed the fix-lexical-recursive-properties-bug branch from 02459d0 to af6749e Compare September 11, 2022 23:11
@nate-chandler
Copy link
Contributor Author

@swift-ci please test and merge

@nate-chandler
Copy link
Contributor Author

@swift-ci please test windows platform

@nate-chandler
Copy link
Contributor Author

@swift-ci please test macOS platform

@nate-chandler
Copy link
Contributor Author

@swift-ci please test windows platform

@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler nate-chandler merged commit 5372177 into swiftlang:main Sep 12, 2022
@nate-chandler nate-chandler deleted the fix-lexical-recursive-properties-bug branch September 12, 2022 20:14
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.

1 participant