@@ -82,7 +82,7 @@ filterEscapableLifetimeDependencies(GenericSignature sig,
8282StringRef
8383getNameForParsedLifetimeDependenceKind (ParsedLifetimeDependenceKind kind) {
8484 switch (kind) {
85- case ParsedLifetimeDependenceKind::Scope :
85+ case ParsedLifetimeDependenceKind::Borrow :
8686 return " borrow" ;
8787 case ParsedLifetimeDependenceKind::Inherit:
8888 return " copy" ;
@@ -478,7 +478,7 @@ class LifetimeDependenceChecker {
478478 auto loweredOwnership = ownership != ValueOwnership::Default
479479 ? ownership : getLoweredOwnership (afd);
480480
481- if (kind == ParsedLifetimeDependenceKind::Scope ) {
481+ if (kind == ParsedLifetimeDependenceKind::Borrow ) {
482482 return loweredOwnership == ValueOwnership::Shared;
483483 }
484484 assert (kind == ParsedLifetimeDependenceKind::Inout);
@@ -1189,7 +1189,7 @@ static std::optional<LifetimeDependenceInfo> checkSILTypeModifiers(
11891189 auto loc = descriptor.getLoc ();
11901190 auto kind = descriptor.getParsedLifetimeDependenceKind ();
11911191
1192- if (kind == ParsedLifetimeDependenceKind::Scope &&
1192+ if (kind == ParsedLifetimeDependenceKind::Borrow &&
11931193 isConsumedParameterInCallee (paramConvention)) {
11941194 diags.diagnose (loc, diag::lifetime_dependence_cannot_use_kind, " _scope" ,
11951195 getStringForParameterConvention (paramConvention));
@@ -1204,7 +1204,7 @@ static std::optional<LifetimeDependenceInfo> checkSILTypeModifiers(
12041204 if (kind == ParsedLifetimeDependenceKind::Inherit) {
12051205 inheritLifetimeParamIndices.set (paramIndexToSet);
12061206 } else {
1207- assert (kind == ParsedLifetimeDependenceKind::Scope );
1207+ assert (kind == ParsedLifetimeDependenceKind::Borrow );
12081208 scopeLifetimeParamIndices.set (paramIndexToSet);
12091209 }
12101210 return false ;
0 commit comments