Skip to content

Improve diagnostics when package acl is used but no package-name is passed #66189

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
May 27, 2023

Conversation

elsh
Copy link
Contributor

@elsh elsh commented May 26, 2023

Include a decl name and a file containing package access modifier in diagnostics.

@elsh elsh requested review from hborla, slavapestov and xedin as code owners May 26, 2023 23:00
@elsh elsh requested review from xymus, artemcm and tshortli May 26, 2023 23:00
@@ -1782,8 +1782,8 @@ WARNING(access_control_non_objc_open_member,none,
"non-'@objc' %0 in extensions cannot be overridden; use 'public' instead",
(DescriptiveDeclKind))
ERROR(access_control_requires_package_name, none,
"decl has a package access level but no -package-name was passed",
())
"%0 has a package access level but no -package-name was passed: %1",
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: passed to specified?

Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

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

LGTM!

@elsh
Copy link
Contributor Author

elsh commented May 27, 2023

@swift-ci smoke test

@elsh elsh merged commit 79a2ff5 into main May 27, 2023
@elsh elsh deleted the es-diag branch May 27, 2023 19:23
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