Skip to content

[LexicalLookup] Make GenericParameterScopeSyntax public#3215

Merged
rintaro merged 1 commit intoswiftlang:mainfrom
rintaro:public-generic-param-scope
Jan 16, 2026
Merged

[LexicalLookup] Make GenericParameterScopeSyntax public#3215
rintaro merged 1 commit intoswiftlang:mainfrom
rintaro:public-generic-param-scope

Conversation

@rintaro
Copy link
Member

@rintaro rintaro commented Dec 22, 2025

Using a method in a extension of non-public protocol to witness a public protocol requirement is not allowed in future version of Swift and is diagnosed as a warning in the current main.

Make GenericParameterScopeSyntax a @_spi(Experimetnal) public the same accessibility as the concrete type.

Fixes build failures e.g. https://github.com/swiftlang/swift-syntax/actions/runs/20438687858/job/58726284454#step:14:31
since we're building it with -warnings-as-errors

Using a method in a extension of non-public protocol to witness a
public protocol requirement is not allowed in future version of Swift
and is diagnosed as a warning in the current main.

Make `GenericParameterScopeSyntax` a `@_spi(Experimetnal public)` the
same accessibility as the concrete type.
@rintaro
Copy link
Member Author

rintaro commented Dec 22, 2025

@swift-ci Please test

@rintaro
Copy link
Member Author

rintaro commented Jan 16, 2026

@swift-ci Please test

@rintaro rintaro merged commit 93ecd93 into swiftlang:main Jan 16, 2026
268 of 275 checks passed
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