Skip to content

Commit fd11642

Browse files
committed
Minor edits.
1 parent ea45763 commit fd11642

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/Sema/DerivedConformances.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ ValueDecl *DerivedConformance::getDerivableRequirement(TypeChecker &tc,
193193
// the provided requirement, but within the given known protocol.
194194
// SWIFT_ENABLE_TENSORFLOW
195195
auto getRequirement = [&](KnownProtocolKind kind,
196-
std::function<bool(ValueDecl *)> filter =
196+
llvm::function_ref<bool(ValueDecl *)> filter =
197197
nullptr) -> ValueDecl * {
198198
// Dig out the protocol.
199199
auto proto = ctx.getProtocol(kind);

test/stdlib/ElementaryFunctions.swift.gyb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ func expectEqualWithNaNEquality<T>(
3434
_ expected: [T], _ actual: [T], file: String = #file, line: UInt = #line
3535
) where T: BinaryFloatingPoint {
3636
for (x, y) in zip(expected, actual) {
37-
if x == y || x.isNaN && y.isNaN {
38-
continue
39-
}
4037
expectTrue(x == y || x.isNaN && y.isNaN,
4138
"\(x) != \(y) for \(T.self).",
4239
file: file, line: line)

0 commit comments

Comments
 (0)