Skip to content

Commit a6bb974

Browse files
authored
[AutoDiff] NFC: garden tests. (#32102)
Remove extraneous code. Clarify test name: test/AutoDiff/SIL/Serialization/differentiable_function_type.swift.
1 parent adcd312 commit a6bb974

File tree

3 files changed

+0
-2
lines changed

3 files changed

+0
-2
lines changed

test/AutoDiff/SILOptimizer/differentiation_control_flow_diagnostics.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ enum Tree : Differentiable & AdditiveArithmetic {
121121
case branch(Float, Float)
122122

123123
typealias TangentVector = Self
124-
typealias AllDifferentiableVariables = Self
125124
static var zero: Self { .leaf(0) }
126125

127126
// expected-error @+1 {{function is not differentiable}}

test/AutoDiff/validation-test/simple_math.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ SimpleMathTests.test("StructMemberwiseInitializer") {
230230
// Custom initializer with `@differentiable`.
231231
@differentiable
232232
init(x: Float) {
233-
print(x)
234233
self.x = x
235234
}
236235
}

0 commit comments

Comments
 (0)