Skip to content

Conversation

@j-hui
Copy link
Contributor

@j-hui j-hui commented Oct 23, 2025

Checking this upon import was overlooking annotations that explicitly mark a type as safe (or unsafe). Instead, we consolidate this logic in the ClangDeclExplicitSafety request.

rdar://163196609

Checking this upon import was overlooking annotations that explicitly
mark a type as safe (or unsafe). Instead, we consolidate this logic in
the ClangDeclExplicitSafety request.

rdar://163196609
@j-hui
Copy link
Contributor Author

j-hui commented Oct 23, 2025

@swift-ci please test

@j-hui
Copy link
Contributor Author

j-hui commented Oct 24, 2025

@swift-ci please test

@j-hui
Copy link
Contributor Author

j-hui commented Oct 24, 2025

Note: tests failed because I forgor to account for cycles, e.g., this fun one from libcxx:

template <class _Tp>
class allocator : private __non_trivial_if<!is_void<_Tp>::value, allocator<_Tp> > { ... }

@j-hui j-hui force-pushed the template-arg-safety-in-req branch from 9520c14 to 929d0d8 Compare October 24, 2025 21:30
@j-hui
Copy link
Contributor Author

j-hui commented Oct 24, 2025

@swift-ci please test

@j-hui
Copy link
Contributor Author

j-hui commented Oct 24, 2025

@swift-ci please test macos platform

@j-hui
Copy link
Contributor Author

j-hui commented Oct 26, 2025

@swift-ci please test macos platform

@j-hui j-hui merged commit 90c0509 into swiftlang:main Oct 27, 2025
5 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.

3 participants