mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename StringRef::endswith references to StringRef::ends_with
Missed this when doing the `startswith` renaming. `endswith` has also been deprecated upstream (and presumably soon to be removed).
This commit is contained in:
@@ -764,7 +764,7 @@ void UnboundImport::validateInterfaceWithPackageName(ModuleDecl *topLevelModule,
|
||||
ASTContext &ctx = topLevelModule->getASTContext();
|
||||
if (topLevelModule->inSamePackage(ctx.MainModule) &&
|
||||
topLevelModule->isBuiltFromInterface() &&
|
||||
!topLevelModule->getModuleSourceFilename().endswith(".package.swiftinterface")) {
|
||||
!topLevelModule->getModuleSourceFilename().ends_with(".package.swiftinterface")) {
|
||||
ctx.Diags.diagnose(import.module.getModulePath().front().Loc,
|
||||
diag::in_package_module_not_compiled_from_source_or_package_interface,
|
||||
topLevelModule->getBaseIdentifier(),
|
||||
|
||||
Reference in New Issue
Block a user