@@ -82,7 +82,7 @@ filterEscapableLifetimeDependencies(GenericSignature sig,
82
82
StringRef
83
83
getNameForParsedLifetimeDependenceKind (ParsedLifetimeDependenceKind kind) {
84
84
switch (kind) {
85
- case ParsedLifetimeDependenceKind::Scope :
85
+ case ParsedLifetimeDependenceKind::Borrow :
86
86
return " borrow" ;
87
87
case ParsedLifetimeDependenceKind::Inherit:
88
88
return " copy" ;
@@ -478,7 +478,7 @@ class LifetimeDependenceChecker {
478
478
auto loweredOwnership = ownership != ValueOwnership::Default
479
479
? ownership : getLoweredOwnership (afd);
480
480
481
- if (kind == ParsedLifetimeDependenceKind::Scope ) {
481
+ if (kind == ParsedLifetimeDependenceKind::Borrow ) {
482
482
return loweredOwnership == ValueOwnership::Shared;
483
483
}
484
484
assert (kind == ParsedLifetimeDependenceKind::Inout);
@@ -1189,7 +1189,7 @@ static std::optional<LifetimeDependenceInfo> checkSILTypeModifiers(
1189
1189
auto loc = descriptor.getLoc ();
1190
1190
auto kind = descriptor.getParsedLifetimeDependenceKind ();
1191
1191
1192
- if (kind == ParsedLifetimeDependenceKind::Scope &&
1192
+ if (kind == ParsedLifetimeDependenceKind::Borrow &&
1193
1193
isConsumedParameterInCallee (paramConvention)) {
1194
1194
diags.diagnose (loc, diag::lifetime_dependence_cannot_use_kind, " _scope" ,
1195
1195
getStringForParameterConvention (paramConvention));
@@ -1204,7 +1204,7 @@ static std::optional<LifetimeDependenceInfo> checkSILTypeModifiers(
1204
1204
if (kind == ParsedLifetimeDependenceKind::Inherit) {
1205
1205
inheritLifetimeParamIndices.set (paramIndexToSet);
1206
1206
} else {
1207
- assert (kind == ParsedLifetimeDependenceKind::Scope );
1207
+ assert (kind == ParsedLifetimeDependenceKind::Borrow );
1208
1208
scopeLifetimeParamIndices.set (paramIndexToSet);
1209
1209
}
1210
1210
return false ;
0 commit comments