mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Remove FragileFunctionKind.allowUsableFromInline.
It was effectively always true after allowing default argument expressions to reference `@usableFromInline` decls.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user