Commits

Jordan Rose committed 99a7b13dbdc
Move TypeChecker::diagnoseDeprecated into MiscDiagnostics. It's going to share some helper functions with TypeChecker::diagnoseExplicitUnavailability, which is already there. Also, avoid unnecessarily putting some lambdas on the heap by using llvm::function_ref. No functionality change.