Skip to content

[interop] make interop diagnostics more consistent with the rest of S… #65043

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
Apr 12, 2023

Conversation

hyp
Copy link
Contributor

@hyp hyp commented Apr 10, 2023

…wift diagnostics

@hyp hyp added the c++ interop Feature: Interoperability with C++ label Apr 10, 2023
@hyp hyp requested review from ravikandhadai and removed request for xedin, slavapestov and hborla April 10, 2023 17:37
@hyp
Copy link
Contributor Author

hyp commented Apr 10, 2023

@swift-ci please test

@hyp
Copy link
Contributor Author

hyp commented Apr 10, 2023

@swift-ci please test source compatibility

NOTE(record_is_dependent, none, "record '%0' is dependent", (StringRef))
NOTE(record_parent_unimportable, none, "record %0's parent is not importable", (StringRef))
NOTE(reference_passed_by_value, none, "function uses foreign reference type "
"'%0' as a value in %1 types which breaks "
"'swift_shared_reference' contract (outlined in "
"C++ Interop User Manual).",
"the C++ interoperability user manual)",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this something we really want to be pointing people at?

Copy link
Contributor

@ravikandhadai ravikandhadai Apr 10, 2023

Choose a reason for hiding this comment

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

We should remove this reference to User manual. This would become stale once we have documentation elsewhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, removing it

Copy link
Contributor

@zoecarver zoecarver left a comment

Choose a reason for hiding this comment

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

Wonderful improvements, thank you!

@hyp hyp force-pushed the eng/diag-clenup branch from 9519fa8 to b60d635 Compare April 10, 2023 23:20
@hyp
Copy link
Contributor Author

hyp commented Apr 10, 2023

@swift-ci please test

@hyp
Copy link
Contributor Author

hyp commented Apr 10, 2023

@swift-ci please test source compatibility

@hyp
Copy link
Contributor Author

hyp commented Apr 11, 2023

@swift-ci please test macOS platform

2 similar comments
@hyp
Copy link
Contributor Author

hyp commented Apr 11, 2023

@swift-ci please test macOS platform

@hyp
Copy link
Contributor Author

hyp commented Apr 11, 2023

@swift-ci please test macOS platform

@hyp hyp merged commit 5fa6d08 into swiftlang:main Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants