-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[AST] Allow access-scope based access check inside inaccessible members #23341
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
[AST] Allow access-scope based access check inside inaccessible members #23341
Conversation
This aids expression diagnostics to pinpoint problems related to chaining of inaccessible members e.g. ```swift struct A { struct B {} } _ = A.B() ``` Here both `B` and its synthesized constructor are inaccessible.
0a0c393
to
d8d5190
Compare
Looks good…but what about |
@jrose-apple Since check has been moved into |
>< Right, sorry. This looks good; if it passes source compat, go for it. I do think it's worth doing the full compiler perf tests, though; the smoke version only does like three projects, and one of them is currently failing. |
@swift-ci please test source compatibility |
@swift-ci please smoke test compiler performance |
@swift-ci please test |
@swift-ci please test compiler performance |
Build failed |
@swift-ci please test Linux platform |
Build failed |
@swift-ci Please test Linux |
@swift-ci please test compiler performance |
Summary for master fullUnexpected test results, excluded stats for CoreStore, Tagged, ProcedureKit, Wordy, Deferred Regressions found (see below) Debug-batchdebug-batch briefRegressed (0)
Improved (0)
Unchanged (delta < 1.0% or delta < 100.0ms) (3)
debug-batch detailedRegressed (1)
Improved (0)
Unchanged (delta < 1.0% or delta < 100.0ms) (98)
Releaserelease briefRegressed (0)
Improved (0)
Unchanged (delta < 1.0% or delta < 100.0ms) (3)
release detailedRegressed (0)
Improved (0)
Unchanged (delta < 1.0% or delta < 100.0ms) (23)
|
@jrose-apple looks like one metric regressed in debug mode but I don’t know how bad is that since everything else seems to either go down a bit or stayed the same... |
:-( I think the bot is still not measuring the right things, but the pipe polls one isn't something to worry about. (That one needs a big jump to matter.) I think you're good to go! |
This aids expression diagnostics to pinpoint problems related to
chaining of inaccessible members e.g.
Here both
B
and its synthesized constructor are inaccessible.