AST: Remove FragileFunctionKind.allowUsableFromInline.

It was effectively always true after allowing default argument expressions to
reference `@usableFromInline` decls.
This commit is contained in:
Allan Shortlidge
2023-07-12 11:21:40 -07:00
parent b9262e5297
commit 496d29c47f
5 changed files with 32 additions and 56 deletions

View File

@@ -217,11 +217,9 @@ struct FragileFunctionKind {
};
Kind kind = None;
bool allowUsableFromInline = false;
friend bool operator==(FragileFunctionKind lhs, FragileFunctionKind rhs) {
return (lhs.kind == rhs.kind &&
lhs.allowUsableFromInline == rhs.allowUsableFromInline);
return lhs.kind == rhs.kind;
}
/// Casts to `unsigned` for diagnostic %selects.

View File

@@ -6539,10 +6539,6 @@ ERROR(availability_macro_in_inlinable, none,
#undef FRAGILE_FUNC_KIND
NOTE(resilience_decl_declared_here_public,
none, DECL_OR_ACCESSOR "2 %1 is not public",
(DescriptiveDeclKind, DeclName, bool))
NOTE(resilience_decl_declared_here,
none, DECL_OR_ACCESSOR "2 %1 is not '@usableFromInline' or public",
(DescriptiveDeclKind, DeclName, bool))