borglab / borglab/SwiftFusion

extension outside of file declaring generic struct 'AnyArrayBuffer' prevents automatic synthesis of 'move(by:)'

Open
#276 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
118
Forks
14
PR merge metrics
No merged PRs in 30d

Description

```
AnyArrayBuffer+Differentiable.swift:18:1: error: extension outside of file declaring generic struct 'AnyArrayBuffer' prevents automatic synthesis of 'move(by:)' for protocol 'Differentiable'
extension AnyArrayBuffer: Differentiable where Dispatch: DifferentiableArrayDispatch {
^
```

@BradLarson have you encountered this? I think this is a new rule added to the Swift compiler, but I don't know when or how.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with AnyArrayBuffer+Differentiable.swift at line 18 and reproduce the reported Swift compiler error around the AnyArrayBuffer extension. Check the compiler rule involved and determine the project-compatible resolution; the issue is complete when the error is understood and the project builds without it.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.