Commits

Slava Pestov committed e354ecfd45f
Sema: Rip out some code for diagnosing invalid patterns The problem here is that we would just emit 'invalid pattern' instead of digging deeper, which meant that the fix-it for qualified enum element access wasn't getting inserted for more complex patterns, such as 'case X(let x)'. Unfortunately, in the matching_patterns.swift test, we emit too many diagnostics that are not really useful to figuring out the problem, and the old 'invalid pattern' made more sense. I'll work on some CSDiag tweaks to address this -- I think it makes more sense to dig there than just emit a general 'invalid pattern' diagnostic anyway. Fixes <rdar://problem/27684266>.