Skip to content

[Parse] Disallow use of actor as a declaration modifier #37516

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
May 21, 2021

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 19, 2021

actor is a standalone contextual keyword now and should
be treated as such, actor class is no longer allowed
and results in a parse error.

Resolves: rdar://75753598

`actor` is a standalone contextual keyword now and should
be treated as such, `actor class` is no longer allowed
and results in a parse error.

Resolves: rdar://75753598
@xedin xedin requested a review from etcwilde May 19, 2021 23:21
@xedin
Copy link
Contributor Author

xedin commented May 19, 2021

@etcwilde I want to cherry-pick this to 5.5 so I have kept the attribute itself in order to minimize changes but going to follow up for main if that's okay?...

Copy link
Member

@etcwilde etcwilde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this looks good. I look forward to seeing the the backtracking scope and the isStartOfSwiftDecl bit go once the attribute goes.

@xedin
Copy link
Contributor Author

xedin commented May 19, 2021

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - aeddab4

@xedin
Copy link
Contributor Author

xedin commented May 20, 2021

@swift-ci please test Linux platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - aeddab4

@xedin
Copy link
Contributor Author

xedin commented May 20, 2021

@swift-ci please test Linux platform

2 similar comments
@xedin
Copy link
Contributor Author

xedin commented May 20, 2021

@swift-ci please test Linux platform

@xedin
Copy link
Contributor Author

xedin commented May 20, 2021

@swift-ci please test Linux platform

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.

3 participants