You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
* 'master' of github.com:apple/swift:
[docs] Fix broken links in the documentation index (#33829)
[Profiler] Increment closure body count prior to the prolog (#33946)
ARCSequenceOpts: Add LoopSummary verifier (#33810)
[build-script] Cleanup source directory layout help
Address review comment.
ABI checker: when invoking via build system, explicitly mention ABI breakge in diagnostics
stdlib: Remove unused, unsafe helper function _withUninitializedString (#33704)
test: Replace _silgen_name w/ _cdecl in CommandLineStressTest
[AutoDiff] [Docs] Clarify 'Differentiable' derived conformances conditions.
Revert "build-script: remove dead CMake options for Swift"
// `x` and `y` are the "differentiable variables".
1349
+
var x: T
1350
+
var y: U
1351
+
var customFlag: Bool
1352
+
let helperVariable: T
1353
+
}
1354
+
```
1355
+
1356
+
```console
1357
+
test.swift:5:4: warning: stored property 'customFlag' has no derivative because 'Bool' does not conform to 'Differentiable'
1358
+
var customFlag: Bool
1359
+
1360
+
test.swift:5:4: note: add a '@noDerivative' attribute to make it explicit
1361
+
var customFlag: Bool
1362
+
^
1363
+
@noDerivative
1364
+
1365
+
test.swift:6:4: warning: synthesis of the 'Differentiable.move(along:)' requirement for 'Foo' requires all stored properties not marked with `@noDerivative` to be mutable
1366
+
let helperVariable: T
1367
+
1368
+
test.swift:6:4: note: change 'let' to 'var' to make it mutable
1369
+
let helperVariable: T
1370
+
^~~
1371
+
var
1372
+
1373
+
test.swift:6:4: note: add a '@noDerivative' attribute to make it explicit
1374
+
let helperVariable: T
1375
+
^
1376
+
@noDerivative
1377
+
```
1378
+
1292
1379
##### Shortcut synthesis
1293
1380
1294
1381
In certain cases, it is not ideal to keep `Self` and `TangentVector` as separate
0 commit comments