[Diagnostics] Use ContextualFailure and ContextualMistatch as base classes

for `AutoClosurePointerConversionFailure` and `AllowAutoClosurePointerConversion`
respectively.
This commit is contained in:
Holly Borla
2019-08-02 15:23:25 -07:00
parent e76f5f1d0b
commit edcf4055d2
4 changed files with 7 additions and 14 deletions

View File

@@ -271,7 +271,7 @@ AutoClosureForwarding *AutoClosureForwarding::create(ConstraintSystem &cs,
bool AllowAutoClosurePointerConversion::diagnose(Expr *root, bool asNote) const {
auto failure = AutoClosurePointerConversionFailure(root, getConstraintSystem(),
PointeeType, PointerType, getLocator());
getFromType(), getToType(), getLocator());
return failure.diagnose(asNote);
}