Skip to content

Commit ba26d57

Browse files
committed
AST: Make GenericSignatureImpl::requirementsNotSatisfiedBy const-correct
1 parent b834168 commit ba26d57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/GenericSignature.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ class alignas(1 << TypeAlignInBits) GenericSignatureImpl final
366366
/// \param otherSig Another generic signature whose generic parameters are
367367
/// equivalent to or a subset of the generic parameters in this signature.
368368
SmallVector<Requirement, 4> requirementsNotSatisfiedBy(
369-
GenericSignature otherSig);
369+
GenericSignature otherSig) const;
370370

371371
/// Return the canonical version of the given type under this generic
372372
/// signature.

lib/AST/GenericSignature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ bool GenericSignatureImpl::isRequirementSatisfied(Requirement requirement) {
592592
}
593593

594594
SmallVector<Requirement, 4> GenericSignatureImpl::requirementsNotSatisfiedBy(
595-
GenericSignature otherSig) {
595+
GenericSignature otherSig) const {
596596
SmallVector<Requirement, 4> result;
597597

598598
// If the signatures match by pointer, all requirements are satisfied.

0 commit comments

Comments
 (0)