Skip to content

[Dependency Scanning] Detect and ignore (and warn about) tautological imports #69552

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
Nov 1, 2023

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Oct 31, 2023

This matches the current behavior in ImportResolution. The change refactors an existing utility function to do this check from UnboundImport to a common utility used now also in the scanner.

https://github.com/apple/swift/blob/658989767730c6946304a5f2a42ed46c6be41ac4/lib/Sema/ImportResolution.cpp#L313

@artemcm
Copy link
Contributor Author

artemcm commented Oct 31, 2023

@swift-ci smoke test

@xedin xedin removed their request for review October 31, 2023 21:57
… imports

This matches the current behavior in `ImportResolution`. The change refactors an existing utility function to do this check from `UnboundImport` to a common utility used now also in the scanner.
@artemcm artemcm force-pushed the DepScanTautologicalImports branch from 735870b to 9c58b9f Compare November 1, 2023 13:46
@artemcm
Copy link
Contributor Author

artemcm commented Nov 1, 2023

@swift-ci smoke test

@artemcm artemcm merged commit cc830e6 into swiftlang:main Nov 1, 2023
@artemcm artemcm deleted the DepScanTautologicalImports branch November 1, 2023 15:59
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