Commits

Mark Lacey committed d470fc292e3
Do not allow Any to satisfy more specific same-type constraints. (#3856) For associated types inferred to be Any, we were allowing the type to satisfy more specific same-type constraints, e.g. Element == Character (where Element is the associated type). This is clearly wrong. The fix here is very specific to empty protocol compositions, and removes some code in matchTypes() that doesn't make a lot of sense. Looking back at the history, this was added in a commit that made a handful of other changes, and it's not clear this particular change was important for the issues that commit claimed to fix (and in fact removing this regresses no tests). Fixes rdar://problem/27515965.