Skip to content

Lift Requirement and Parameter Accessors up to GenericSignature #38403

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 6 commits into from
Jul 23, 2021

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Jul 15, 2021

Start depopulating GenericSignatureImpl by treating null {Can}GenericSignatures as signatures with no requirements and no parameters. There are intervening commits with the results of a manual pass through the existing callers of these functions to see where we could simplify some uses. I'm sure there are many more that I've missed.

@CodaFi
Copy link
Contributor Author

CodaFi commented Jul 15, 2021

@slavapestov Here's that refactoring I promised you last year

@CodaFi
Copy link
Contributor Author

CodaFi commented Jul 15, 2021

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 99fd0e0235139d0e36a6c8a2aadafffd98478f4f

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 99fd0e0235139d0e36a6c8a2aadafffd98478f4f

@CodaFi
Copy link
Contributor Author

CodaFi commented Jul 15, 2021

@swift-ci smoke test

@CodaFi
Copy link
Contributor Author

CodaFi commented Jul 15, 2021

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - afdaa4b96938361da457007a9137685cea93dae9

@CodaFi
Copy link
Contributor Author

CodaFi commented Jul 19, 2021

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 897bb04f1767bbfa27df19233ee93301a6f88308

@CodaFi CodaFi force-pushed the sigarillo branch 2 times, most recently from 4cfe07b to 5da823a Compare July 20, 2021 19:02
@CodaFi
Copy link
Contributor Author

CodaFi commented Jul 20, 2021

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 5da823a02d0050bc8fd957eb02e2f759ebb87c14

@CodaFi
Copy link
Contributor Author

CodaFi commented Jul 21, 2021

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 5da823a02d0050bc8fd957eb02e2f759ebb87c14

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 5da823a02d0050bc8fd957eb02e2f759ebb87c14

@CodaFi
Copy link
Contributor Author

CodaFi commented Jul 23, 2021

swiftlang/llvm-project#3100

@swift-ci smoke test

CodaFi added 6 commits July 22, 2021 23:27
Start treating the null {Can}GenericSignature as a regular signature
with no requirements and no parameters. This not only makes for a much
safer abstraction, but allows us to simplify a lot of the clients of
GenericSignature that would previously have to check for null before
using the abstraction.
@CodaFi
Copy link
Contributor Author

CodaFi commented Jul 23, 2021

swiftlang/llvm-project#3100

@swift-ci smoke test

@CodaFi CodaFi merged commit 03d8690 into swiftlang:main Jul 23, 2021
@CodaFi CodaFi deleted the sigarillo branch July 23, 2021 14:08
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