File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -3736,15 +3736,15 @@ ERROR(fixed_layout_attr_on_internal_type,
3736
3736
" %select{private|fileprivate|internal|%error|%error}1" ,
3737
3737
(DeclName, AccessLevel))
3738
3738
3739
- ERROR(versioned_attr_with_explicit_access ,
3739
+ ERROR(usable_from_inline_attr_with_explicit_access ,
3740
3740
none, " '@usableFromInline' attribute can only be applied to internal "
3741
3741
" declarations, but %0 is %select{private|fileprivate|%error|public|open}1" ,
3742
3742
(DeclName, AccessLevel))
3743
3743
3744
- ERROR(versioned_attr_in_protocol ,none,
3744
+ ERROR(usable_from_inline_attr_in_protocol ,none,
3745
3745
" '@usableFromInline' attribute cannot be used in protocols" , ())
3746
3746
3747
- ERROR(versioned_dynamic_not_supported ,none,
3747
+ ERROR(usable_from_inline_dynamic_not_supported ,none,
3748
3748
" '@usableFromInline' attribute cannot be applied to 'dynamic' declarations" , ())
3749
3749
3750
3750
#define FRAGILE_FUNC_KIND \
Original file line number Diff line number Diff line change @@ -1959,13 +1959,14 @@ void AttributeChecker::visitUsableFromInlineAttr(UsableFromInlineAttr *attr) {
1959
1959
// FIXME: Once protocols can contain nominal types, do we want to allow
1960
1960
// these nominal types to have access control (and also @usableFromInline)?
1961
1961
if (isa<ProtocolDecl>(VD->getDeclContext ())) {
1962
- diagnoseAndRemoveAttr (attr, diag::versioned_attr_in_protocol );
1962
+ diagnoseAndRemoveAttr (attr, diag::usable_from_inline_attr_in_protocol );
1963
1963
return ;
1964
1964
}
1965
1965
1966
1966
// @usableFromInline can only be applied to internal declarations.
1967
1967
if (VD->getFormalAccess () != AccessLevel::Internal) {
1968
- diagnoseAndRemoveAttr (attr, diag::versioned_attr_with_explicit_access,
1968
+ diagnoseAndRemoveAttr (attr,
1969
+ diag::usable_from_inline_attr_with_explicit_access,
1969
1970
VD->getFullName (),
1970
1971
VD->getFormalAccess ());
1971
1972
return ;
@@ -1974,7 +1975,7 @@ void AttributeChecker::visitUsableFromInlineAttr(UsableFromInlineAttr *attr) {
1974
1975
// Symbols of dynamically-dispatched declarations are never referenced
1975
1976
// directly, so marking them as @usableFromInline does not make sense.
1976
1977
if (VD->isDynamic ()) {
1977
- diagnoseAndRemoveAttr (attr, diag::versioned_dynamic_not_supported );
1978
+ diagnoseAndRemoveAttr (attr, diag::usable_from_inline_dynamic_not_supported );
1978
1979
return ;
1979
1980
}
1980
1981
}
You can’t perform that action at this time.
0 commit comments