Skip to content

Commit 5defa1f

Browse files
Renaming error name
1 parent ef8af2a commit 5defa1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2681,7 +2681,7 @@ ERROR(autoclosure_function_type,none,
26812681
"@autoclosure attribute only applies to function types",
26822682
())
26832683

2684-
ERROR(autoclosure_and_convention_function_type,none,
2684+
ERROR(invalid_autoclosure_and_convention_attributes,none,
26852685
"@convention(%0) attribute is not allowed on @autoclosure type",
26862686
(StringRef))
26872687

lib/Sema/TypeCheckType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2261,7 +2261,7 @@ Type TypeResolver::resolveAttributedType(TypeAttributes &attrs,
22612261
// @convention(c) and @convention(block) are not allowed with an @autoclosure type.
22622262
if (convention == "c" || convention == "block" ) {
22632263
diagnose(attrs.getLoc(TAK_convention),
2264-
diag::autoclosure_and_convention_function_type,
2264+
diag::invalid_autoclosure_and_convention_attributes,
22652265
attrs.getConvention());
22662266
}
22672267
}

0 commit comments

Comments
 (0)