Skip to content

Diffractor broken on Julia nightly due to https://github.com/JuliaLang/julia/pull/49113 #122

@oscardssmith

Description

@oscardssmith

Running the tests gives

Diffractor.jl: Error During Test at /home/oscardssmith/.julia/dev/Diffractor/test/runtests.jl:30
  Test threw exception
  Expression: tup2(my_tuple) == (ZeroTangent(), 4)
  MethodError: no method matching replace_code_newstyle!(::Core.CodeInfo, ::Core.Compiler.IRCode, ::Int64)
  
  Closest candidates are:
    replace_code_newstyle!(::Core.CodeInfo, ::Core.Compiler.IRCode)
     @ Core compiler/ssair/legacy.jl:67
  
  Stacktrace:
    [1] transform!(ci::Core.CodeInfo, meth::Method, nargs::Int64, sparams::Core.SimpleVector, N::Int64)
      @ Diffractor ~/.julia/dev/Diffractor/src/stage1/recurse.jl:284
    [2] perform_optic_transform(ff::Type{Diffractor.∂⃖recurse{1}}, args::Any)
      @ Diffractor ~/.julia/dev/Diffractor/src/stage1/generated.jl:25
    [3] (::Core.GeneratedFunctionStub)(::Any, ::Vararg{Any})
      @ Core ./boot.jl:602
    [4] ∂⃖
      @ ~/.julia/dev/Diffractor/src/stage1/generated.jl:216 [inlined]
    [5] ∂⃖
      @ ~/.julia/dev/Diffractor/src/stage1/generated.jl:66 [inlined]
    [6] (::var"#tup2#77")(f::var"#my_tuple#78")
      @ Main ~/.julia/dev/Diffractor/test/runtests.jl:20
    [7] macro expansion
      @ ~/julia/usr/share/julia/stdlib/v1.10/Test/src/Test.jl:478 [inlined]
    [8] macro expansion
      @ ~/.julia/dev/Diffractor/test/runtests.jl:30 [inlined]
    [9] macro expansion
      @ ~/julia/usr/share/julia/stdlib/v1.10/Test/src/Test.jl:1504 [inlined]
   [10] top-level scope
      @ ~/.julia/dev/Diffractor/test/runtests.jl:16

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions