Package evaluation to test Match on Julia 1.14.0-DEV.2309 (6e1a27e459*) started at 2026-06-06T03:25:52.313 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Activating project at `~/.julia/environments/v1.14` Set-up completed after 17.38s ################################################################################ # Installation # Installing Match... Resolving package versions... Installed OrderedCollections ─ v1.8.2 Installed MacroTools ───────── v0.5.16 Installed Match ────────────── v2.4.1 Updating `~/.julia/environments/v1.14/Project.toml` [7eb4fadd] + Match v2.4.1 Updating `~/.julia/environments/v1.14/Manifest.toml` [1914dd2f] + MacroTools v0.5.16 [7eb4fadd] + Match v2.4.1 ⌅ [bac558e1] + OrderedCollections v1.8.2 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m` Installation completed after 1.76s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Precompiling project... 6.7 s ✓ TestEnv 1 dependency successfully precompiled in 7 seconds. 27 already precompiled. Precompiling package dependencies... Precompiling project... 4.7 s ✓ MacroTools 150.0 s ✓ OrderedCollections 65.7 s ✓ Match 3 dependencies successfully precompiled in 220 seconds. 8 already precompiled. Precompilation completed after 253.64s ################################################################################ # Testing # Testing Match Status `/tmp/jl_1us6ts/Project.toml` [1914dd2f] MacroTools v0.5.16 [7eb4fadd] Match v2.4.1 [9a3f8284] Random v1.11.0 [8dfed614] Test v1.11.0 Status `/tmp/jl_1us6ts/Manifest.toml` [1914dd2f] MacroTools v0.5.16 [7eb4fadd] Match v2.4.1 ⌅ [bac558e1] OrderedCollections v1.8.2 [2a0f44e3] Base64 v1.11.0 [b77e0a4c] InteractiveUtils v1.11.0 [ac6e5ff7] JuliaSyntaxHighlighting v1.13.0 [56ddb016] Logging v1.11.0 [d6f4376e] Markdown v1.11.0 [9a3f8284] Random v1.11.0 [ea8e919c] SHA v1.13.0 [9e88b42a] Serialization v1.11.0 [f489334b] StyledStrings v1.13.0 [8dfed614] Test v1.11.0 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. Testing Running tests... stack trace for MatchFailure: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:61 Expression: top.file == file Evaluated: :none == Symbol("/home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl") Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [7] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:51 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [10] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:61 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:564 [inlined] stack trace for MatchFailure: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:62 Expression: top.line == line Evaluated: 0 == 55 Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [7] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:51 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [10] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:62 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:564 [inlined] could not bind a type: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:76 Expression: ex isa LoadError Evaluated: Base.JuliaLowering.MacroExpansionError(Base.JuliaLowering.MacroContext(Base.JuliaSyntax.SyntaxGraph{Dict{Symbol, Dict{Int64, Any}}}(UnitRange{Int64}[0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 1:3, 0:-1, 0:-1, 4:4, 0:-1, 5:7, 8:8, 9:12, 0:-1], [3, 4, 5, 8, 7, 9, 10, 11, 1, 2, 6, 12], Dict{Symbol, Dict{Int64, Any}}(:mod => Dict(), :kind => Dict(3 => K"Identifier", 2 => K"Value", 1 => K"Identifier", 4 => K"Value", 5 => K"Value", 6 => K"call", 13 => K"macrocall", 8 => K"Identifier", 7 => K"Identifier", 10 => K"Value"…), :var_id => Dict(), :toplevel_pure => Dict(), :scope_type => Dict(), :macro_source => Dict(), :name_val => Dict(3 => "Foo", 1 => "@match", 14 => "@match", 8 => "Unknown", 7 => "=>"), :syntax_flags => Dict(), :meta => Dict(), :scope_layer => Dict(14 => 1)…)), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:71 =#) (call Foo 1 2) (block (call => (:: Unknown) 1))), Base.JuliaLowering.ScopeLayer(1, Main.Rematch2Tests, 0, false, false), true), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:71 =#) (call Foo 1 2) (block (call => (:: Unknown) 1))), "Error expanding macro", :all, ErrorException("/home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:72: Could not bind `Unknown` as a type (due to `UndefVarError(:Unknown, 0x000000000000a7fc, Main.Rematch2Tests)`).")) isa LoadError Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [7] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:67 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [10] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:76 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:564 [inlined] could not bind a type: Error During Test at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:67 Got exception outside of a @test FieldError: type Base.JuliaLowering.MacroExpansionError has no field `error`, available fields: `context`, `ex`, `msg`, `position`, `err` Stacktrace: [1] getproperty(x::Base.JuliaLowering.MacroExpansionError, f::Symbol) @ Base Base_compiler.jl:58 [2] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [5] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [8] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:67 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [11] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:77 [inlined] [12] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [13] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [14] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [15] top-level scope @ none:6 [16] eval(m::Module, e::Any) @ Core boot.jl:521 [17] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [18] _start() @ Base client.jl:596 caused by: MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:72: Could not bind `Unknown` as a type (due to `UndefVarError(:Unknown, 0x000000000000a7fc, Main.Rematch2Tests)`). Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_type(location::LineNumberNode, T::Symbol, input::Symbol, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:60 [3] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:201 [4] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [5] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [6] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [7] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [8] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [9] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [10] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [11] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [12] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [13] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [14] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [15] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [16] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [17] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [19] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [20] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [22] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [23] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:67 [inlined] [24] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [25] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[26] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:71 [inlined] ╰──── repeated 2 times [28] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [29] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [30] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [31] top-level scope @ none:6 [32] eval(m::Module, e::Any) @ Core boot.jl:521 [33] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [34] _start() @ Base client.jl:596 caused by: UndefVarError: `Unknown` not defined in `Main.Rematch2Tests` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:72 [2] eval(m::Module, e::Any) @ Core boot.jl:521 [3] bind_type(location::LineNumberNode, T::Symbol, input::Symbol, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:58 [4] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:201 [5] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [6] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [7] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [8] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [9] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [10] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [11] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [12] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [13] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [14] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [15] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [16] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [17] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [18] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [19] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [21] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [22] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [24] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:67 [inlined] [25] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[27] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:71 [inlined] ╰──── repeated 2 times [29] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [30] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [31] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [32] top-level scope @ none:6 [33] eval(m::Module, e::Any) @ Core boot.jl:521 [34] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [35] _start() @ Base client.jl:596 using abstract type for struct pattern: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:94 Expression: ex isa LoadError Evaluated: Base.JuliaLowering.MacroExpansionError(Base.JuliaLowering.MacroContext(Base.JuliaSyntax.SyntaxGraph{Dict{Symbol, Dict{Int64, Any}}}(UnitRange{Int64}[0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 1:3, 0:-1, 0:-1, 0:-1, 0:-1, 4:6, 0:-1, 7:9, 10:10, 11:14, 0:-1], [3, 4, 5, 8, 9, 10, 7, 11, 12, 13, 1, 2, 6, 14], Dict{Symbol, Dict{Int64, Any}}(:mod => Dict(), :kind => Dict(3 => K"Identifier", 2 => K"Value", 1 => K"Identifier", 4 => K"Value", 5 => K"Value", 6 => K"call", 13 => K"call", 8 => K"Identifier", 7 => K"Identifier", 10 => K"Value"…), :var_id => Dict(), :toplevel_pure => Dict(), :scope_type => Dict(), :macro_source => Dict(), :name_val => Dict(3 => "Foo", 1 => "@match", 16 => "@match", 12 => "nothing", 8 => "Term", 7 => "=>"), :syntax_flags => Dict(), :meta => Dict(), :scope_layer => Dict(16 => 1)…)), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:89 =#) (call Foo 1 2) (block (call => (call Term 1 2) nothing))), Base.JuliaLowering.ScopeLayer(1, Main.Rematch2Tests, 0, false, false), true), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:89 =#) (call Foo 1 2) (block (call => (call Term 1 2) nothing))), "Error expanding macro", :all, ErrorException("/home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:90: The type `Main.Rematch2Tests.Term` is an abstract type. Consider defining an extractor `Match.extract(::Type{Main.Rematch2Tests.Term`, ::Val{2}, _)`.")) isa LoadError Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [7] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:85 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [10] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:94 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:564 [inlined] using abstract type for struct pattern: Error During Test at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:85 Got exception outside of a @test FieldError: type Base.JuliaLowering.MacroExpansionError has no field `error`, available fields: `context`, `ex`, `msg`, `position`, `err` Stacktrace: [1] getproperty(x::Base.JuliaLowering.MacroExpansionError, f::Symbol) @ Base Base_compiler.jl:58 [2] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [5] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [8] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:85 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [11] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:95 [inlined] [12] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [13] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [14] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [15] top-level scope @ none:6 [16] eval(m::Module, e::Any) @ Core boot.jl:521 [17] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [18] _start() @ Base client.jl:596 caused by: MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:90: The type `Main.Rematch2Tests.Term` is an abstract type. Consider defining an extractor `Match.extract(::Type{Main.Rematch2Tests.Term`, ::Val{2}, _)`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:261 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [22] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:85 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [24] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[25] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:89 [inlined] ╰──── repeated 2 times [27] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [28] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [29] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [30] top-level scope @ none:6 [31] eval(m::Module, e::Any) @ Core boot.jl:521 [32] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [33] _start() @ Base client.jl:596 using abstract type for struct pattern with named parameter: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:111 Expression: ex isa LoadError Evaluated: Base.JuliaLowering.MacroExpansionError(Base.JuliaLowering.MacroContext(Base.JuliaSyntax.SyntaxGraph{Dict{Symbol, Dict{Int64, Any}}}(UnitRange{Int64}[0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 1:3, 0:-1, 0:-1, 0:-1, 0:-1, 4:5, 6:7, 0:-1, 8:10, 11:11, 12:15, 0:-1], [3, 4, 5, 9, 10, 8, 11, 7, 12, 13, 14, 1, 2, 6, 15], Dict{Symbol, Dict{Int64, Any}}(:mod => Dict(), :kind => Dict(3 => K"Identifier", 2 => K"Value", 1 => K"Identifier", 4 => K"Value", 5 => K"Value", 6 => K"call", 13 => K"Identifier", 8 => K"Identifier", 7 => K"Identifier", 10 => K"Value"…), :var_id => Dict(), :toplevel_pure => Dict(), :scope_type => Dict(), :macro_source => Dict(), :name_val => Dict(3 => "Foo", 1 => "@match", 17 => "@match", 13 => "nothing", 8 => "Term", 7 => "=>", 9 => "x"), :syntax_flags => Dict(), :meta => Dict(), :scope_layer => Dict(17 => 1)…)), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:106 =#) (call Foo 1 2) (block (call => (call Term (kw x 1)) nothing))), Base.JuliaLowering.ScopeLayer(1, Main.Rematch2Tests, 0, false, false), true), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:106 =#) (call Foo 1 2) (block (call => (call Term (kw x 1)) nothing))), "Error expanding macro", :all, ErrorException("/home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:107: The type `Main.Rematch2Tests.Term` is an abstract type. Struct patterns can only be used with concrete types.")) isa LoadError Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [7] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:102 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [10] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:111 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:564 [inlined] using abstract type for struct pattern with named parameter: Error During Test at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:102 Got exception outside of a @test FieldError: type Base.JuliaLowering.MacroExpansionError has no field `error`, available fields: `context`, `ex`, `msg`, `position`, `err` Stacktrace: [1] getproperty(x::Base.JuliaLowering.MacroExpansionError, f::Symbol) @ Base Base_compiler.jl:58 [2] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [5] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [8] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:102 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [11] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:112 [inlined] [12] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [13] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [14] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [15] top-level scope @ none:6 [16] eval(m::Module, e::Any) @ Core boot.jl:521 [17] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [18] _start() @ Base client.jl:596 caused by: MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:107: The type `Main.Rematch2Tests.Term` is an abstract type. Struct patterns can only be used with concrete types. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:263 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [22] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:102 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [24] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[25] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:106 [inlined] ╰──── repeated 2 times [27] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [28] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [29] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [30] top-level scope @ none:6 [31] eval(m::Module, e::Any) @ Core boot.jl:521 [32] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [33] _start() @ Base client.jl:596 missing type or extractor: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:129 Expression: ex isa LoadError Evaluated: Base.JuliaLowering.MacroExpansionError(Base.JuliaLowering.MacroContext(Base.JuliaSyntax.SyntaxGraph{Dict{Symbol, Dict{Int64, Any}}}(UnitRange{Int64}[0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 1:3, 0:-1, 0:-1, 0:-1, 0:-1 … 0:-1, 7:8, 9:11, 0:-1, 0:-1, 0:-1, 12:14, 15:16, 17:20, 0:-1], [3, 4, 5, 8, 9, 10, 12, 13, 7, 11, 14, 16, 17, 18, 15, 19, 1, 2, 6, 20], Dict{Symbol, Dict{Int64, Any}}(:mod => Dict(), :kind => Dict(3 => K"Identifier", 2 => K"Value", 1 => K"Identifier", 4 => K"Value", 5 => K"Value", 6 => K"call", 13 => K"Identifier", 8 => K"Identifier", 7 => K"Identifier", 10 => K"Identifier"…), :var_id => Dict(), :toplevel_pure => Dict(), :scope_type => Dict(), :macro_source => Dict(), :name_val => Dict(3 => "Foo", 1 => "@match", 13 => "y", 8 => "Unknown", 22 => "@match", 7 => "=>", 10 => "y", 17 => "_", 16 => "=>", 12 => "x"…), :syntax_flags => Dict(), :meta => Dict(), :scope_layer => Dict(22 => 1)…)), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:123 =#) (call Foo 1 2) (block (call => (call Unknown x y) (tuple x y)) (call => _ false))), Base.JuliaLowering.ScopeLayer(1, Main.Rematch2Tests, 0, false, false), true), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:123 =#) (call Foo 1 2) (block (call => (call Unknown x y) (tuple x y)) (call => _ false))), "Error expanding macro", :all, ErrorException("/home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:124: Could not bind `Unknown` as a type (due to `UndefVarError(:Unknown, 0x000000000000a7fc, Main.Rematch2Tests)`).")) isa LoadError Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [7] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:119 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [10] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:129 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:564 [inlined] missing type or extractor: Error During Test at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:119 Got exception outside of a @test FieldError: type Base.JuliaLowering.MacroExpansionError has no field `error`, available fields: `context`, `ex`, `msg`, `position`, `err` Stacktrace: [1] getproperty(x::Base.JuliaLowering.MacroExpansionError, f::Symbol) @ Base Base_compiler.jl:58 [2] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [5] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [8] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:119 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [11] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:130 [inlined] [12] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [13] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [14] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [15] top-level scope @ none:6 [16] eval(m::Module, e::Any) @ Core boot.jl:521 [17] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [18] _start() @ Base client.jl:596 caused by: MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:124: Could not bind `Unknown` as a type (due to `UndefVarError(:Unknown, 0x000000000000a7fc, Main.Rematch2Tests)`). Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_type(location::LineNumberNode, T::Symbol, input::Symbol, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:60 [3] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:238 [4] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [5] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [6] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [7] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [8] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [9] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [10] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [11] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [12] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [13] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [14] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [15] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [16] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [17] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [19] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [20] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [22] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [23] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:119 [inlined] [24] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [25] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[26] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:123 [inlined] ╰──── repeated 2 times [28] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [29] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [30] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [31] top-level scope @ none:6 [32] eval(m::Module, e::Any) @ Core boot.jl:521 [33] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [34] _start() @ Base client.jl:596 caused by: UndefVarError: `Unknown` not defined in `Main.Rematch2Tests` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:124 [2] eval(m::Module, e::Any) @ Core boot.jl:521 [3] bind_type(location::LineNumberNode, T::Symbol, input::Symbol, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:58 [4] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:238 [5] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [6] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [7] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [8] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [9] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [10] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [11] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [12] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [13] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [14] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [15] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [16] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [17] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [18] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [19] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [21] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [22] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [24] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:119 [inlined] [25] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[27] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:123 [inlined] ╰──── repeated 2 times [29] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [30] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [31] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [32] top-level scope @ none:6 [33] eval(m::Module, e::Any) @ Core boot.jl:521 [34] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [35] _start() @ Base client.jl:596 location of error for redundant field patterns 1: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:147 Expression: ex isa LoadError Evaluated: Base.JuliaLowering.MacroExpansionError(Base.JuliaLowering.MacroContext(Base.JuliaSyntax.SyntaxGraph{Dict{Symbol, Dict{Int64, Any}}}(UnitRange{Int64}[0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 1:3, 0:-1, 0:-1, 0:-1, 0:-1 … 0:-1, 6:7, 8:10, 0:-1, 0:-1, 11:12, 13:15, 16:16, 17:20, 0:-1], [3, 4, 5, 9, 10, 12, 13, 8, 11, 14, 16, 17, 7, 15, 18, 19, 1, 2, 6, 20], Dict{Symbol, Dict{Int64, Any}}(:mod => Dict(), :kind => Dict(3 => K"Identifier", 2 => K"Value", 1 => K"Identifier", 4 => K"Value", 5 => K"Value", 6 => K"call", 13 => K"Identifier", 8 => K"Identifier", 7 => K"Identifier", 10 => K"Identifier"…), :var_id => Dict(), :toplevel_pure => Dict(), :scope_type => Dict(), :macro_source => Dict(), :name_val => Dict(3 => "Foo", 1 => "@match", 13 => "x2", 8 => "Foo", 22 => "@match", 7 => "=>", 10 => "x1", 17 => "x2", 16 => "x1", 12 => "x"…), :syntax_flags => Dict(), :meta => Dict(), :scope_layer => Dict(22 => 1)…)), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:142 =#) (call Foo 1 2) (block (call => (call Foo (kw x x1) (kw x x2)) (tuple x1 x2)))), Base.JuliaLowering.ScopeLayer(1, Main.Rematch2Tests, 0, false, false), true), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:142 =#) (call Foo 1 2) (block (call => (call Foo (kw x x1) (kw x x2)) (tuple x1 x2)))), "Error expanding macro", :all, ErrorException("/home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:143: Pattern `Foo(x = x1, x = x2)` has duplicate named arguments [:x, :x].")) isa LoadError Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [7] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:138 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [10] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:147 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:564 [inlined] location of error for redundant field patterns 1: Error During Test at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:138 Got exception outside of a @test FieldError: type Base.JuliaLowering.MacroExpansionError has no field `error`, available fields: `context`, `ex`, `msg`, `position`, `err` Stacktrace: [1] getproperty(x::Base.JuliaLowering.MacroExpansionError, f::Symbol) @ Base Base_compiler.jl:58 [2] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [5] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [8] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:138 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [11] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:148 [inlined] [12] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [13] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [14] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [15] top-level scope @ none:6 [16] eval(m::Module, e::Any) @ Core boot.jl:521 [17] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [18] _start() @ Base client.jl:596 caused by: MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:143: Pattern `Foo(x = x1, x = x2)` has duplicate named arguments [:x, :x]. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:228 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [22] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:138 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [24] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[25] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:142 [inlined] ╰──── repeated 2 times [27] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [28] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [29] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [30] top-level scope @ none:6 [31] eval(m::Module, e::Any) @ Core boot.jl:521 [32] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [33] _start() @ Base client.jl:596 location of error for redundant field patterns 2: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:164 Expression: ex isa LoadError Evaluated: Base.JuliaLowering.MacroExpansionError(Base.JuliaLowering.MacroContext(Base.JuliaSyntax.SyntaxGraph{Dict{Symbol, Dict{Int64, Any}}}(UnitRange{Int64}[0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 1:3, 0:-1, 0:-1, 0:-1, 0:-1, 4:5, 0:-1, 0:-1, 6:7, 8:10, 0:-1, 11:13, 14:14, 15:18, 0:-1], [3, 4, 5, 9, 10, 12, 13, 8, 11, 14, 7, 15, 16, 17, 1, 2, 6, 18], Dict{Symbol, Dict{Int64, Any}}(:mod => Dict(), :kind => Dict(3 => K"Identifier", 2 => K"Value", 1 => K"Identifier", 4 => K"Value", 5 => K"Value", 6 => K"call", 13 => K"Identifier", 8 => K"Identifier", 7 => K"Identifier", 10 => K"Identifier"…), :var_id => Dict(), :toplevel_pure => Dict(), :scope_type => Dict(), :macro_source => Dict(), :name_val => Dict(3 => "Foo", 20 => "@match", 1 => "@match", 13 => "x2", 12 => "x", 8 => "Foo", 7 => "=>", 9 => "x", 10 => "x1"), :syntax_flags => Dict(), :meta => Dict(), :scope_layer => Dict(20 => 1)…)), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:159 =#) (call Foo 1 2) (block (call => (call Foo (kw x x1) (kw x x2)) 1))), Base.JuliaLowering.ScopeLayer(1, Main.Rematch2Tests, 0, false, false), true), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:159 =#) (call Foo 1 2) (block (call => (call Foo (kw x x1) (kw x x2)) 1))), "Error expanding macro", :all, ErrorException("/home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:160: Pattern `Foo(x = x1, x = x2)` has duplicate named arguments [:x, :x].")) isa LoadError Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [7] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:155 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [10] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:164 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:564 [inlined] location of error for redundant field patterns 2: Error During Test at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:155 Got exception outside of a @test FieldError: type Base.JuliaLowering.MacroExpansionError has no field `error`, available fields: `context`, `ex`, `msg`, `position`, `err` Stacktrace: [1] getproperty(x::Base.JuliaLowering.MacroExpansionError, f::Symbol) @ Base Base_compiler.jl:58 [2] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [5] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [8] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:155 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [11] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:165 [inlined] [12] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [13] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [14] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [15] top-level scope @ none:6 [16] eval(m::Module, e::Any) @ Core boot.jl:521 [17] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [18] _start() @ Base client.jl:596 caused by: MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:160: Pattern `Foo(x = x1, x = x2)` has duplicate named arguments [:x, :x]. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:228 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [22] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:155 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [24] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[25] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:159 [inlined] ╰──── repeated 2 times [27] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [28] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [29] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [30] top-level scope @ none:6 [31] eval(m::Module, e::Any) @ Core boot.jl:521 [32] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [33] _start() @ Base client.jl:596 mix positional and named field patterns: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:181 Expression: ex isa LoadError Evaluated: Base.JuliaLowering.MacroExpansionError(Base.JuliaLowering.MacroContext(Base.JuliaSyntax.SyntaxGraph{Dict{Symbol, Dict{Int64, Any}}}(UnitRange{Int64}[0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 1:3, 0:-1, 0:-1, 0:-1, 0:-1, 4:5, 0:-1, 6:8, 0:-1, 9:11, 12:12, 13:16, 0:-1], [3, 4, 5, 9, 10, 8, 11, 12, 7, 13, 14, 15, 1, 2, 6, 16], Dict{Symbol, Dict{Int64, Any}}(:mod => Dict(), :kind => Dict(3 => K"Identifier", 2 => K"Value", 1 => K"Identifier", 4 => K"Value", 5 => K"Value", 6 => K"call", 13 => K"call", 8 => K"Identifier", 7 => K"Identifier", 10 => K"Identifier"…), :var_id => Dict(), :toplevel_pure => Dict(), :scope_type => Dict(), :macro_source => Dict(), :name_val => Dict(3 => "Foo", 1 => "@match", 12 => "x2", 18 => "@match", 8 => "Foo", 7 => "=>", 9 => "x", 10 => "x1"), :syntax_flags => Dict(), :meta => Dict(), :scope_layer => Dict(18 => 1)…)), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:176 =#) (call Foo 1 2) (block (call => (call Foo (kw x x1) x2) 1))), Base.JuliaLowering.ScopeLayer(1, Main.Rematch2Tests, 0, false, false), true), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:176 =#) (call Foo 1 2) (block (call => (call Foo (kw x x1) x2) 1))), "Error expanding macro", :all, ErrorException("/home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:177: Pattern `Foo(x = x1, x2)` mixes named and positional arguments.")) isa LoadError Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [7] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:172 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [10] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:181 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:564 [inlined] mix positional and named field patterns: Error During Test at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:172 Got exception outside of a @test FieldError: type Base.JuliaLowering.MacroExpansionError has no field `error`, available fields: `context`, `ex`, `msg`, `position`, `err` Stacktrace: [1] getproperty(x::Base.JuliaLowering.MacroExpansionError, f::Symbol) @ Base Base_compiler.jl:58 [2] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [5] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [8] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:172 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [11] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:182 [inlined] [12] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [13] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [14] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [15] top-level scope @ none:6 [16] eval(m::Module, e::Any) @ Core boot.jl:521 [17] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [18] _start() @ Base client.jl:596 caused by: MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:177: Pattern `Foo(x = x1, x2)` mixes named and positional arguments. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:231 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [22] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:172 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [24] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[25] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:176 [inlined] ╰──── repeated 2 times [27] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [28] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [29] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [30] top-level scope @ none:6 [31] eval(m::Module, e::Any) @ Core boot.jl:521 [32] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [33] _start() @ Base client.jl:596 wrong field count: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:198 Expression: ex isa LoadError Evaluated: Base.JuliaLowering.MacroExpansionError(Base.JuliaLowering.MacroContext(Base.JuliaSyntax.SyntaxGraph{Dict{Symbol, Dict{Int64, Any}}}(UnitRange{Int64}[0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 1:3, 0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 4:7, 0:-1, 8:10, 11:11, 12:15, 0:-1], [3, 4, 5, 8, 9, 10, 11, 7, 12, 13, 14, 1, 2, 6, 15], Dict{Symbol, Dict{Int64, Any}}(:mod => Dict(), :kind => Dict(3 => K"Identifier", 2 => K"Value", 1 => K"Identifier", 4 => K"Value", 5 => K"Value", 6 => K"call", 13 => K"Value", 8 => K"Identifier", 7 => K"Identifier", 10 => K"Identifier"…), :var_id => Dict(), :toplevel_pure => Dict(), :scope_type => Dict(), :macro_source => Dict(), :name_val => Dict(3 => "Foo", 1 => "@match", 17 => "@match", 8 => "Foo", 11 => "z", 7 => "=>", 9 => "x", 10 => "y"), :syntax_flags => Dict(), :meta => Dict(), :scope_layer => Dict(17 => 1)…)), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:193 =#) (call Foo 1 2) (block (call => (call Foo x y z) 1))), Base.JuliaLowering.ScopeLayer(1, Main.Rematch2Tests, 0, false, false), true), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:193 =#) (call Foo 1 2) (block (call => (call Foo x y z) 1))), "Error expanding macro", :all, ErrorException("/home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:194: The type `Main.Rematch2Tests.Foo` has 2 fields but the pattern expects 3 fields.")) isa LoadError Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [7] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:189 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [10] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:198 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:564 [inlined] wrong field count: Error During Test at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:189 Got exception outside of a @test FieldError: type Base.JuliaLowering.MacroExpansionError has no field `error`, available fields: `context`, `ex`, `msg`, `position`, `err` Stacktrace: [1] getproperty(x::Base.JuliaLowering.MacroExpansionError, f::Symbol) @ Base Base_compiler.jl:58 [2] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [5] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [8] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:189 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [11] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:199 [inlined] [12] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [13] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [14] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [15] top-level scope @ none:6 [16] eval(m::Module, e::Any) @ Core boot.jl:521 [17] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [18] _start() @ Base client.jl:596 caused by: MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:194: The type `Main.Rematch2Tests.Foo` has 2 fields but the pattern expects 3 fields. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:270 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [22] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:189 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [24] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[25] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:193 [inlined] ╰──── repeated 2 times [27] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [28] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [29] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [30] top-level scope @ none:6 [31] eval(m::Module, e::Any) @ Core boot.jl:521 [32] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [33] _start() @ Base client.jl:596 field not found: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:215 Expression: ex isa LoadError Evaluated: Base.JuliaLowering.MacroExpansionError(Base.JuliaLowering.MacroContext(Base.JuliaSyntax.SyntaxGraph{Dict{Symbol, Dict{Int64, Any}}}(UnitRange{Int64}[0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 1:3, 0:-1, 0:-1, 0:-1, 0:-1, 4:5, 6:7, 0:-1, 8:10, 11:11, 12:15, 0:-1], [3, 4, 5, 9, 10, 8, 11, 7, 12, 13, 14, 1, 2, 6, 15], Dict{Symbol, Dict{Int64, Any}}(:mod => Dict(), :kind => Dict(3 => K"Identifier", 2 => K"Value", 1 => K"Identifier", 4 => K"Value", 5 => K"Value", 6 => K"call", 13 => K"Value", 8 => K"Identifier", 7 => K"Identifier", 10 => K"Value"…), :var_id => Dict(), :toplevel_pure => Dict(), :scope_type => Dict(), :macro_source => Dict(), :name_val => Dict(3 => "Foo", 1 => "@match", 17 => "@match", 8 => "Foo", 7 => "=>", 9 => "z"), :syntax_flags => Dict(), :meta => Dict(), :scope_layer => Dict(17 => 1)…)), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:210 =#) (call Foo 1 2) (block (call => (call Foo (kw z 1)) 1))), Base.JuliaLowering.ScopeLayer(1, Main.Rematch2Tests, 0, false, false), true), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:210 =#) (call Foo 1 2) (block (call => (call Foo (kw z 1)) 1))), "Error expanding macro", :all, ErrorException("/home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:211: Type `Main.Rematch2Tests.Foo` has no field `z`.")) isa LoadError Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [7] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:206 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [10] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:215 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:564 [inlined] field not found: Error During Test at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:206 Got exception outside of a @test FieldError: type Base.JuliaLowering.MacroExpansionError has no field `error`, available fields: `context`, `ex`, `msg`, `position`, `err` Stacktrace: [1] getproperty(x::Base.JuliaLowering.MacroExpansionError, f::Symbol) @ Base Base_compiler.jl:58 [2] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [5] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [8] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:206 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [11] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:216 [inlined] [12] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [13] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [14] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [15] top-level scope @ none:6 [16] eval(m::Module, e::Any) @ Core boot.jl:521 [17] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [18] _start() @ Base client.jl:596 caused by: MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:211: Type `Main.Rematch2Tests.Foo` has no field `z`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:287 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [22] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:206 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [24] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[25] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:210 [inlined] ╰──── repeated 2 times [27] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [28] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [29] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [30] top-level scope @ none:6 [31] eval(m::Module, e::Any) @ Core boot.jl:521 [32] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [33] _start() @ Base client.jl:596 multiple splats: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:232 Expression: ex isa LoadError Evaluated: Base.JuliaLowering.MacroExpansionError(Base.JuliaLowering.MacroContext(Base.JuliaSyntax.SyntaxGraph{Dict{Symbol, Dict{Int64, Any}}}(UnitRange{Int64}[0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 1:3, 0:-1, 0:-1, 4:4, 0:-1, 0:-1, 5:5, 6:8, 0:-1, 9:11, 12:12, 13:16, 0:-1], [3, 4, 5, 8, 11, 9, 10, 12, 7, 13, 14, 15, 1, 2, 6, 16], Dict{Symbol, Dict{Int64, Any}}(:mod => Dict(), :kind => Dict(3 => K"Value", 2 => K"Value", 1 => K"Identifier", 4 => K"Value", 5 => K"Value", 6 => K"vect", 13 => K"vect", 8 => K"Identifier", 7 => K"Identifier", 10 => K"Identifier"…), :var_id => Dict(), :toplevel_pure => Dict(), :scope_type => Dict(), :macro_source => Dict(), :name_val => Dict(1 => "@match", 18 => "@match", 8 => "x", 11 => "z", 7 => "=>", 10 => "y"), :syntax_flags => Dict(), :meta => Dict(), :scope_layer => Dict(18 => 1)…)), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:227 =#) (vect 1 2 3) (block (call => (vect (... x) y (... z)) 1))), Base.JuliaLowering.ScopeLayer(1, Main.Rematch2Tests, 0, false, false), true), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:227 =#) (vect 1 2 3) (block (call => (vect (... x) y (... z)) 1))), "Error expanding macro", :all, ErrorException("/home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:228: More than one `...` in pattern `[x..., y, z...]`.")) isa LoadError Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [7] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:223 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [10] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:232 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:564 [inlined] multiple splats: Error During Test at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:223 Got exception outside of a @test FieldError: type Base.JuliaLowering.MacroExpansionError has no field `error`, available fields: `context`, `ex`, `msg`, `position`, `err` Stacktrace: [1] getproperty(x::Base.JuliaLowering.MacroExpansionError, f::Symbol) @ Base Base_compiler.jl:58 [2] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [5] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [8] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:223 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [11] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:233 [inlined] [12] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [13] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [14] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [15] top-level scope @ none:6 [16] eval(m::Module, e::Any) @ Core boot.jl:521 [17] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [18] _start() @ Base client.jl:596 caused by: MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:228: More than one `...` in pattern `[x..., y, z...]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:416 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [22] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:223 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [24] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[25] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:227 [inlined] ╰──── repeated 2 times [27] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [28] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [29] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [30] top-level scope @ none:6 [31] eval(m::Module, e::Any) @ Core boot.jl:521 [32] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [33] _start() @ Base client.jl:596 unrecognized pattern syntax: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:249 Expression: ex isa LoadError Evaluated: Base.JuliaLowering.MacroExpansionError(Base.JuliaLowering.MacroContext(Base.JuliaSyntax.SyntaxGraph{Dict{Symbol, Dict{Int64, Any}}}(UnitRange{Int64}[0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 1:3, 0:-1, 4:6, 7:7, 8:11, 0:-1], [5, 6, 7, 4, 8, 9, 10, 1, 2, 3, 11], Dict{Symbol, Dict{Int64, Any}}(:mod => Dict(), :kind => Dict(3 => K"Value", 2 => K"Value", 1 => K"Identifier", 4 => K"Identifier", 5 => K"Identifier", 6 => K"Identifier", 13 => K"Identifier", 8 => K"call", 7 => K"Identifier", 10 => K"call"…), :var_id => Dict(), :toplevel_pure => Dict(), :scope_type => Dict(), :macro_source => Dict(), :name_val => Dict(1 => "@match", 4 => "=>", 5 => "+", 6 => "x", 13 => "@match", 7 => "y"), :syntax_flags => Dict(), :meta => Dict(), :scope_layer => Dict(13 => 1)…)), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:244 =#) 1 (block (call => (call + x y) 1))), Base.JuliaLowering.ScopeLayer(1, Main.Rematch2Tests, 0, false, false), true), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:244 =#) 1 (block (call => (call + x y) 1))), "Error expanding macro", :all, ErrorException("/home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:245: Unrecognized pattern syntax `x + y`.")) isa LoadError Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [7] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:240 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [10] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:249 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:564 [inlined] unrecognized pattern syntax: Error During Test at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:240 Got exception outside of a @test FieldError: type Base.JuliaLowering.MacroExpansionError has no field `error`, available fields: `context`, `ex`, `msg`, `position`, `err` Stacktrace: [1] getproperty(x::Base.JuliaLowering.MacroExpansionError, f::Symbol) @ Base Base_compiler.jl:58 [2] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [5] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [8] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:240 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [11] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:250 [inlined] [12] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [13] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [14] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [15] top-level scope @ none:6 [16] eval(m::Module, e::Any) @ Core boot.jl:521 [17] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [18] _start() @ Base client.jl:596 caused by: MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:245: Unrecognized pattern syntax `x + y`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:491 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Int64, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Int64, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Int64, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [22] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:240 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [24] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[25] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:244 [inlined] ╰──── repeated 2 times [27] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [28] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [29] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [30] top-level scope @ none:6 [31] eval(m::Module, e::Any) @ Core boot.jl:521 [32] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [33] _start() @ Base client.jl:596 bad match case syntax: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:300 Expression: ex isa LoadError Evaluated: Base.JuliaLowering.MacroExpansionError(Base.JuliaLowering.MacroContext(Base.JuliaSyntax.SyntaxGraph{Dict{Symbol, Dict{Int64, Any}}}(UnitRange{Int64}[0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 0:-1, 1:3, 0:-1, 4:4, 5:6, 7:7, 8:11, 0:-1], [4, 5, 6, 8, 7, 9, 10, 1, 2, 3, 11], Dict{Symbol, Dict{Int64, Any}}(:mod => Dict(), :kind => Dict(3 => K"Value", 2 => K"Value", 1 => K"Identifier", 4 => K"Identifier", 5 => K"Value", 6 => K"Value", 13 => K"Identifier", 8 => K"Value", 7 => K"call", 10 => K"="…), :var_id => Dict(), :toplevel_pure => Dict(), :scope_type => Dict(), :macro_source => Dict(), :name_val => Dict(1 => "@match", 4 => "+", 13 => "@match"), :syntax_flags => Dict(), :meta => Dict(), :scope_layer => Dict(13 => 1)…)), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:295 =#) 1 (block (= (call + 2 2) (block 4)))), Base.JuliaLowering.ScopeLayer(1, Main.Rematch2Tests, 0, false, false), true), (macrocall @match :(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:295 =#) 1 (block (= (call + 2 2) (block 4)))), "Error expanding macro", :all, ErrorException("/home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:296: Unrecognized @match case syntax: `2 + 2 = begin\n #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:296 =#\n 4\n end`.")) isa LoadError Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [7] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:291 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [10] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:300 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:564 [inlined] bad match case syntax: Error During Test at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:291 Got exception outside of a @test FieldError: type Base.JuliaLowering.MacroExpansionError has no field `error`, available fields: `context`, `ex`, `msg`, `position`, `err` Stacktrace: [1] getproperty(x::Base.JuliaLowering.MacroExpansionError, f::Symbol) @ Base Base_compiler.jl:58 [2] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [5] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [8] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:291 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [11] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:301 [inlined] [12] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [13] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [14] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [15] top-level scope @ none:6 [16] eval(m::Module, e::Any) @ Core boot.jl:521 [17] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [18] _start() @ Base client.jl:596 caused by: MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:296: Unrecognized @match case syntax: `2 + 2 = begin #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:296 =# 4 end`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:698 [3] build_automaton_core(value::Int64, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [4] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [5] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Int64, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [6] handle_match_cases(location::LineNumberNode, mod::Module, value::Int64, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [7] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [8] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [9] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [10] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [11] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [12] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [13] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [14] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [15] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [18] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:49 [inlined] [19] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [21] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:291 [inlined] [22] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[24] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:295 [inlined] ╰──── repeated 2 times [26] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [27] top-level scope @ ~/.julia/packages/Match/nz2tn/test/runtests.jl:10 [28] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:327 [29] top-level scope @ none:6 [30] eval(m::Module, e::Any) @ Core boot.jl:521 [31] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [32] _start() @ Base client.jl:596 Match Struct by field names: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:340 Expression: #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:340 =# @eval #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:340 =# @match(Foo(1, 2), begin #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:341 =# Foo(x = x1, x = x2) => (x1, x2) end) Expected: LoadError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:341: Pattern `Foo(x = x1, x = x2)` has duplicate named arguments [:x, :x]. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:228 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:312 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[22] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:340 [inlined] ╰──── repeated 3 times Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:312 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:340 [inlined] ╰─── repeated 2 times Splats: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:458 Expression: #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:458 =# @eval #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:458 =# @match(foo, begin #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:459 =# Foo(x...) => :nope end) Expected: LoadError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:459: The type `Main.Rematch2Tests.Foo` has 2 fields but the pattern expects 1 fields. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:270 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Symbol, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Symbol, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Symbol, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:437 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[22] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:458 [inlined] ╰──── repeated 3 times Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:437 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:458 [inlined] ╰─── repeated 2 times Splats: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:463 Expression: #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:463 =# @eval #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:463 =# @match([1, 2, 3], begin #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:464 =# [a..., b, c...] => :nope end) Expected: LoadError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:464: More than one `...` in pattern `[a..., b, c...]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:416 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:437 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[22] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:463 [inlined] ╰──── repeated 3 times Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:437 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:463 [inlined] ╰─── repeated 2 times Splats: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:466 Expression: #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:466 =# @eval #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:466 =# @match([1, 2, 3], begin #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:467 =# (a..., b, c...) => :nope end) Expected: LoadError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:467: More than one `...` in pattern `(a..., b, c...)`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:416 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:437 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[22] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:466 [inlined] ╰──── repeated 3 times Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:437 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:466 [inlined] ╰─── repeated 2 times structs matching all fields: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:519 Expression: #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:519 =# @eval(#= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:519 =# @match(Foo(x) = begin #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:519 =# Foo(1, 2) end)) == (1, 2) Expected: LoadError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:519: The type `Main.Rematch2Tests.Foo` has 2 fields but the pattern expects 1 fields. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:270 [3] handle_match_eq(location::LineNumberNode, mod::Module, expr::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:11 [4] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:75 [5] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [6] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [7] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [8] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [9] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [10] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [11] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [12] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [15] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:517 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[18] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:519 [inlined] ╰──── repeated 3 times Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:517 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:519 [inlined] ╰─── repeated 2 times structs matching all fields: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:520 Expression: #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:520 =# @eval #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:520 =# @match(Foo(x) = begin #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:520 =# Foo(1, 2) end) Expected: LoadError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:520: The type `Main.Rematch2Tests.Foo` has 2 fields but the pattern expects 1 fields. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:270 [3] handle_match_eq(location::LineNumberNode, mod::Module, expr::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:11 [4] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:75 [5] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [6] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [7] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [8] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [9] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [10] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [11] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [12] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [15] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:517 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[18] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:520 [inlined] ╰──── repeated 3 times Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:517 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:520 [inlined] ╰─── repeated 2 times structs matching all fields: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:521 Expression: #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:521 =# @eval #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:521 =# @match(Foo(x, y, z) = begin #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:521 =# Foo(1, 2) end) Expected: LoadError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:521: The type `Main.Rematch2Tests.Foo` has 2 fields but the pattern expects 3 fields. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:270 [3] handle_match_eq(location::LineNumberNode, mod::Module, expr::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:11 [4] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:75 [5] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [6] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [7] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [8] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [9] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [10] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [11] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [12] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [15] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:517 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[18] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:521 [inlined] ╰──── repeated 3 times Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:517 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:521 [inlined] ╰─── repeated 2 times structs matching all fields: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:524 Expression: #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:524 =# @eval #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:524 =# @match(Foo(1, 2), begin #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:525 =# Foo(x, y) => :ok #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:526 =# Foo(x) => :nope end) Expected: LoadError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:526: The type `Main.Rematch2Tests.Foo` has 2 fields but the pattern expects 1 fields. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:270 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:517 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[22] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:524 [inlined] ╰──── repeated 3 times Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:517 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:524 [inlined] ╰─── repeated 2 times abstract type: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:531 Expression: #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:531 =# @eval #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:531 =# @match(Foo(1, 2), begin #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:532 =# Term(x, y) => :nope end) Expected: LoadError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:532: The type `Main.Rematch2Tests.Term` is an abstract type. Consider defining an extractor `Match.extract(::Type{Main.Rematch2Tests.Term`, ::Val{2}, _)`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:261 [3] bind_case(case_number::Int64, location::LineNumberNode, case::Expr, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:706 [4] build_automaton_core(value::Expr, source_cases::Vector{Any}, location::LineNumberNode, predeclared_temps::Vector{Any}, binder::Match.BinderContext) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:15 [5] build_automaton(location::LineNumberNode, mod::Module, value::Any, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:149 [6] build_deduplicated_automaton(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:158 [inlined] [7] handle_match_cases(location::LineNumberNode, mod::Module, value::Expr, body::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/match_cases_opt.jl:479 [8] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:114 [9] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [10] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [11] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [12] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [13] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [14] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [15] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [16] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [19] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:530 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[22] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:531 [inlined] ╰──── repeated 3 times Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:530 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:531 [inlined] ╰─── repeated 2 times Miscellanea: Test Failed at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:681 Expression: #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:681 =# @eval #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:681 =# @match(a + b = begin #= /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:681 =# x end) Expected: LoadError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @match in module Main.Rematch2Tests: #= none:0 =# - Error expanding macro Caused by: /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:681: Unrecognized pattern syntax `a + b`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] bind_pattern!(location::LineNumberNode, source::Expr, input::Symbol, binder::Match.BinderContext, assigned::Base.ImmutableDict{Symbol, Symbol}) @ Match ~/.julia/packages/Match/nz2tn/src/binding.jl:491 [3] handle_match_eq(location::LineNumberNode, mod::Module, expr::Expr) @ Match ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:11 [4] macro expansion @ ~/.julia/packages/Match/nz2tn/src/matchmacro.jl:75 [5] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [6] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [7] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:485 [8] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [9] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:530 [10] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:518 [inlined] [11] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:523 [inlined] [12] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [15] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:644 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[18] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:681 [inlined] ╰──── repeated 3 times Stacktrace: [1] top-level scope @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:6 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:644 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/Match/nz2tn/test/rematch.jl:681 [inlined] ╰─── repeated 2 times Test Summary: | Pass Fail Error Total Time More @match tests | 91 24 12 127 22.7s Assignments in the value do not leak out | 2 2 0.5s Assignments in a where clause do not leak to the rule's result | 3 3 0.0s A pure type pattern | 4 4 0.5s bound variables may be used in subsequent interpolations | 3 3 0.0s diagnostics produced are excellent | 6 14 12 32 16.1s stack trace for MatchFailure | 2 2 4 7.0s could not bind a type | 1 1 2 7.8s using abstract type for struct pattern | 1 1 2 0.1s using abstract type for struct pattern with named parameter | 1 1 2 0.1s missing type or extractor | 1 1 2 0.1s location of error for redundant field patterns 1 | 1 1 2 0.3s location of error for redundant field patterns 2 | 1 1 2 0.1s mix positional and named field patterns | 1 1 2 0.1s wrong field count | 1 1 2 0.1s field not found | 1 1 2 0.1s multiple splats | 1 1 2 0.1s unrecognized pattern syntax | 1 1 2 0.4s type binding changed 1 | 2 2 0.0s type binding changed 2 | 2 2 0.0s bad match case syntax | 1 1 2 0.1s Match Struct by field names | 9 1 10 0.7s non-struct Matches | 3 3 0.0s logical expressions with branches | 9 9 0.0s Splats | 11 3 14 0.7s Inference in branches | 2 2 0.0s Nested Guards | 3 3 0.5s structs matching all fields | 4 4 0.2s abstract type | 1 1 0.0s extractor function | 1 1 1.0s extractor function that might fail | 3 3 0.1s nested extractor function | 1 1 0.4s extract to override type match | 1 1 0.3s extract to override type match 2 | 1 1 0.2s Named tuples | 12 12 0.0s Miscellanea | 8 1 9 0.1s Interpolated Values | 9 9 1.0s RNG of the outermost testset: Random.Xoshiro(0x37be7e9a4c963038, 0xeab50012a62af125, 0x8ea962d6442fce3e, 0xfee5be4b7c58114a, 0xb974a111fa6e83e3) ERROR: LoadError: Some tests did not pass: 91 passed, 24 failed, 12 errored, 0 broken. in expression starting at /home/pkgeval/.julia/packages/Match/nz2tn/test/rematch.jl:6 in expression starting at /home/pkgeval/.julia/packages/Match/nz2tn/test/runtests.jl:1 Testing failed after 330.76s ERROR: LoadError: Package Match errored during testing Stacktrace: [1] pkgerror(msg::String) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.14/Pkg/src/Types.jl:68 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool) @ Pkg.Operations /opt/julia/share/julia/stdlib/v1.14/Pkg/src/Operations.jl:3247 [3] test(ctx::Pkg.Types.Context, pkgs::Vector{PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::@Kwargs{io::IOContext{IO}}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:587 [4] test(pkgs::Vector{PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:172 [5] test(pkgs::Vector{String}; kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:160 [6] test(pkg::String; kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:159 [inlined] [7] top-level scope @ /PkgEval.jl/scripts/evaluate.jl:223 [8] include(mod::Module, _path::String) @ Base Base.jl:326 [9] exec_options(opts::Base.JLOptions) @ Base client.jl:355 [10] _start() @ Base client.jl:596 in expression starting at /PkgEval.jl/scripts/evaluate.jl:214 PkgEval failed after 624.06s: package tests unexpectedly errored