Skip to content

Commit 854e7dc

Browse files
committed
s/passed/specified
1 parent 61dd300 commit 854e7dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,7 @@ WARNING(access_control_non_objc_open_member,none,
17821782
"non-'@objc' %0 in extensions cannot be overridden; use 'public' instead",
17831783
(DescriptiveDeclKind))
17841784
ERROR(access_control_requires_package_name, none,
1785-
"%0 has a package access level but no -package-name was passed: %1",
1785+
"%0 has a package access level but no -package-name was specified: %1",
17861786
(Identifier, StringRef))
17871787
ERROR(invalid_decl_attribute,none,
17881788
"'%0' attribute cannot be applied to this declaration", (DeclAttribute))

test/diagnostics/package-name-diagnostics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// Package name should not be empty
44
// RUN: not %target-swift-frontend -typecheck %s -package-name "" 2>&1 | %FileCheck %s -check-prefix CHECK-EMPTY
55
// CHECK-EMPTY: error: package-name is empty
6-
// CHECK-EMPTY: error: 'log' has a package access level but no -package-name was passed: {{.*}}.swift
6+
// CHECK-EMPTY: error: 'log' has a package access level but no -package-name was specified: {{.*}}.swift
77

88
// If package access level is used but no package-name is passed, it should error
99
// RUN: not %target-swift-frontend -typecheck %s 2>&1 | %FileCheck %s -check-prefix CHECK-MISSING
10-
// CHECK-MISSING: error: 'log' has a package access level but no -package-name was passed: {{.*}}.swift
10+
// CHECK-MISSING: error: 'log' has a package access level but no -package-name was specified: {{.*}}.swift
1111

1212
// Package name can be same as the module name
1313
// RUN: %target-swift-frontend -module-name Logging -package-name Logging %s -emit-module -emit-module-path %t/Logging.swiftmodule

0 commit comments

Comments
 (0)