@@ -77,7 +77,7 @@ filterEscapableLifetimeDependencies(GenericSignature sig,
7777StringRef
7878getNameForParsedLifetimeDependenceKind (ParsedLifetimeDependenceKind kind) {
7979 switch (kind) {
80- case ParsedLifetimeDependenceKind::Scope :
80+ case ParsedLifetimeDependenceKind::Borrow :
8181 return " borrow" ;
8282 case ParsedLifetimeDependenceKind::Inherit:
8383 return " copy" ;
@@ -473,7 +473,7 @@ class LifetimeDependenceChecker {
473473 auto loweredOwnership = ownership != ValueOwnership::Default
474474 ? ownership : getLoweredOwnership (afd);
475475
476- if (kind == ParsedLifetimeDependenceKind::Scope ) {
476+ if (kind == ParsedLifetimeDependenceKind::Borrow ) {
477477 return loweredOwnership == ValueOwnership::Shared;
478478 }
479479 assert (kind == ParsedLifetimeDependenceKind::Inout);
@@ -1166,7 +1166,7 @@ static std::optional<LifetimeDependenceInfo> checkSILTypeModifiers(
11661166 auto loc = descriptor.getLoc ();
11671167 auto kind = descriptor.getParsedLifetimeDependenceKind ();
11681168
1169- if (kind == ParsedLifetimeDependenceKind::Scope &&
1169+ if (kind == ParsedLifetimeDependenceKind::Borrow &&
11701170 isConsumedParameterInCallee (paramConvention)) {
11711171 diags.diagnose (loc, diag::lifetime_dependence_cannot_use_kind, " _scope" ,
11721172 getStringForParameterConvention (paramConvention));
@@ -1181,7 +1181,7 @@ static std::optional<LifetimeDependenceInfo> checkSILTypeModifiers(
11811181 if (kind == ParsedLifetimeDependenceKind::Inherit) {
11821182 inheritLifetimeParamIndices.set (paramIndexToSet);
11831183 } else {
1184- assert (kind == ParsedLifetimeDependenceKind::Scope );
1184+ assert (kind == ParsedLifetimeDependenceKind::Borrow );
11851185 scopeLifetimeParamIndices.set (paramIndexToSet);
11861186 }
11871187 return false ;
0 commit comments