Skip to content

Commit e40dcfd

Browse files
authored
Merge pull request #4067 from practicalswift/gardening-20160806
2 parents 0abad28 + 0661f61 commit e40dcfd

File tree

9 files changed

+7
-11
lines changed

9 files changed

+7
-11
lines changed

include/swift/AST/DiagnosticsParse.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,8 +1106,6 @@ ERROR(expr_selector_expected_rparen,PointsToFirstBadToken,
11061106
"expected ')' to complete '#selector' expression", ())
11071107

11081108
// Type-of expressions.
1109-
ERROR(expr_typeof_expected_lparen,PointsToFirstBadToken,
1110-
"expected '(' following 'type'", ())
11111109
ERROR(expr_typeof_expected_label_of,PointsToFirstBadToken,
11121110
"expected argument label 'of:' within 'type(...)'", ())
11131111
ERROR(expr_typeof_expected_expr,PointsToFirstBadToken,

include/swift/AST/DiagnosticsSema.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,8 +2458,6 @@ ERROR(cannot_infer_type_for_pattern,none,
24582458
"type annotation missing in pattern", ())
24592459
ERROR(refutable_pattern_requires_initializer,none,
24602460
"pattern matching requires an initializer value to match against", ())
2461-
ERROR(invalid_pattern,none,
2462-
"invalid pattern", ())
24632461
WARNING(var_pattern_didnt_bind_variables,none,
24642462
"'%0' pattern has no effect; sub-pattern didn't bind any variables",
24652463
(StringRef))

lib/ClangImporter/ImportDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6087,7 +6087,7 @@ namespace {
60876087

60886088
Decl *
60896089
VisitObjCCompatibleAliasDecl(const clang::ObjCCompatibleAliasDecl *decl) {
6090-
// Import Objective-Cs @compatibility_alias as typealias.
6090+
// Import Objective-C's @compatibility_alias as typealias.
60916091
EffectiveClangContext effectiveContext(decl->getDeclContext()->getRedeclContext());
60926092
auto dc = Impl.importDeclContextOf(decl, effectiveContext);
60936093
if (!dc) return nullptr;

lib/Sema/CSDiag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,7 @@ class FailureDiagnosis :public ASTVisitor<FailureDiagnosis, /*exprresult*/bool>{
19481948
/// the exact expression kind).
19491949
bool diagnoseGeneralMemberFailure(Constraint *constraint);
19501950

1951-
/// Diagnose the lookup of an static member or enum element as instance member.
1951+
/// Diagnose the lookup of a static member or enum element as instance member.
19521952
void diagnoseTypeMemberOnInstanceLookup(Type baseObjTy,
19531953
Expr *baseExpr,
19541954
DeclName memberName,

stdlib/public/core/FloatingPointParsing.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ extension ${Self} : LosslessStringConvertible {
102102
/// // n?.isNaN == true
103103
/// // n?.sign == .minus
104104
///
105-
/// An NaN value may also include a payload in parentheses following the
105+
/// A NaN value may also include a payload in parentheses following the
106106
/// `"nan"` keyword. The payload consists of a sequence of decimal digits,
107107
/// or the characters `0X` or `0x` followed by a sequence of hexadecimal
108108
/// digits. If the payload contains any other characters, it is ignored.

stdlib/public/core/Mirror.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ public protocol CustomLeafReflectable : CustomReflectable {}
385385
///
386386
/// Do not declare new conformances to this protocol; they will not
387387
/// work as expected.
388-
// FIXME(ABI): this protocol should be non-open and you shouldn't be able to
388+
// FIXME(ABI): this protocol should be "non-open" and you shouldn't be able to
389389
// create conformances.
390390
public protocol MirrorPath {}
391391
extension IntMax : MirrorPath {}

stdlib/public/core/SequenceAlgorithms.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ ${equivalenceExplanation}
260260
/// print(b.starts(with: a))
261261
/// // Prints "true"
262262
///
263-
/// Passing an sequence with no elements or an empty collection as
263+
/// Passing a sequence with no elements or an empty collection as
264264
/// `possiblePrefix` always results in `true`.
265265
///
266266
/// print(b.starts(with: []))

test/1_stdlib/CollectionCasts.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- CollectionCasts.swift.gyb ----------------------------------------===//
1+
//===--- CollectionCasts.swift.gyb ----------------------------*- swift -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

test/Prototypes/Algorithms.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- Algorithms.swift.gyb ---------------------------------------------===//
1+
//===--- Algorithms.swift.gyb ---------------------------------*- swift -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

0 commit comments

Comments
 (0)