Skip to content
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

Restore warn-any improvement #8706

Merged
merged 1 commit into from
Feb 12, 2020
Merged

Conversation

som-snytt
Copy link
Contributor

@som-snytt som-snytt commented Feb 8, 2020

This restores the previous commit, which was withdrawn because of noise from the community build, which broke for a good reason.

See #8586 for context but please don't laugh.

The ticket was re-opened after the reversion.

Fixes scala/bug#11798

@scala-jenkins scala-jenkins added this to the 2.13.3 milestone Feb 8, 2020
Copy link
Member

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

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

LGTM!

if (!result && !seen(t)) t.dealiasWidenChain.foreach(saw)
}
}
@`inline` def containsAny(t: Type) = collector.collect(t)
Copy link
Member

Choose a reason for hiding this comment

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

The PR is green, with the same check files change as reverse(#8586), so LGTM.

There's a small change from reverse(#8586) (collector.collect(t) instead of t.dealiasWidenChain.exists(collector.collect)). But looking at the impl, it looks like it was a redudant dealiasWidenChain anyways.

It helps that the PR is green and the check files diff is the same. 😄

@lrytz lrytz merged commit f573c4e into scala:2.13.x Feb 12, 2020
@SethTisue SethTisue modified the milestones: 2.13.3, 2.13.2 Feb 12, 2020
@som-snytt som-snytt deleted the revert/reversion branch February 12, 2020 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants