Skip to content

Ncgenerics test fixes kavon v8 #71540

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 9 commits into from
Feb 11, 2024

Conversation

kavon
Copy link
Member

@kavon kavon commented Feb 11, 2024

more test fixes

@kavon
Copy link
Member Author

kavon commented Feb 11, 2024

@swift-ci please test

@kavon kavon enabled auto-merge February 11, 2024 08:36
Some tests put no space after `%target-swift-frontend` and the flag that
follows it, so we can end up with `-color-diagnostics-emit-module`.
The IDE's use isn't correct under noncopyable generics and only the
constraint solver uses it. It's a misleading method now that nearly
every archetype has Copyable/Escapable requirements.
We can avoid lookup entirely on invertible protocols because they never
can have any members. This saves us from having to update tests and
perhaps some extra work in code completion.
Any changes to the order in which lookups happen would require
changing all the regression tests.
The missing module was causing not only a crash in conformance lookup,
but full qualification for a generic parameter, which shouldn't ever be
needed.
With NoncopyableGenerics, most protocols now carry an associated
conformance. There's no need to have FileCheck try to assure there isn't
 any for this test.
I thought this would be simple to add a check for this, but it turns out
that a more complete refactoring that eliminates `isNoEscape` in favor
of `isEscapable` is most likely needed.
@kavon kavon force-pushed the ncgenerics-test-fixes-kavon-v8 branch from 8fc4283 to 648ac8a Compare February 11, 2024 20:55
@kavon
Copy link
Member Author

kavon commented Feb 11, 2024

@swift-ci smoke test

@kavon kavon merged commit 4fc2fe9 into swiftlang:main Feb 11, 2024
@kavon kavon deleted the ncgenerics-test-fixes-kavon-v8 branch February 11, 2024 23:55
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.

1 participant