Skip to content

Commit 58f1170

Browse files
committed
clean-ups
1 parent 3e735ab commit 58f1170

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

include/swift/AST/Decl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,20 +1619,20 @@ class ExtensionDecl final : public GenericContext, public Decl,
16191619
/// from a serialized module.
16201620
TypeRepr *getExtendedTypeRepr() const { return ExtendedTypeRepr; }
16211621

1622-
/// Retrieve the list of all protocols that this type either inherits from
1622+
/// Retrieve the list of all protocols this extension either inherits from
16231623
/// (i.e, explicitly conforms to) or is suppressing implicit conformance to.
16241624
ArrayRef<InheritedEntry> getAllInheritedEntries() const { return Inherited; }
16251625

16261626
void setAllInheritedEntries(ArrayRef<InheritedEntry> i) { Inherited = i; }
16271627

1628-
/// Retrieve an iterator range of protocols that this type is suppressing
1628+
/// Retrieve an iterator range of protocols that this extension is suppressing
16291629
/// implicit conformances to.
16301630
InheritedEntryRange getSuppressed() const {
16311631
return llvm::make_filter_range(getAllInheritedEntries(),
16321632
InheritedEntryFilter(/*wantSuppressed*/true));
16331633
}
16341634

1635-
/// Retrieve an iterator range of protocols that this type inherits (i.e,
1635+
/// Retrieve an iterator range of protocols that this extension inherits (i.e,
16361636
/// explicitly conforms to).
16371637
InheritedEntryRange getInherited() const {
16381638
return llvm::make_filter_range(getAllInheritedEntries(),

include/swift/AST/DiagnosticsParse.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,8 +1824,6 @@ ERROR(unexpected_class_constraint,none,
18241824
"'class' constraint can only appear on protocol declarations", ())
18251825
NOTE(suggest_anyobject,none,
18261826
"did you mean to write an 'AnyObject' constraint?", ())
1827-
ERROR(suppress_illegal_here,none,
1828-
"cannot suppress conformances here", ())
18291827
ERROR(expected_generics_type_restriction,none,
18301828
"expected a class type or protocol-constrained type restricting %0",
18311829
(Identifier))

0 commit comments

Comments
 (0)