Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrapping Vararg directly in UnionAll is deprecated #94

Open
tomyun opened this issue Jan 27, 2022 · 1 comment
Open

Wrapping Vararg directly in UnionAll is deprecated #94

tomyun opened this issue Jan 27, 2022 · 1 comment

Comments

@tomyun
Copy link

tomyun commented Jan 27, 2022

When testing a package indirectly loading SIMD.jl as a dependency, with depwarn=error enabled, I get a deprecation error like this. Julia 1.7.0 and 3.4.0.

ERROR: LoadError: Wrapping `Vararg` directly in UnionAll is deprecated (wrap the tuple instead).
Stacktrace:
  [1] UnionAll(v::TypeVar, t::Any)
    @ Core ./boot.jl:255
  [2] top-level scope
    @ ~/.julia/packages/SIMD/2uoA4/src/arrayops.jl:231
  [3] include(mod::Module, _path::String)
    @ Base ./Base.jl:418
  [4] include(x::String)
    @ SIMD ~/.julia/packages/SIMD/2uoA4/src/SIMD.jl:1
  [5] top-level scope
    @ ~/.julia/packages/SIMD/2uoA4/src/SIMD.jl:23
  [6] include
    @ ./Base.jl:418 [inlined]
  [7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1318
  [8] top-level scope
    @ none:1
  [9] eval
    @ ./boot.jl:373 [inlined]
 [10] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [11] top-level scope
    @ none:1
in expression starting at /home/runner/.julia/packages/SIMD/2uoA4/src/arrayops.jl:231
in expression starting at /home/runner/.julia/packages/SIMD/2uoA4/src/SIMD.jl:1
@asinghvi17
Copy link

Hey, just wanted to bump on this - getting a similar error in Julia 1.9, SIMD v3.4.4:

┌ SIMD [fdea26ae-647d-5447-a871-4b548cad5224]
│  WARNING: Wrapping `Vararg` directly in UnionAll is deprecated (wrap the tuple instead).
│  WARNING: Wrapping `Vararg` directly in UnionAll is deprecated (wrap the tuple instead).
└  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants