Skip to content

Gets rid of for-loop deprecation compiler warnings in stdlib/public/core #644

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

Closed
wants to merge 1 commit into from

Conversation

kovpas
Copy link
Contributor

@kovpas kovpas commented Dec 18, 2015

Not too many warnings, but still rather annoying.

@@ -367,8 +367,10 @@ Type TypeChecker::applyGenericArguments(Type type,
if (!unbound) {
// FIXME: Highlight generic arguments and introduce a Fix-It to remove
// them.
diagnose(loc, diag::not_a_generic_type, type);

if (!type->is<ErrorType>()) {
Copy link
Member

Choose a reason for hiding this comment

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

This should be part of a separate pull request.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are not my changes. Probably rebase issues. Fixing.

@DougGregor
Copy link
Member

Can you separate out the generic-specialization-of-error-type changes?

@kovpas
Copy link
Contributor Author

kovpas commented Dec 18, 2015

@DougGregor that was a rebase issue, I've already fixed this.

@gribozavr
Copy link
Contributor

We had applied such a change before, and it caused performance issues. We can safely take all changes outside of stdlib/public/core, though.

@nadavrot, how would you like to proceed with this?

@kovpas Feel free to split the patch into the stdlib/public/core and "the rest". We will immediately merge the latter.

@kovpas kovpas changed the title Gets rid of for-loop deprecation compiler warnings Gets rid of for-loop deprecation compiler warnings in stdlib/public/core Dec 19, 2015
@kovpas
Copy link
Contributor Author

kovpas commented Dec 19, 2015

@gribozavr done: #653
This pull request now contains changes in stdlib/public/core only. The other one is "the rest".

@gribozavr
Copy link
Contributor

I believe this is already implemented in master.

@gribozavr gribozavr closed this Jan 27, 2016
freak4pc pushed a commit to freak4pc/swift that referenced this pull request Sep 28, 2022
[Stress tester XFails] Update XFails
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