[INFO] fetching crate rust-sitter-macro 0.4.1...
[INFO] testing rust-sitter-macro-0.4.1 against 1.75.0 for beta-1.76-1
[INFO] extracting crate rust-sitter-macro 0.4.1 into /workspace/builds/worker-0-tc1/source
[INFO] validating manifest of crates.io crate rust-sitter-macro 0.4.1 on toolchain 1.75.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate rust-sitter-macro 0.4.1
[INFO] finished tweaking crates.io crate rust-sitter-macro 0.4.1
[INFO] tweaked toml for crates.io crate rust-sitter-macro 0.4.1 written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded rust-sitter-common v0.4.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 353f12cad3c571a625caec6fe6835159eff8a24d791154941bacd1b7b8c981ae
[INFO] running `Command { std: "docker" "start" "-a" "353f12cad3c571a625caec6fe6835159eff8a24d791154941bacd1b7b8c981ae", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "353f12cad3c571a625caec6fe6835159eff8a24d791154941bacd1b7b8c981ae", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "353f12cad3c571a625caec6fe6835159eff8a24d791154941bacd1b7b8c981ae", kill_on_drop: false }`
[INFO] [stdout] 353f12cad3c571a625caec6fe6835159eff8a24d791154941bacd1b7b8c981ae
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1b74ca97d85c2af62f666b0b327724928787704aba032311cc41dfe21c0599da
[INFO] running `Command { std: "docker" "start" "-a" "1b74ca97d85c2af62f666b0b327724928787704aba032311cc41dfe21c0599da", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling rust-sitter-common v0.4.1
[INFO] [stderr]    Compiling rust-sitter-macro v0.4.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 3.20s
[INFO] running `Command { std: "docker" "inspect" "1b74ca97d85c2af62f666b0b327724928787704aba032311cc41dfe21c0599da", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1b74ca97d85c2af62f666b0b327724928787704aba032311cc41dfe21c0599da", kill_on_drop: false }`
[INFO] [stdout] 1b74ca97d85c2af62f666b0b327724928787704aba032311cc41dfe21c0599da
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 404e4736f3774c55bf52b9ff61a0b2c0228eab25d71689d301b993a0f86dc1c2
[INFO] running `Command { std: "docker" "start" "-a" "404e4736f3774c55bf52b9ff61a0b2c0228eab25d71689d301b993a0f86dc1c2", kill_on_drop: false }`
[INFO] [stderr]    Compiling rustix v0.38.28
[INFO] [stderr]    Compiling libc v0.2.151
[INFO] [stderr]    Compiling linux-raw-sys v0.4.12
[INFO] [stderr]    Compiling linked-hash-map v0.5.6
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling bitflags v2.4.1
[INFO] [stderr]    Compiling similar v2.4.0
[INFO] [stderr]    Compiling fastrand v2.0.1
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling rust-sitter-macro v0.4.1 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling yaml-rust v0.4.5
[INFO] [stderr]    Compiling console v0.15.7
[INFO] [stderr]    Compiling insta v1.34.0
[INFO] [stderr]    Compiling tempfile v3.9.0
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 2.55s
[INFO] running `Command { std: "docker" "inspect" "404e4736f3774c55bf52b9ff61a0b2c0228eab25d71689d301b993a0f86dc1c2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "404e4736f3774c55bf52b9ff61a0b2c0228eab25d71689d301b993a0f86dc1c2", kill_on_drop: false }`
[INFO] [stdout] 404e4736f3774c55bf52b9ff61a0b2c0228eab25d71689d301b993a0f86dc1c2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 478326e0f9c871aa57b77a784c75744e00ff21a6344400c40c6b31476cc417d1
[INFO] running `Command { std: "docker" "start" "-a" "478326e0f9c871aa57b77a784c75744e00ff21a6344400c40c6b31476cc417d1", kill_on_drop: false }`
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.02s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_sitter_macro-a3bc0b8b45de84a7)
[INFO] [stdout] 
[INFO] [stdout] running 10 tests
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.75.0-x86_64-unknown-linux-gnu'
[INFO] [stderr] To install, run `rustup component add rustfmt --toolchain 1.75.0-x86_64-unknown-linux-gnu`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.75.0-x86_64-unknown-linux-gnu'
[INFO] [stderr] To install, run `rustup component add rustfmt --toolchain 1.75.0-x86_64-unknown-linux-gnu`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.75.0-x86_64-unknown-linux-gnu'
[INFO] [stderr] To install, run `rustup component add rustfmt --toolchain 1.75.0-x86_64-unknown-linux-gnu`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.75.0-x86_64-unknown-linux-gnu'
[INFO] [stderr] To install, run `rustup component add rustfmt --toolchain 1.75.0-x86_64-unknown-linux-gnu`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.75.0-x86_64-unknown-linux-gnu'
[INFO] [stderr] To install, run `rustup component add rustfmt --toolchain 1.75.0-x86_64-unknown-linux-gnu`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.75.0-x86_64-unknown-linux-gnu'
[INFO] [stderr] To install, run `rustup component add rustfmt --toolchain 1.75.0-x86_64-unknown-linux-gnu`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.75.0-x86_64-unknown-linux-gnu'
[INFO] [stderr] To install, run `rustup component add rustfmt --toolchain 1.75.0-x86_64-unknown-linux-gnu`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.75.0-x86_64-unknown-linux-gnu'
[INFO] [stderr] To install, run `rustup component add rustfmt --toolchain 1.75.0-x86_64-unknown-linux-gnu`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.75.0-x86_64-unknown-linux-gnu'
[INFO] [stderr] To install, run `rustup component add rustfmt --toolchain 1.75.0-x86_64-unknown-linux-gnu`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.75.0-x86_64-unknown-linux-gnu'
[INFO] [stderr] To install, run `rustup component add rustfmt --toolchain 1.75.0-x86_64-unknown-linux-gnu`
[INFO] [stdout] test tests::enum_with_unamed_vector ... FAILED
[INFO] [stdout] test tests::struct_repeat ... FAILED
[INFO] [stdout] test tests::enum_with_named_field ... FAILED
[INFO] [stdout] test tests::enum_transformed_fields ... FAILED
[INFO] [stdout] test tests::enum_prec_left ... FAILED
[INFO] [stdout] test tests::spanned_in_vec ... FAILED
[INFO] [stdout] test tests::struct_optional ... FAILED
[INFO] [stdout] test tests::struct_extra ... FAILED
[INFO] [stdout] test tests::grammar_unboxed_field ... FAILED
[INFO] [stdout] test tests::enum_recursive ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- tests::enum_with_unamed_vector stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__enum_with_unamed_vector.snap
[INFO] [stdout] Snapshot: enum_with_unamed_vector
[INFO] [stdout] Source: src/lib.rs:450
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote! {
[INFO] [stdout]                                 #[rust_sitter :: grammar("test")] mod grammar
[INFO] [stdout]                                 {
[INFO] [stdout]                                     pub struct Number
[INFO] [stdout]                                     {
[INFO] [stdout]                                         #[rust_sitter ::
[INFO] [stdout]                                         leaf(pattern = r"\d+", transform = | v |
[INFO] [stdout]                                         v.parse().unwrap())] value : u32
[INFO] [stdout]                                     } #[rust_sitter :: language] pub enum Expr
[INFO] [stdout]                                     {
[INFO] [stdout]                                         Numbers(#[rust_sitter :: repeat(non_empty = true)] Vec <
[INFO] [stdout]                                         Number >)
[INFO] [stdout]                                     }
[INFO] [stdout]                                 }
[INFO] [stdout]                             })?.to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub struct Number {
[INFO] [stdout]     2       │-        value: u32,
[INFO] [stdout]     3       │-    }
[INFO] [stdout]     4       │-    impl ::rust_sitter::Extract<Number> for Number {
[INFO] [stdout]     5       │-        type LeafFn = ();
[INFO] [stdout]     6       │-        #[allow(non_snake_case)]
[INFO] [stdout]     7       │-        fn extract(
[INFO] [stdout]     8       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]     9       │-            source: &[u8],
[INFO] [stdout]    10       │-            last_idx: usize,
[INFO] [stdout]    11       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    12       │-        ) -> Self {
[INFO] [stdout]    13       │-            let node = node.unwrap();
[INFO] [stdout]    14       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    15       │-                Number {
[INFO] [stdout]    16       │-                    value: {
[INFO] [stdout]    17       │-                        ::rust_sitter::__private::extract_field::<rust_sitter::WithLeaf<u32>, _>(
[INFO] [stdout]    18       │-                            cursor,
[INFO] [stdout]    19       │-                            source,
[INFO] [stdout]    20       │-                            last_idx,
[INFO] [stdout]    21       │-                            "value",
[INFO] [stdout]    22       │-                            Some(&|v| v.parse().unwrap()),
[INFO] [stdout]    23       │-                        )
[INFO] [stdout]    24       │-                    },
[INFO] [stdout]    25       │-                }
[INFO] [stdout]    26       │-            })
[INFO] [stdout]    27       │-        }
[INFO] [stdout]    28       │-    }
[INFO] [stdout]    29       │-    pub enum Expr {
[INFO] [stdout]    30       │-        Numbers(Vec<Number>),
[INFO] [stdout]    31       │-    }
[INFO] [stdout]    32       │-    impl ::rust_sitter::Extract<Expr> for Expr {
[INFO] [stdout]    33       │-        type LeafFn = ();
[INFO] [stdout]    34       │-        #[allow(non_snake_case)]
[INFO] [stdout]    35       │-        fn extract(
[INFO] [stdout]    36       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    37       │-            source: &[u8],
[INFO] [stdout]    38       │-            _last_idx: usize,
[INFO] [stdout]    39       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    40       │-        ) -> Self {
[INFO] [stdout]    41       │-            let node = node.unwrap();
[INFO] [stdout]    42       │-            let mut cursor = node.walk();
[INFO] [stdout]    43       │-            assert!(
[INFO] [stdout]    44       │-                cursor.goto_first_child(),
[INFO] [stdout]    45       │-                "Could not find a child corresponding to any enum branch"
[INFO] [stdout]    46       │-            );
[INFO] [stdout]    47       │-            loop {
[INFO] [stdout]    48       │-                let node = cursor.node();
[INFO] [stdout]    49       │-                match node.kind() {
[INFO] [stdout]    50       │-                    "Expr_Numbers" => {
[INFO] [stdout]    51       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    52       │-                            node,
[INFO] [stdout]    53       │-                            move |cursor, last_idx| {
[INFO] [stdout]    54       │-                                Expr::Numbers({
[INFO] [stdout]    55       │-                                    ::rust_sitter::__private::extract_field::<Vec<Number>, _>(
[INFO] [stdout]    56       │-                                        cursor, source, last_idx, "0", None,
[INFO] [stdout]    57       │-                                    )
[INFO] [stdout]    58       │-                                })
[INFO] [stdout]    59       │-                            },
[INFO] [stdout]    60       │-                        )
[INFO] [stdout]    61       │-                    }
[INFO] [stdout]    62       │-                    _ => {
[INFO] [stdout]    63       │-                        if !cursor.goto_next_sibling() {
[INFO] [stdout]    64       │-                            panic!("Could not find a child corresponding to any enum branch")
[INFO] [stdout]    65       │-                        }
[INFO] [stdout]    66       │-                    }
[INFO] [stdout]    67       │-                }
[INFO] [stdout]    68       │-            }
[INFO] [stdout]    69       │-        }
[INFO] [stdout]    70       │-    }
[INFO] [stdout]    71       │-    extern "C" {
[INFO] [stdout]    72       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    73       │-    }
[INFO] [stdout]    74       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    75       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    76       │-    }
[INFO] [stdout]    77       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    78       │-    #[doc = "[`Expr`]"]
[INFO] [stdout]    79       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    80       │-    pub fn parse(
[INFO] [stdout]    81       │-        input: &str,
[INFO] [stdout]    82       │-    ) -> core::result::Result<Expr, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    83       │-        ::rust_sitter::__private::parse::<Expr>(input, language)
[INFO] [stdout]    84       │-    }
[INFO] [stdout]    85       │-}
[INFO] [stdout]           0 │+mod grammar { pub struct Number { value : u32 } impl :: rust_sitter :: Extract < Number > for Number { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Number { value : { :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < u32 > , _ > (cursor , source , last_idx , "value" , Some (& | v | v . parse () . unwrap ())) } }) } } pub enum Expr { Numbers (Vec < Number >) } impl :: rust_sitter :: Extract < Expr > for Expr { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , _last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; let mut cursor = node . walk () ; assert ! (cursor . goto_first_child () , "Could not find a child corresponding to any enum branch") ; loop { let node = cursor . node () ; match node . kind () { "Expr_Numbers" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expr :: Numbers ({ :: rust_sitter :: __private :: extract_field :: < Vec < Number > , _ > (cursor , source , last_idx , "0" , None) })) , _ => if ! cursor . goto_next_sibling () { panic ! ("Could not find a child corresponding to any enum branch") } } } } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Expr`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Expr , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Expr > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::enum_with_unamed_vector' panicked at src/lib.rs:450:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7fadbe75462c - std::backtrace_rs::backtrace::libunwind::trace::ha637c64ce894333a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
[INFO] [stdout]    1:     0x7fadbe75462c - std::backtrace_rs::backtrace::trace_unsynchronized::h47f62dea28e0c88d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7fadbe75462c - std::sys_common::backtrace::_print_fmt::h9eef0abe20ede486
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7fadbe75462c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hed7f999df88cc644
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7fadbe7a7630 - core::fmt::rt::Argument::fmt::h1539a9308b8d058d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/rt.rs:142:9
[INFO] [stdout]    5:     0x7fadbe7a7630 - core::fmt::write::h3a39390d8560d9c9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/mod.rs:1120:17
[INFO] [stdout]    6:     0x7fadbe7484bf - std::io::Write::write_fmt::h040b369f3a0f9cbc
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/io/mod.rs:1762:15
[INFO] [stdout]    7:     0x7fadbe754414 - std::sys_common::backtrace::_print::h894006fb5c6f3d45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7fadbe754414 - std::sys_common::backtrace::print::h23a2d212c6fff936
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7fadbe7570a7 - std::panicking::default_hook::{{closure}}::h8a1d2ee00185001a
[INFO] [stdout]   10:     0x7fadbe756d93 - std::panicking::default_hook::h6038f2eba384e475
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7fadbe822d07 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0ad024c9bdc6d768
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7fadbe822d07 - test::test_main::{{closure}}::h7500b54257359db6
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:138:21
[INFO] [stdout]   13:     0x7fadbe7577e8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1f8f335eaa9cfaee
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7fadbe7577e8 - std::panicking::rust_panic_with_hook::h2b5517d590cab22e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13
[INFO] [stdout]   15:     0x7fadbe75753e - std::panicking::begin_panic_handler::{{closure}}::h233112c06e0ef43e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13
[INFO] [stdout]   16:     0x7fadbe754af6 - std::sys_common::backtrace::__rust_end_short_backtrace::h6e893f24d7ebbff8
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7fadbe7572a2 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
[INFO] [stdout]   18:     0x7fadbe7a3d15 - core::panicking::panic_fmt::hbf0e066aabfa482c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7fadbe7a4403 - core::result::unwrap_failed::hddb4fea594200c52
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1653:5
[INFO] [stdout]   20:     0x55e6bca4ee6c - core::result::Result<T,E>::unwrap::h5cd7bab1cc5d5f9a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1077:23
[INFO] [stdout]   21:     0x55e6bca4458f - rust_sitter_macro::tests::enum_with_unamed_vector::hb6dc54a358f2ce5c
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:450:9
[INFO] [stdout]   22:     0x55e6bca4322d - rust_sitter_macro::tests::enum_with_unamed_vector::{{closure}}::hfd700f07a7aef1b8
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:449:37
[INFO] [stdout]   23:     0x55e6bca4db76 - core::ops::function::FnOnce::call_once::h60b1226d65926d0c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x7fadbe828c9f - core::ops::function::FnOnce::call_once::h2b5d431d5046312d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7fadbe828c9f - test::__rust_begin_short_backtrace::h7714669af176e207
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:628:18
[INFO] [stdout]   26:     0x7fadbe827cb5 - test::run_test_in_process::{{closure}}::h85218797dcbcec12
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:60
[INFO] [stdout]   27:     0x7fadbe827cb5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h76c106ea31c14d7b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   28:     0x7fadbe827cb5 - std::panicking::try::do_call::h3bd5d0f6620ee946
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   29:     0x7fadbe827cb5 - std::panicking::try::h232e535e4744fe31
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   30:     0x7fadbe827cb5 - std::panic::catch_unwind::h3ce3bd6ca8dbac68
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x7fadbe827cb5 - test::run_test_in_process::hc97b257c9621286a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:27
[INFO] [stdout]   32:     0x7fadbe827cb5 - test::run_test::{{closure}}::h2aa798823a438d38
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:574:43
[INFO] [stdout]   33:     0x7fadbe7eba26 - test::run_test::{{closure}}::h87d231c78fb59832
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:602:41
[INFO] [stdout]   34:     0x7fadbe7eba26 - std::sys_common::backtrace::__rust_begin_short_backtrace::he6df152596625789
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   35:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha94be15d1e0acf36
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x7fadbe7f0ad7 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h9dc6bd6372f16606
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   37:     0x7fadbe7f0ad7 - std::panicking::try::do_call::h9057517f80303cd4
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   38:     0x7fadbe7f0ad7 - std::panicking::try::he3a30b11ee45340c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   39:     0x7fadbe7f0ad7 - std::panic::catch_unwind::h410458cfd3528b8b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::h72ac3bdb567b737b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x7fadbe7f0ad7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h38f34da3654a8344
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc7eafaff61e32df9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   43:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6ba4a5de48dd2304
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7fadbe7616a5 - std::sys::unix::thread::Thread::new::thread_start::he469335aef763e45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7fadbe4d2ac3 - <unknown>
[INFO] [stdout]   46:     0x7fadbe563bf4 - __clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::struct_repeat stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__struct_repeat.snap
[INFO] [stdout] Snapshot: struct_repeat
[INFO] [stdout] Source: src/lib.rs:394
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote! {
[INFO] [stdout]                                 #[rust_sitter :: grammar("test")] mod grammar
[INFO] [stdout]                                 {
[INFO] [stdout]                                     #[rust_sitter :: language] pub struct NumberList
[INFO] [stdout]                                     { numbers : Vec < Number >, } pub struct Number
[INFO] [stdout]                                     {
[INFO] [stdout]                                         #[rust_sitter ::
[INFO] [stdout]                                         leaf(pattern = r"\d+", transform = | v |
[INFO] [stdout]                                         v.parse().unwrap())] v : i32
[INFO] [stdout]                                     } #[rust_sitter :: extra] struct Whitespace
[INFO] [stdout]                                     {
[INFO] [stdout]                                         #[rust_sitter :: leaf(pattern = r"\s")] _whitespace : (),
[INFO] [stdout]                                     }
[INFO] [stdout]                                 }
[INFO] [stdout]                             })?.to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub struct NumberList {
[INFO] [stdout]     2       │-        numbers: Vec<Number>,
[INFO] [stdout]     3       │-    }
[INFO] [stdout]     4       │-    impl ::rust_sitter::Extract<NumberList> for NumberList {
[INFO] [stdout]     5       │-        type LeafFn = ();
[INFO] [stdout]     6       │-        #[allow(non_snake_case)]
[INFO] [stdout]     7       │-        fn extract(
[INFO] [stdout]     8       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]     9       │-            source: &[u8],
[INFO] [stdout]    10       │-            last_idx: usize,
[INFO] [stdout]    11       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    12       │-        ) -> Self {
[INFO] [stdout]    13       │-            let node = node.unwrap();
[INFO] [stdout]    14       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    15       │-                NumberList {
[INFO] [stdout]    16       │-                    numbers: {
[INFO] [stdout]    17       │-                        ::rust_sitter::__private::extract_field::<Vec<Number>, _>(
[INFO] [stdout]    18       │-                            cursor, source, last_idx, "numbers", None,
[INFO] [stdout]    19       │-                        )
[INFO] [stdout]    20       │-                    },
[INFO] [stdout]    21       │-                }
[INFO] [stdout]    22       │-            })
[INFO] [stdout]    23       │-        }
[INFO] [stdout]    24       │-    }
[INFO] [stdout]    25       │-    pub struct Number {
[INFO] [stdout]    26       │-        v: i32,
[INFO] [stdout]    27       │-    }
[INFO] [stdout]    28       │-    impl ::rust_sitter::Extract<Number> for Number {
[INFO] [stdout]    29       │-        type LeafFn = ();
[INFO] [stdout]    30       │-        #[allow(non_snake_case)]
[INFO] [stdout]    31       │-        fn extract(
[INFO] [stdout]    32       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    33       │-            source: &[u8],
[INFO] [stdout]    34       │-            last_idx: usize,
[INFO] [stdout]    35       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    36       │-        ) -> Self {
[INFO] [stdout]    37       │-            let node = node.unwrap();
[INFO] [stdout]    38       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    39       │-                Number {
[INFO] [stdout]    40       │-                    v: {
[INFO] [stdout]    41       │-                        ::rust_sitter::__private::extract_field::<rust_sitter::WithLeaf<i32>, _>(
[INFO] [stdout]    42       │-                            cursor,
[INFO] [stdout]    43       │-                            source,
[INFO] [stdout]    44       │-                            last_idx,
[INFO] [stdout]    45       │-                            "v",
[INFO] [stdout]    46       │-                            Some(&|v| v.parse().unwrap()),
[INFO] [stdout]    47       │-                        )
[INFO] [stdout]    48       │-                    },
[INFO] [stdout]    49       │-                }
[INFO] [stdout]    50       │-            })
[INFO] [stdout]    51       │-        }
[INFO] [stdout]    52       │-    }
[INFO] [stdout]    53       │-    struct Whitespace {
[INFO] [stdout]    54       │-        _whitespace: (),
[INFO] [stdout]    55       │-    }
[INFO] [stdout]    56       │-    impl ::rust_sitter::Extract<Whitespace> for Whitespace {
[INFO] [stdout]    57       │-        type LeafFn = ();
[INFO] [stdout]    58       │-        #[allow(non_snake_case)]
[INFO] [stdout]    59       │-        fn extract(
[INFO] [stdout]    60       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    61       │-            source: &[u8],
[INFO] [stdout]    62       │-            last_idx: usize,
[INFO] [stdout]    63       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    64       │-        ) -> Self {
[INFO] [stdout]    65       │-            let node = node.unwrap();
[INFO] [stdout]    66       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    67       │-                Whitespace {
[INFO] [stdout]    68       │-                    _whitespace: {
[INFO] [stdout]    69       │-                        ::rust_sitter::__private::extract_field::<(), _>(
[INFO] [stdout]    70       │-                            cursor,
[INFO] [stdout]    71       │-                            source,
[INFO] [stdout]    72       │-                            last_idx,
[INFO] [stdout]    73       │-                            "_whitespace",
[INFO] [stdout]    74       │-                            None,
[INFO] [stdout]    75       │-                        )
[INFO] [stdout]    76       │-                    },
[INFO] [stdout]    77       │-                }
[INFO] [stdout]    78       │-            })
[INFO] [stdout]    79       │-        }
[INFO] [stdout]    80       │-    }
[INFO] [stdout]    81       │-    extern "C" {
[INFO] [stdout]    82       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    83       │-    }
[INFO] [stdout]    84       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    85       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    86       │-    }
[INFO] [stdout]    87       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    88       │-    #[doc = "[`NumberList`]"]
[INFO] [stdout]    89       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    90       │-    pub fn parse(
[INFO] [stdout]    91       │-        input: &str,
[INFO] [stdout]    92       │-    ) -> core::result::Result<NumberList, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    93       │-        ::rust_sitter::__private::parse::<NumberList>(input, language)
[INFO] [stdout]    94       │-    }
[INFO] [stdout]    95       │-}
[INFO] [stdout]           0 │+mod grammar { pub struct NumberList { numbers : Vec < Number > , } impl :: rust_sitter :: Extract < NumberList > for NumberList { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | NumberList { numbers : { :: rust_sitter :: __private :: extract_field :: < Vec < Number > , _ > (cursor , source , last_idx , "numbers" , None) } }) } } pub struct Number { v : i32 } impl :: rust_sitter :: Extract < Number > for Number { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Number { v : { :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "v" , Some (& | v | v . parse () . unwrap ())) } }) } } struct Whitespace { _whitespace : () , } impl :: rust_sitter :: Extract < Whitespace > for Whitespace { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Whitespace { _whitespace : { :: rust_sitter :: __private :: extract_field :: < () , _ > (cursor , source , last_idx , "_whitespace" , None) } }) } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`NumberList`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < NumberList , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < NumberList > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::struct_repeat' panicked at src/lib.rs:394:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7fadbe75462c - std::backtrace_rs::backtrace::libunwind::trace::ha637c64ce894333a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
[INFO] [stdout]    1:     0x7fadbe75462c - std::backtrace_rs::backtrace::trace_unsynchronized::h47f62dea28e0c88d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7fadbe75462c - std::sys_common::backtrace::_print_fmt::h9eef0abe20ede486
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7fadbe75462c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hed7f999df88cc644
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7fadbe7a7630 - core::fmt::rt::Argument::fmt::h1539a9308b8d058d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/rt.rs:142:9
[INFO] [stdout]    5:     0x7fadbe7a7630 - core::fmt::write::h3a39390d8560d9c9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/mod.rs:1120:17
[INFO] [stdout]    6:     0x7fadbe7484bf - std::io::Write::write_fmt::h040b369f3a0f9cbc
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/io/mod.rs:1762:15
[INFO] [stdout]    7:     0x7fadbe754414 - std::sys_common::backtrace::_print::h894006fb5c6f3d45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7fadbe754414 - std::sys_common::backtrace::print::h23a2d212c6fff936
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7fadbe7570a7 - std::panicking::default_hook::{{closure}}::h8a1d2ee00185001a
[INFO] [stdout]   10:     0x7fadbe756d93 - std::panicking::default_hook::h6038f2eba384e475
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7fadbe822d07 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0ad024c9bdc6d768
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7fadbe822d07 - test::test_main::{{closure}}::h7500b54257359db6
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:138:21
[INFO] [stdout]   13:     0x7fadbe7577e8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1f8f335eaa9cfaee
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7fadbe7577e8 - std::panicking::rust_panic_with_hook::h2b5517d590cab22e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13
[INFO] [stdout]   15:     0x7fadbe75753e - std::panicking::begin_panic_handler::{{closure}}::h233112c06e0ef43e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13
[INFO] [stdout]   16:     0x7fadbe754af6 - std::sys_common::backtrace::__rust_end_short_backtrace::h6e893f24d7ebbff8
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7fadbe7572a2 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
[INFO] [stdout]   18:     0x7fadbe7a3d15 - core::panicking::panic_fmt::hbf0e066aabfa482c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7fadbe7a4403 - core::result::unwrap_failed::hddb4fea594200c52
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1653:5
[INFO] [stdout]   20:     0x55e6bca4ee6c - core::result::Result<T,E>::unwrap::h5cd7bab1cc5d5f9a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1077:23
[INFO] [stdout]   21:     0x55e6bca41b84 - rust_sitter_macro::tests::struct_repeat::h0ebfbae3ca7bd52a
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:394:9
[INFO] [stdout]   22:     0x55e6bca4064d - rust_sitter_macro::tests::struct_repeat::{{closure}}::hc4be882185d6bff2
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:393:27
[INFO] [stdout]   23:     0x55e6bca4da66 - core::ops::function::FnOnce::call_once::h200e131b8bfadc6e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x7fadbe828c9f - core::ops::function::FnOnce::call_once::h2b5d431d5046312d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7fadbe828c9f - test::__rust_begin_short_backtrace::h7714669af176e207
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:628:18
[INFO] [stdout]   26:     0x7fadbe827cb5 - test::run_test_in_process::{{closure}}::h85218797dcbcec12
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:60
[INFO] [stdout]   27:     0x7fadbe827cb5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h76c106ea31c14d7b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   28:     0x7fadbe827cb5 - std::panicking::try::do_call::h3bd5d0f6620ee946
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   29:     0x7fadbe827cb5 - std::panicking::try::h232e535e4744fe31
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   30:     0x7fadbe827cb5 - std::panic::catch_unwind::h3ce3bd6ca8dbac68
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x7fadbe827cb5 - test::run_test_in_process::hc97b257c9621286a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:27
[INFO] [stdout]   32:     0x7fadbe827cb5 - test::run_test::{{closure}}::h2aa798823a438d38
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:574:43
[INFO] [stdout]   33:     0x7fadbe7eba26 - test::run_test::{{closure}}::h87d231c78fb59832
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:602:41
[INFO] [stdout]   34:     0x7fadbe7eba26 - std::sys_common::backtrace::__rust_begin_short_backtrace::he6df152596625789
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   35:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha94be15d1e0acf36
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x7fadbe7f0ad7 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h9dc6bd6372f16606
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   37:     0x7fadbe7f0ad7 - std::panicking::try::do_call::h9057517f80303cd4
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   38:     0x7fadbe7f0ad7 - std::panicking::try::he3a30b11ee45340c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   39:     0x7fadbe7f0ad7 - std::panic::catch_unwind::h410458cfd3528b8b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::h72ac3bdb567b737b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x7fadbe7f0ad7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h38f34da3654a8344
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc7eafaff61e32df9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   43:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6ba4a5de48dd2304
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7fadbe7616a5 - std::sys::unix::thread::Thread::new::thread_start::he469335aef763e45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7fadbe4d2ac3 - <unknown>
[INFO] [stdout]   46:     0x7fadbe563bf4 - __clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::enum_with_named_field stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__enum_with_named_field.snap
[INFO] [stdout] Snapshot: enum_with_named_field
[INFO] [stdout] Source: src/lib.rs:477
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote! {
[INFO] [stdout]                                 #[rust_sitter :: grammar("test")] mod grammar
[INFO] [stdout]                                 {
[INFO] [stdout]                                     #[rust_sitter :: language] pub enum Expr
[INFO] [stdout]                                     {
[INFO] [stdout]                                         Number(#[rust_sitter ::
[INFO] [stdout]                                         leaf(pattern = r"\d+", transform = | v |
[INFO] [stdout]                                         v.parse().unwrap())] u32), Neg
[INFO] [stdout]                                         {
[INFO] [stdout]                                             #[rust_sitter :: leaf(text = "!")] _bang : (), value : Box <
[INFO] [stdout]                                             Expr >,
[INFO] [stdout]                                         }
[INFO] [stdout]                                     }
[INFO] [stdout]                                 }
[INFO] [stdout]                             })?.to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub enum Expr {
[INFO] [stdout]     2       │-        Number(u32),
[INFO] [stdout]     3       │-        Neg { _bang: (), value: Box<Expr> },
[INFO] [stdout]     4       │-    }
[INFO] [stdout]     5       │-    impl ::rust_sitter::Extract<Expr> for Expr {
[INFO] [stdout]     6       │-        type LeafFn = ();
[INFO] [stdout]     7       │-        #[allow(non_snake_case)]
[INFO] [stdout]     8       │-        fn extract(
[INFO] [stdout]     9       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    10       │-            source: &[u8],
[INFO] [stdout]    11       │-            _last_idx: usize,
[INFO] [stdout]    12       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    13       │-        ) -> Self {
[INFO] [stdout]    14       │-            let node = node.unwrap();
[INFO] [stdout]    15       │-            let mut cursor = node.walk();
[INFO] [stdout]    16       │-            assert!(
[INFO] [stdout]    17       │-                cursor.goto_first_child(),
[INFO] [stdout]    18       │-                "Could not find a child corresponding to any enum branch"
[INFO] [stdout]    19       │-            );
[INFO] [stdout]    20       │-            loop {
[INFO] [stdout]    21       │-                let node = cursor.node();
[INFO] [stdout]    22       │-                match node.kind() {
[INFO] [stdout]    23       │-                    "Expr_Number" => {
[INFO] [stdout]    24       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    25       │-                            node,
[INFO] [stdout]    26       │-                            move |cursor, last_idx| {
[INFO] [stdout]    27       │-                                Expr::Number({
[INFO] [stdout]    28       │-                                    ::rust_sitter::__private::extract_field::<
[INFO] [stdout]    29       │-                                        rust_sitter::WithLeaf<u32>,
[INFO] [stdout]    30       │-                                        _,
[INFO] [stdout]    31       │-                                    >(
[INFO] [stdout]    32       │-                                        cursor, source, last_idx, "0", Some(&|v| v.parse().unwrap())
[INFO] [stdout]    33       │-                                    )
[INFO] [stdout]    34       │-                                })
[INFO] [stdout]    35       │-                            },
[INFO] [stdout]    36       │-                        )
[INFO] [stdout]    37       │-                    }
[INFO] [stdout]    38       │-                    "Expr_Neg" => {
[INFO] [stdout]    39       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    40       │-                            node,
[INFO] [stdout]    41       │-                            move |cursor, last_idx| Expr::Neg {
[INFO] [stdout]    42       │-                                _bang: {
[INFO] [stdout]    43       │-                                    ::rust_sitter::__private::extract_field::<(), _>(
[INFO] [stdout]    44       │-                                        cursor, source, last_idx, "_bang", None,
[INFO] [stdout]    45       │-                                    )
[INFO] [stdout]    46       │-                                },
[INFO] [stdout]    47       │-                                value: {
[INFO] [stdout]    48       │-                                    ::rust_sitter::__private::extract_field::<Box<Expr>, _>(
[INFO] [stdout]    49       │-                                        cursor, source, last_idx, "value", None,
[INFO] [stdout]    50       │-                                    )
[INFO] [stdout]    51       │-                                },
[INFO] [stdout]    52       │-                            },
[INFO] [stdout]    53       │-                        )
[INFO] [stdout]    54       │-                    }
[INFO] [stdout]    55       │-                    _ => {
[INFO] [stdout]    56       │-                        if !cursor.goto_next_sibling() {
[INFO] [stdout]    57       │-                            panic!("Could not find a child corresponding to any enum branch")
[INFO] [stdout]    58       │-                        }
[INFO] [stdout]    59       │-                    }
[INFO] [stdout]    60       │-                }
[INFO] [stdout]    61       │-            }
[INFO] [stdout]    62       │-        }
[INFO] [stdout]    63       │-    }
[INFO] [stdout]    64       │-    extern "C" {
[INFO] [stdout]    65       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    66       │-    }
[INFO] [stdout]    67       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    68       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    69       │-    }
[INFO] [stdout]    70       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    71       │-    #[doc = "[`Expr`]"]
[INFO] [stdout]    72       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    73       │-    pub fn parse(
[INFO] [stdout]    74       │-        input: &str,
[INFO] [stdout]    75       │-    ) -> core::result::Result<Expr, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    76       │-        ::rust_sitter::__private::parse::<Expr>(input, language)
[INFO] [stdout]    77       │-    }
[INFO] [stdout]    78       │-}
[INFO] [stdout]           0 │+mod grammar { pub enum Expr { Number (u32) , Neg { _bang : () , value : Box < Expr > , } } impl :: rust_sitter :: Extract < Expr > for Expr { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , _last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; let mut cursor = node . walk () ; assert ! (cursor . goto_first_child () , "Could not find a child corresponding to any enum branch") ; loop { let node = cursor . node () ; match node . kind () { "Expr_Number" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expr :: Number ({ :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < u32 > , _ > (cursor , source , last_idx , "0" , Some (& | v | v . parse () . unwrap ())) })) , "Expr_Neg" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expr :: Neg { _bang : { :: rust_sitter :: __private :: extract_field :: < () , _ > (cursor , source , last_idx , "_bang" , None) } , value : { :: rust_sitter :: __private :: extract_field :: < Box < Expr > , _ > (cursor , source , last_idx , "value" , None) } }) , _ => if ! cursor . goto_next_sibling () { panic ! ("Could not find a child corresponding to any enum branch") } } } } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Expr`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Expr , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Expr > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::enum_with_named_field' panicked at src/lib.rs:477:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7fadbe75462c - std::backtrace_rs::backtrace::libunwind::trace::ha637c64ce894333a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
[INFO] [stdout]    1:     0x7fadbe75462c - std::backtrace_rs::backtrace::trace_unsynchronized::h47f62dea28e0c88d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7fadbe75462c - std::sys_common::backtrace::_print_fmt::h9eef0abe20ede486
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7fadbe75462c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hed7f999df88cc644
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7fadbe7a7630 - core::fmt::rt::Argument::fmt::h1539a9308b8d058d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/rt.rs:142:9
[INFO] [stdout]    5:     0x7fadbe7a7630 - core::fmt::write::h3a39390d8560d9c9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/mod.rs:1120:17
[INFO] [stdout]    6:     0x7fadbe7484bf - std::io::Write::write_fmt::h040b369f3a0f9cbc
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/io/mod.rs:1762:15
[INFO] [stdout]    7:     0x7fadbe754414 - std::sys_common::backtrace::_print::h894006fb5c6f3d45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7fadbe754414 - std::sys_common::backtrace::print::h23a2d212c6fff936
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7fadbe7570a7 - std::panicking::default_hook::{{closure}}::h8a1d2ee00185001a
[INFO] [stdout]   10:     0x7fadbe756d93 - std::panicking::default_hook::h6038f2eba384e475
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7fadbe822d07 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0ad024c9bdc6d768
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7fadbe822d07 - test::test_main::{{closure}}::h7500b54257359db6
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:138:21
[INFO] [stdout]   13:     0x7fadbe7577e8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1f8f335eaa9cfaee
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7fadbe7577e8 - std::panicking::rust_panic_with_hook::h2b5517d590cab22e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13
[INFO] [stdout]   15:     0x7fadbe75753e - std::panicking::begin_panic_handler::{{closure}}::h233112c06e0ef43e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13
[INFO] [stdout]   16:     0x7fadbe754af6 - std::sys_common::backtrace::__rust_end_short_backtrace::h6e893f24d7ebbff8
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7fadbe7572a2 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
[INFO] [stdout]   18:     0x7fadbe7a3d15 - core::panicking::panic_fmt::hbf0e066aabfa482c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7fadbe7a4403 - core::result::unwrap_failed::hddb4fea594200c52
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1653:5
[INFO] [stdout]   20:     0x55e6bca4ee6c - core::result::Result<T,E>::unwrap::h5cd7bab1cc5d5f9a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1077:23
[INFO] [stdout]   21:     0x55e6bca45a17 - rust_sitter_macro::tests::enum_with_named_field::h2667be3e8cff60dd
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:477:9
[INFO] [stdout]   22:     0x55e6bca4464d - rust_sitter_macro::tests::enum_with_named_field::{{closure}}::he9473b0a69cb2efe
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:476:35
[INFO] [stdout]   23:     0x55e6bca4dc36 - core::ops::function::FnOnce::call_once::h76c694c2c96a3a15
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x7fadbe828c9f - core::ops::function::FnOnce::call_once::h2b5d431d5046312d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7fadbe828c9f - test::__rust_begin_short_backtrace::h7714669af176e207
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:628:18
[INFO] [stdout]   26:     0x7fadbe827cb5 - test::run_test_in_process::{{closure}}::h85218797dcbcec12
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:60
[INFO] [stdout]   27:     0x7fadbe827cb5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h76c106ea31c14d7b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   28:     0x7fadbe827cb5 - std::panicking::try::do_call::h3bd5d0f6620ee946
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   29:     0x7fadbe827cb5 - std::panicking::try::h232e535e4744fe31
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   30:     0x7fadbe827cb5 - std::panic::catch_unwind::h3ce3bd6ca8dbac68
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x7fadbe827cb5 - test::run_test_in_process::hc97b257c9621286a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:27
[INFO] [stdout]   32:     0x7fadbe827cb5 - test::run_test::{{closure}}::h2aa798823a438d38
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:574:43
[INFO] [stdout]   33:     0x7fadbe7eba26 - test::run_test::{{closure}}::h87d231c78fb59832
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:602:41
[INFO] [stdout]   34:     0x7fadbe7eba26 - std::sys_common::backtrace::__rust_begin_short_backtrace::he6df152596625789
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   35:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha94be15d1e0acf36
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x7fadbe7f0ad7 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h9dc6bd6372f16606
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   37:     0x7fadbe7f0ad7 - std::panicking::try::do_call::h9057517f80303cd4
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   38:     0x7fadbe7f0ad7 - std::panicking::try::he3a30b11ee45340c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   39:     0x7fadbe7f0ad7 - std::panic::catch_unwind::h410458cfd3528b8b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::h72ac3bdb567b737b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x7fadbe7f0ad7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h38f34da3654a8344
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc7eafaff61e32df9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   43:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6ba4a5de48dd2304
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7fadbe7616a5 - std::sys::unix::thread::Thread::new::thread_start::he469335aef763e45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7fadbe4d2ac3 - <unknown>
[INFO] [stdout]   46:     0x7fadbe563bf4 - __clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::enum_transformed_fields stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__enum_transformed_fields.snap
[INFO] [stdout] Snapshot: enum_transformed_fields
[INFO] [stdout] Source: src/lib.rs:263
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote! {
[INFO] [stdout]                                 #[rust_sitter :: grammar("test")] mod grammar
[INFO] [stdout]                                 {
[INFO] [stdout]                                     #[rust_sitter :: language] pub enum Expression
[INFO] [stdout]                                     {
[INFO] [stdout]                                         Number(#[rust_sitter ::
[INFO] [stdout]                                         leaf(pattern = r"\d+", transform = | v | v.parse :: < i32 >
[INFO] [stdout]                                         ().unwrap())] i32),
[INFO] [stdout]                                     }
[INFO] [stdout]                                 }
[INFO] [stdout]                             })?.to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub enum Expression {
[INFO] [stdout]     2       │-        Number(i32),
[INFO] [stdout]     3       │-    }
[INFO] [stdout]     4       │-    impl ::rust_sitter::Extract<Expression> for Expression {
[INFO] [stdout]     5       │-        type LeafFn = ();
[INFO] [stdout]     6       │-        #[allow(non_snake_case)]
[INFO] [stdout]     7       │-        fn extract(
[INFO] [stdout]     8       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]     9       │-            source: &[u8],
[INFO] [stdout]    10       │-            _last_idx: usize,
[INFO] [stdout]    11       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    12       │-        ) -> Self {
[INFO] [stdout]    13       │-            let node = node.unwrap();
[INFO] [stdout]    14       │-            let mut cursor = node.walk();
[INFO] [stdout]    15       │-            assert!(
[INFO] [stdout]    16       │-                cursor.goto_first_child(),
[INFO] [stdout]    17       │-                "Could not find a child corresponding to any enum branch"
[INFO] [stdout]    18       │-            );
[INFO] [stdout]    19       │-            loop {
[INFO] [stdout]    20       │-                let node = cursor.node();
[INFO] [stdout]    21       │-                match node.kind() {
[INFO] [stdout]    22       │-                    "Expression_Number" => {
[INFO] [stdout]    23       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    24       │-                            node,
[INFO] [stdout]    25       │-                            move |cursor, last_idx| {
[INFO] [stdout]    26       │-                                Expression::Number({
[INFO] [stdout]    27       │-                                    ::rust_sitter::__private::extract_field::<
[INFO] [stdout]    28       │-                                        rust_sitter::WithLeaf<i32>,
[INFO] [stdout]    29       │-                                        _,
[INFO] [stdout]    30       │-                                    >(
[INFO] [stdout]    31       │-                                        cursor,
[INFO] [stdout]    32       │-                                        source,
[INFO] [stdout]    33       │-                                        last_idx,
[INFO] [stdout]    34       │-                                        "0",
[INFO] [stdout]    35       │-                                        Some(&|v| v.parse::<i32>().unwrap()),
[INFO] [stdout]    36       │-                                    )
[INFO] [stdout]    37       │-                                })
[INFO] [stdout]    38       │-                            },
[INFO] [stdout]    39       │-                        )
[INFO] [stdout]    40       │-                    }
[INFO] [stdout]    41       │-                    _ => {
[INFO] [stdout]    42       │-                        if !cursor.goto_next_sibling() {
[INFO] [stdout]    43       │-                            panic!("Could not find a child corresponding to any enum branch")
[INFO] [stdout]    44       │-                        }
[INFO] [stdout]    45       │-                    }
[INFO] [stdout]    46       │-                }
[INFO] [stdout]    47       │-            }
[INFO] [stdout]    48       │-        }
[INFO] [stdout]    49       │-    }
[INFO] [stdout]    50       │-    extern "C" {
[INFO] [stdout]    51       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    52       │-    }
[INFO] [stdout]    53       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    54       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    55       │-    }
[INFO] [stdout]    56       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    57       │-    #[doc = "[`Expression`]"]
[INFO] [stdout]    58       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    59       │-    pub fn parse(
[INFO] [stdout]    60       │-        input: &str,
[INFO] [stdout]    61       │-    ) -> core::result::Result<Expression, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    62       │-        ::rust_sitter::__private::parse::<Expression>(input, language)
[INFO] [stdout]    63       │-    }
[INFO] [stdout]    64       │-}
[INFO] [stdout]           0 │+mod grammar { pub enum Expression { Number (i32) , } impl :: rust_sitter :: Extract < Expression > for Expression { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , _last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; let mut cursor = node . walk () ; assert ! (cursor . goto_first_child () , "Could not find a child corresponding to any enum branch") ; loop { let node = cursor . node () ; match node . kind () { "Expression_Number" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expression :: Number ({ :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "0" , Some (& | v | v . parse :: < i32 > () . unwrap ())) })) , _ => if ! cursor . goto_next_sibling () { panic ! ("Could not find a child corresponding to any enum branch") } } } } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Expression`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Expression , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Expression > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::enum_transformed_fields' panicked at src/lib.rs:263:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7fadbe75462c - std::backtrace_rs::backtrace::libunwind::trace::ha637c64ce894333a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
[INFO] [stdout]    1:     0x7fadbe75462c - std::backtrace_rs::backtrace::trace_unsynchronized::h47f62dea28e0c88d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7fadbe75462c - std::sys_common::backtrace::_print_fmt::h9eef0abe20ede486
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7fadbe75462c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hed7f999df88cc644
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7fadbe7a7630 - core::fmt::rt::Argument::fmt::h1539a9308b8d058d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/rt.rs:142:9
[INFO] [stdout]    5:     0x7fadbe7a7630 - core::fmt::write::h3a39390d8560d9c9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/mod.rs:1120:17
[INFO] [stdout]    6:     0x7fadbe7484bf - std::io::Write::write_fmt::h040b369f3a0f9cbc
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/io/mod.rs:1762:15
[INFO] [stdout]    7:     0x7fadbe754414 - std::sys_common::backtrace::_print::h894006fb5c6f3d45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7fadbe754414 - std::sys_common::backtrace::print::h23a2d212c6fff936
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7fadbe7570a7 - std::panicking::default_hook::{{closure}}::h8a1d2ee00185001a
[INFO] [stdout]   10:     0x7fadbe756d93 - std::panicking::default_hook::h6038f2eba384e475
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7fadbe822d07 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0ad024c9bdc6d768
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7fadbe822d07 - test::test_main::{{closure}}::h7500b54257359db6
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:138:21
[INFO] [stdout]   13:     0x7fadbe7577e8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1f8f335eaa9cfaee
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7fadbe7577e8 - std::panicking::rust_panic_with_hook::h2b5517d590cab22e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13
[INFO] [stdout]   15:     0x7fadbe75753e - std::panicking::begin_panic_handler::{{closure}}::h233112c06e0ef43e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13
[INFO] [stdout]   16:     0x7fadbe754af6 - std::sys_common::backtrace::__rust_end_short_backtrace::h6e893f24d7ebbff8
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7fadbe7572a2 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
[INFO] [stdout]   18:     0x7fadbe7a3d15 - core::panicking::panic_fmt::hbf0e066aabfa482c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7fadbe7a4403 - core::result::unwrap_failed::hddb4fea594200c52
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1653:5
[INFO] [stdout]   20:     0x55e6bca4ee6c - core::result::Result<T,E>::unwrap::h5cd7bab1cc5d5f9a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1077:23
[INFO] [stdout]   21:     0x55e6bca3b374 - rust_sitter_macro::tests::enum_transformed_fields::h792ea338ceebec96
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:263:9
[INFO] [stdout]   22:     0x55e6bca3a2ed - rust_sitter_macro::tests::enum_transformed_fields::{{closure}}::hf2dff3b002cd1aa7
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:262:37
[INFO] [stdout]   23:     0x55e6bca4de36 - core::ops::function::FnOnce::call_once::hd857f100fde1bfa7
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x7fadbe828c9f - core::ops::function::FnOnce::call_once::h2b5d431d5046312d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7fadbe828c9f - test::__rust_begin_short_backtrace::h7714669af176e207
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:628:18
[INFO] [stdout]   26:     0x7fadbe827cb5 - test::run_test_in_process::{{closure}}::h85218797dcbcec12
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:60
[INFO] [stdout]   27:     0x7fadbe827cb5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h76c106ea31c14d7b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   28:     0x7fadbe827cb5 - std::panicking::try::do_call::h3bd5d0f6620ee946
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   29:     0x7fadbe827cb5 - std::panicking::try::h232e535e4744fe31
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   30:     0x7fadbe827cb5 - std::panic::catch_unwind::h3ce3bd6ca8dbac68
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x7fadbe827cb5 - test::run_test_in_process::hc97b257c9621286a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:27
[INFO] [stdout]   32:     0x7fadbe827cb5 - test::run_test::{{closure}}::h2aa798823a438d38
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:574:43
[INFO] [stdout]   33:     0x7fadbe7eba26 - test::run_test::{{closure}}::h87d231c78fb59832
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:602:41
[INFO] [stdout]   34:     0x7fadbe7eba26 - std::sys_common::backtrace::__rust_begin_short_backtrace::he6df152596625789
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   35:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha94be15d1e0acf36
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x7fadbe7f0ad7 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h9dc6bd6372f16606
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   37:     0x7fadbe7f0ad7 - std::panicking::try::do_call::h9057517f80303cd4
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   38:     0x7fadbe7f0ad7 - std::panicking::try::he3a30b11ee45340c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   39:     0x7fadbe7f0ad7 - std::panic::catch_unwind::h410458cfd3528b8b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::h72ac3bdb567b737b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x7fadbe7f0ad7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h38f34da3654a8344
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc7eafaff61e32df9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   43:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6ba4a5de48dd2304
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7fadbe7616a5 - std::sys::unix::thread::Thread::new::thread_start::he469335aef763e45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7fadbe4d2ac3 - <unknown>
[INFO] [stdout]   46:     0x7fadbe563bf4 - __clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::enum_prec_left stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__enum_prec_left.snap
[INFO] [stdout] Snapshot: enum_prec_left
[INFO] [stdout] Source: src/lib.rs:312
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote! {
[INFO] [stdout]                                 #[rust_sitter :: grammar("test")] mod grammar
[INFO] [stdout]                                 {
[INFO] [stdout]                                     #[rust_sitter :: language] pub enum Expression
[INFO] [stdout]                                     {
[INFO] [stdout]                                         Number(#[rust_sitter ::
[INFO] [stdout]                                         leaf(pattern = r"\d+", transform = | v |
[INFO] [stdout]                                         v.parse().unwrap())] i32), #[rust_sitter :: prec_left(1)]
[INFO] [stdout]                                         Sub(Box < Expression >, #[rust_sitter :: leaf(text = "-")]
[INFO] [stdout]                                         (), Box < Expression >),
[INFO] [stdout]                                     }
[INFO] [stdout]                                 }
[INFO] [stdout]                             })?.to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub enum Expression {
[INFO] [stdout]     2       │-        Number(i32),
[INFO] [stdout]     3       │-        Sub(Box<Expression>, (), Box<Expression>),
[INFO] [stdout]     4       │-    }
[INFO] [stdout]     5       │-    impl ::rust_sitter::Extract<Expression> for Expression {
[INFO] [stdout]     6       │-        type LeafFn = ();
[INFO] [stdout]     7       │-        #[allow(non_snake_case)]
[INFO] [stdout]     8       │-        fn extract(
[INFO] [stdout]     9       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    10       │-            source: &[u8],
[INFO] [stdout]    11       │-            _last_idx: usize,
[INFO] [stdout]    12       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    13       │-        ) -> Self {
[INFO] [stdout]    14       │-            let node = node.unwrap();
[INFO] [stdout]    15       │-            let mut cursor = node.walk();
[INFO] [stdout]    16       │-            assert!(
[INFO] [stdout]    17       │-                cursor.goto_first_child(),
[INFO] [stdout]    18       │-                "Could not find a child corresponding to any enum branch"
[INFO] [stdout]    19       │-            );
[INFO] [stdout]    20       │-            loop {
[INFO] [stdout]    21       │-                let node = cursor.node();
[INFO] [stdout]    22       │-                match node.kind() {
[INFO] [stdout]    23       │-                    "Expression_Number" => {
[INFO] [stdout]    24       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    25       │-                            node,
[INFO] [stdout]    26       │-                            move |cursor, last_idx| {
[INFO] [stdout]    27       │-                                Expression::Number({
[INFO] [stdout]    28       │-                                    ::rust_sitter::__private::extract_field::<
[INFO] [stdout]    29       │-                                        rust_sitter::WithLeaf<i32>,
[INFO] [stdout]    30       │-                                        _,
[INFO] [stdout]    31       │-                                    >(
[INFO] [stdout]    32       │-                                        cursor, source, last_idx, "0", Some(&|v| v.parse().unwrap())
[INFO] [stdout]    33       │-                                    )
[INFO] [stdout]    34       │-                                })
[INFO] [stdout]    35       │-                            },
[INFO] [stdout]    36       │-                        )
[INFO] [stdout]    37       │-                    }
[INFO] [stdout]    38       │-                    "Expression_Sub" => {
[INFO] [stdout]    39       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    40       │-                            node,
[INFO] [stdout]    41       │-                            move |cursor, last_idx| {
[INFO] [stdout]    42       │-                                Expression::Sub(
[INFO] [stdout]    43       │-                                    {
[INFO] [stdout]    44       │-                                        ::rust_sitter::__private::extract_field::<Box<Expression>, _>(
[INFO] [stdout]    45       │-                                            cursor, source, last_idx, "0", None,
[INFO] [stdout]    46       │-                                        )
[INFO] [stdout]    47       │-                                    },
[INFO] [stdout]    48       │-                                    {
[INFO] [stdout]    49       │-                                        ::rust_sitter::__private::extract_field::<(), _>(
[INFO] [stdout]    50       │-                                            cursor, source, last_idx, "1", None,
[INFO] [stdout]    51       │-                                        )
[INFO] [stdout]    52       │-                                    },
[INFO] [stdout]    53       │-                                    {
[INFO] [stdout]    54       │-                                        ::rust_sitter::__private::extract_field::<Box<Expression>, _>(
[INFO] [stdout]    55       │-                                            cursor, source, last_idx, "2", None,
[INFO] [stdout]    56       │-                                        )
[INFO] [stdout]    57       │-                                    },
[INFO] [stdout]    58       │-                                )
[INFO] [stdout]    59       │-                            },
[INFO] [stdout]    60       │-                        )
[INFO] [stdout]    61       │-                    }
[INFO] [stdout]    62       │-                    _ => {
[INFO] [stdout]    63       │-                        if !cursor.goto_next_sibling() {
[INFO] [stdout]    64       │-                            panic!("Could not find a child corresponding to any enum branch")
[INFO] [stdout]    65       │-                        }
[INFO] [stdout]    66       │-                    }
[INFO] [stdout]    67       │-                }
[INFO] [stdout]    68       │-            }
[INFO] [stdout]    69       │-        }
[INFO] [stdout]    70       │-    }
[INFO] [stdout]    71       │-    extern "C" {
[INFO] [stdout]    72       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    73       │-    }
[INFO] [stdout]    74       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    75       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    76       │-    }
[INFO] [stdout]    77       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    78       │-    #[doc = "[`Expression`]"]
[INFO] [stdout]    79       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    80       │-    pub fn parse(
[INFO] [stdout]    81       │-        input: &str,
[INFO] [stdout]    82       │-    ) -> core::result::Result<Expression, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    83       │-        ::rust_sitter::__private::parse::<Expression>(input, language)
[INFO] [stdout]    84       │-    }
[INFO] [stdout]    85       │-}
[INFO] [stdout]           0 │+mod grammar { pub enum Expression { Number (i32) , Sub (Box < Expression > , () , Box < Expression >) , } impl :: rust_sitter :: Extract < Expression > for Expression { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , _last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; let mut cursor = node . walk () ; assert ! (cursor . goto_first_child () , "Could not find a child corresponding to any enum branch") ; loop { let node = cursor . node () ; match node . kind () { "Expression_Number" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expression :: Number ({ :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "0" , Some (& | v | v . parse () . unwrap ())) })) , "Expression_Sub" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expression :: Sub ({ :: rust_sitter :: __private :: extract_field :: < Box < Expression > , _ > (cursor , source , last_idx , "0" , None) } , { :: rust_sitter :: __private :: extract_field :: < () , _ > (cursor , source , last_idx , "1" , None) } , { :: rust_sitter :: __private :: extract_field :: < Box < Expression > , _ > (cursor , source , last_idx , "2" , None) })) , _ => if ! cursor . goto_next_sibling () { panic ! ("Could not find a child corresponding to any enum branch") } } } } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Expression`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Expression , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Expression > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::enum_prec_left' panicked at src/lib.rs:312:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7fadbe75462c - std::backtrace_rs::backtrace::libunwind::trace::ha637c64ce894333a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
[INFO] [stdout]    1:     0x7fadbe75462c - std::backtrace_rs::backtrace::trace_unsynchronized::h47f62dea28e0c88d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7fadbe75462c - std::sys_common::backtrace::_print_fmt::h9eef0abe20ede486
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7fadbe75462c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hed7f999df88cc644
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7fadbe7a7630 - core::fmt::rt::Argument::fmt::h1539a9308b8d058d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/rt.rs:142:9
[INFO] [stdout]    5:     0x7fadbe7a7630 - core::fmt::write::h3a39390d8560d9c9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/mod.rs:1120:17
[INFO] [stdout]    6:     0x7fadbe7484bf - std::io::Write::write_fmt::h040b369f3a0f9cbc
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/io/mod.rs:1762:15
[INFO] [stdout]    7:     0x7fadbe754414 - std::sys_common::backtrace::_print::h894006fb5c6f3d45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7fadbe754414 - std::sys_common::backtrace::print::h23a2d212c6fff936
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7fadbe7570a7 - std::panicking::default_hook::{{closure}}::h8a1d2ee00185001a
[INFO] [stdout]   10:     0x7fadbe756d93 - std::panicking::default_hook::h6038f2eba384e475
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7fadbe822d07 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0ad024c9bdc6d768
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7fadbe822d07 - test::test_main::{{closure}}::h7500b54257359db6
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:138:21
[INFO] [stdout]   13:     0x7fadbe7577e8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1f8f335eaa9cfaee
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7fadbe7577e8 - std::panicking::rust_panic_with_hook::h2b5517d590cab22e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13
[INFO] [stdout]   15:     0x7fadbe75753e - std::panicking::begin_panic_handler::{{closure}}::h233112c06e0ef43e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13
[INFO] [stdout]   16:     0x7fadbe754af6 - std::sys_common::backtrace::__rust_end_short_backtrace::h6e893f24d7ebbff8
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7fadbe7572a2 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
[INFO] [stdout]   18:     0x7fadbe7a3d15 - core::panicking::panic_fmt::hbf0e066aabfa482c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7fadbe7a4403 - core::result::unwrap_failed::hddb4fea594200c52
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1653:5
[INFO] [stdout]   20:     0x55e6bca4ee6c - core::result::Result<T,E>::unwrap::h5cd7bab1cc5d5f9a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1077:23
[INFO] [stdout]   21:     0x55e6bca3ddc4 - rust_sitter_macro::tests::enum_prec_left::h4cd0359af1cbb140
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:312:9
[INFO] [stdout]   22:     0x55e6bca3c84d - rust_sitter_macro::tests::enum_prec_left::{{closure}}::hc2afe8d3a3d06402
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:311:28
[INFO] [stdout]   23:     0x55e6bca4daa6 - core::ops::function::FnOnce::call_once::h311f1a458add8e19
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x7fadbe828c9f - core::ops::function::FnOnce::call_once::h2b5d431d5046312d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7fadbe828c9f - test::__rust_begin_short_backtrace::h7714669af176e207
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:628:18
[INFO] [stdout]   26:     0x7fadbe827cb5 - test::run_test_in_process::{{closure}}::h85218797dcbcec12
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:60
[INFO] [stdout]   27:     0x7fadbe827cb5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h76c106ea31c14d7b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   28:     0x7fadbe827cb5 - std::panicking::try::do_call::h3bd5d0f6620ee946
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   29:     0x7fadbe827cb5 - std::panicking::try::h232e535e4744fe31
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   30:     0x7fadbe827cb5 - std::panic::catch_unwind::h3ce3bd6ca8dbac68
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x7fadbe827cb5 - test::run_test_in_process::hc97b257c9621286a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:27
[INFO] [stdout]   32:     0x7fadbe827cb5 - test::run_test::{{closure}}::h2aa798823a438d38
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:574:43
[INFO] [stdout]   33:     0x7fadbe7eba26 - test::run_test::{{closure}}::h87d231c78fb59832
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:602:41
[INFO] [stdout]   34:     0x7fadbe7eba26 - std::sys_common::backtrace::__rust_begin_short_backtrace::he6df152596625789
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   35:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha94be15d1e0acf36
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x7fadbe7f0ad7 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h9dc6bd6372f16606
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   37:     0x7fadbe7f0ad7 - std::panicking::try::do_call::h9057517f80303cd4
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   38:     0x7fadbe7f0ad7 - std::panicking::try::he3a30b11ee45340c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   39:     0x7fadbe7f0ad7 - std::panic::catch_unwind::h410458cfd3528b8b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::h72ac3bdb567b737b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x7fadbe7f0ad7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h38f34da3654a8344
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc7eafaff61e32df9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   43:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6ba4a5de48dd2304
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7fadbe7616a5 - std::sys::unix::thread::Thread::new::thread_start::he469335aef763e45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7fadbe4d2ac3 - <unknown>
[INFO] [stdout]   46:     0x7fadbe563bf4 - __clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::spanned_in_vec stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__spanned_in_vec.snap
[INFO] [stdout] Snapshot: spanned_in_vec
[INFO] [stdout] Source: src/lib.rs:504
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote! {
[INFO] [stdout]                                 #[rust_sitter :: grammar("test")] mod grammar
[INFO] [stdout]                                 {
[INFO] [stdout]                                     use rust_sitter :: Spanned ; #[rust_sitter :: language] pub
[INFO] [stdout]                                     struct NumberList { numbers : Vec < Spanned < Number >>, }
[INFO] [stdout]                                     pub struct Number
[INFO] [stdout]                                     {
[INFO] [stdout]                                         #[rust_sitter ::
[INFO] [stdout]                                         leaf(pattern = r"\d+", transform = | v |
[INFO] [stdout]                                         v.parse().unwrap())] v : i32
[INFO] [stdout]                                     } #[rust_sitter :: extra] struct Whitespace
[INFO] [stdout]                                     {
[INFO] [stdout]                                         #[rust_sitter :: leaf(pattern = r"\s")] _whitespace : (),
[INFO] [stdout]                                     }
[INFO] [stdout]                                 }
[INFO] [stdout]                             })?.to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    use rust_sitter::Spanned;
[INFO] [stdout]     2       │-    pub struct NumberList {
[INFO] [stdout]     3       │-        numbers: Vec<Spanned<Number>>,
[INFO] [stdout]     4       │-    }
[INFO] [stdout]     5       │-    impl ::rust_sitter::Extract<NumberList> for NumberList {
[INFO] [stdout]     6       │-        type LeafFn = ();
[INFO] [stdout]     7       │-        #[allow(non_snake_case)]
[INFO] [stdout]     8       │-        fn extract(
[INFO] [stdout]     9       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    10       │-            source: &[u8],
[INFO] [stdout]    11       │-            last_idx: usize,
[INFO] [stdout]    12       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    13       │-        ) -> Self {
[INFO] [stdout]    14       │-            let node = node.unwrap();
[INFO] [stdout]    15       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    16       │-                NumberList {
[INFO] [stdout]    17       │-                    numbers: {
[INFO] [stdout]    18       │-                        ::rust_sitter::__private::extract_field::<Vec<Spanned<Number>>, _>(
[INFO] [stdout]    19       │-                            cursor, source, last_idx, "numbers", None,
[INFO] [stdout]    20       │-                        )
[INFO] [stdout]    21       │-                    },
[INFO] [stdout]    22       │-                }
[INFO] [stdout]    23       │-            })
[INFO] [stdout]    24       │-        }
[INFO] [stdout]    25       │-    }
[INFO] [stdout]    26       │-    pub struct Number {
[INFO] [stdout]    27       │-        v: i32,
[INFO] [stdout]    28       │-    }
[INFO] [stdout]    29       │-    impl ::rust_sitter::Extract<Number> for Number {
[INFO] [stdout]    30       │-        type LeafFn = ();
[INFO] [stdout]    31       │-        #[allow(non_snake_case)]
[INFO] [stdout]    32       │-        fn extract(
[INFO] [stdout]    33       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    34       │-            source: &[u8],
[INFO] [stdout]    35       │-            last_idx: usize,
[INFO] [stdout]    36       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    37       │-        ) -> Self {
[INFO] [stdout]    38       │-            let node = node.unwrap();
[INFO] [stdout]    39       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    40       │-                Number {
[INFO] [stdout]    41       │-                    v: {
[INFO] [stdout]    42       │-                        ::rust_sitter::__private::extract_field::<rust_sitter::WithLeaf<i32>, _>(
[INFO] [stdout]    43       │-                            cursor,
[INFO] [stdout]    44       │-                            source,
[INFO] [stdout]    45       │-                            last_idx,
[INFO] [stdout]    46       │-                            "v",
[INFO] [stdout]    47       │-                            Some(&|v| v.parse().unwrap()),
[INFO] [stdout]    48       │-                        )
[INFO] [stdout]    49       │-                    },
[INFO] [stdout]    50       │-                }
[INFO] [stdout]    51       │-            })
[INFO] [stdout]    52       │-        }
[INFO] [stdout]    53       │-    }
[INFO] [stdout]    54       │-    struct Whitespace {
[INFO] [stdout]    55       │-        _whitespace: (),
[INFO] [stdout]    56       │-    }
[INFO] [stdout]    57       │-    impl ::rust_sitter::Extract<Whitespace> for Whitespace {
[INFO] [stdout]    58       │-        type LeafFn = ();
[INFO] [stdout]    59       │-        #[allow(non_snake_case)]
[INFO] [stdout]    60       │-        fn extract(
[INFO] [stdout]    61       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    62       │-            source: &[u8],
[INFO] [stdout]    63       │-            last_idx: usize,
[INFO] [stdout]    64       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    65       │-        ) -> Self {
[INFO] [stdout]    66       │-            let node = node.unwrap();
[INFO] [stdout]    67       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    68       │-                Whitespace {
[INFO] [stdout]    69       │-                    _whitespace: {
[INFO] [stdout]    70       │-                        ::rust_sitter::__private::extract_field::<(), _>(
[INFO] [stdout]    71       │-                            cursor,
[INFO] [stdout]    72       │-                            source,
[INFO] [stdout]    73       │-                            last_idx,
[INFO] [stdout]    74       │-                            "_whitespace",
[INFO] [stdout]    75       │-                            None,
[INFO] [stdout]    76       │-                        )
[INFO] [stdout]    77       │-                    },
[INFO] [stdout]    78       │-                }
[INFO] [stdout]    79       │-            })
[INFO] [stdout]    80       │-        }
[INFO] [stdout]    81       │-    }
[INFO] [stdout]    82       │-    extern "C" {
[INFO] [stdout]    83       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    84       │-    }
[INFO] [stdout]    85       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    86       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    87       │-    }
[INFO] [stdout]    88       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    89       │-    #[doc = "[`NumberList`]"]
[INFO] [stdout]    90       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    91       │-    pub fn parse(
[INFO] [stdout]    92       │-        input: &str,
[INFO] [stdout]    93       │-    ) -> core::result::Result<NumberList, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    94       │-        ::rust_sitter::__private::parse::<NumberList>(input, language)
[INFO] [stdout]    95       │-    }
[INFO] [stdout]    96       │-}
[INFO] [stdout]           0 │+mod grammar { use rust_sitter :: Spanned ; pub struct NumberList { numbers : Vec < Spanned < Number > > , } impl :: rust_sitter :: Extract < NumberList > for NumberList { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | NumberList { numbers : { :: rust_sitter :: __private :: extract_field :: < Vec < Spanned < Number > > , _ > (cursor , source , last_idx , "numbers" , None) } }) } } pub struct Number { v : i32 } impl :: rust_sitter :: Extract < Number > for Number { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Number { v : { :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "v" , Some (& | v | v . parse () . unwrap ())) } }) } } struct Whitespace { _whitespace : () , } impl :: rust_sitter :: Extract < Whitespace > for Whitespace { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Whitespace { _whitespace : { :: rust_sitter :: __private :: extract_field :: < () , _ > (cursor , source , last_idx , "_whitespace" , None) } }) } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`NumberList`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < NumberList , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < NumberList > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::spanned_in_vec' panicked at src/lib.rs:504:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7fadbe75462c - std::backtrace_rs::backtrace::libunwind::trace::ha637c64ce894333a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
[INFO] [stdout]    1:     0x7fadbe75462c - std::backtrace_rs::backtrace::trace_unsynchronized::h47f62dea28e0c88d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7fadbe75462c - std::sys_common::backtrace::_print_fmt::h9eef0abe20ede486
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7fadbe75462c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hed7f999df88cc644
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7fadbe7a7630 - core::fmt::rt::Argument::fmt::h1539a9308b8d058d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/rt.rs:142:9
[INFO] [stdout]    5:     0x7fadbe7a7630 - core::fmt::write::h3a39390d8560d9c9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/mod.rs:1120:17
[INFO] [stdout]    6:     0x7fadbe7484bf - std::io::Write::write_fmt::h040b369f3a0f9cbc
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/io/mod.rs:1762:15
[INFO] [stdout]    7:     0x7fadbe754414 - std::sys_common::backtrace::_print::h894006fb5c6f3d45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7fadbe754414 - std::sys_common::backtrace::print::h23a2d212c6fff936
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7fadbe7570a7 - std::panicking::default_hook::{{closure}}::h8a1d2ee00185001a
[INFO] [stdout]   10:     0x7fadbe756d93 - std::panicking::default_hook::h6038f2eba384e475
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7fadbe822d07 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0ad024c9bdc6d768
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7fadbe822d07 - test::test_main::{{closure}}::h7500b54257359db6
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:138:21
[INFO] [stdout]   13:     0x7fadbe7577e8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1f8f335eaa9cfaee
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7fadbe7577e8 - std::panicking::rust_panic_with_hook::h2b5517d590cab22e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13
[INFO] [stdout]   15:     0x7fadbe75753e - std::panicking::begin_panic_handler::{{closure}}::h233112c06e0ef43e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13
[INFO] [stdout]   16:     0x7fadbe754af6 - std::sys_common::backtrace::__rust_end_short_backtrace::h6e893f24d7ebbff8
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7fadbe7572a2 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
[INFO] [stdout]   18:     0x7fadbe7a3d15 - core::panicking::panic_fmt::hbf0e066aabfa482c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7fadbe7a4403 - core::result::unwrap_failed::hddb4fea594200c52
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1653:5
[INFO] [stdout]   20:     0x55e6bca4ee6c - core::result::Result<T,E>::unwrap::h5cd7bab1cc5d5f9a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1077:23
[INFO] [stdout]   21:     0x55e6bca470cc - rust_sitter_macro::tests::spanned_in_vec::h22e454b273fbe006
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:504:9
[INFO] [stdout]   22:     0x55e6bca45add - rust_sitter_macro::tests::spanned_in_vec::{{closure}}::h92985dfccfeb683e
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:503:28
[INFO] [stdout]   23:     0x55e6bca4dd16 - core::ops::function::FnOnce::call_once::h90a1bf35c5101bc4
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x7fadbe828c9f - core::ops::function::FnOnce::call_once::h2b5d431d5046312d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7fadbe828c9f - test::__rust_begin_short_backtrace::h7714669af176e207
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:628:18
[INFO] [stdout]   26:     0x7fadbe827cb5 - test::run_test_in_process::{{closure}}::h85218797dcbcec12
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:60
[INFO] [stdout]   27:     0x7fadbe827cb5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h76c106ea31c14d7b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   28:     0x7fadbe827cb5 - std::panicking::try::do_call::h3bd5d0f6620ee946
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   29:     0x7fadbe827cb5 - std::panicking::try::h232e535e4744fe31
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   30:     0x7fadbe827cb5 - std::panic::catch_unwind::h3ce3bd6ca8dbac68
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x7fadbe827cb5 - test::run_test_in_process::hc97b257c9621286a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:27
[INFO] [stdout]   32:     0x7fadbe827cb5 - test::run_test::{{closure}}::h2aa798823a438d38
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:574:43
[INFO] [stdout]   33:     0x7fadbe7eba26 - test::run_test::{{closure}}::h87d231c78fb59832
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:602:41
[INFO] [stdout]   34:     0x7fadbe7eba26 - std::sys_common::backtrace::__rust_begin_short_backtrace::he6df152596625789
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   35:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha94be15d1e0acf36
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x7fadbe7f0ad7 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h9dc6bd6372f16606
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   37:     0x7fadbe7f0ad7 - std::panicking::try::do_call::h9057517f80303cd4
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   38:     0x7fadbe7f0ad7 - std::panicking::try::he3a30b11ee45340c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   39:     0x7fadbe7f0ad7 - std::panic::catch_unwind::h410458cfd3528b8b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::h72ac3bdb567b737b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x7fadbe7f0ad7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h38f34da3654a8344
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc7eafaff61e32df9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   43:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6ba4a5de48dd2304
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7fadbe7616a5 - std::sys::unix::thread::Thread::new::thread_start::he469335aef763e45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7fadbe4d2ac3 - <unknown>
[INFO] [stdout]   46:     0x7fadbe563bf4 - __clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::struct_optional stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__struct_optional.snap
[INFO] [stdout] Snapshot: struct_optional
[INFO] [stdout] Source: src/lib.rs:424
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote! {
[INFO] [stdout]                                 #[rust_sitter :: grammar("test")] mod grammar
[INFO] [stdout]                                 {
[INFO] [stdout]                                     #[rust_sitter :: language] pub struct Language
[INFO] [stdout]                                     {
[INFO] [stdout]                                         #[rust_sitter ::
[INFO] [stdout]                                         leaf(pattern = r"\d+", transform = | v |
[INFO] [stdout]                                         v.parse().unwrap())] v : Option < i32 >, t : Option < Number
[INFO] [stdout]                                         >,
[INFO] [stdout]                                     } pub struct Number
[INFO] [stdout]                                     {
[INFO] [stdout]                                         #[rust_sitter ::
[INFO] [stdout]                                         leaf(pattern = r"\d+", transform = | v |
[INFO] [stdout]                                         v.parse().unwrap())] v : i32
[INFO] [stdout]                                     }
[INFO] [stdout]                                 }
[INFO] [stdout]                             })?.to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub struct Language {
[INFO] [stdout]     2       │-        v: Option<i32>,
[INFO] [stdout]     3       │-        t: Option<Number>,
[INFO] [stdout]     4       │-    }
[INFO] [stdout]     5       │-    impl ::rust_sitter::Extract<Language> for Language {
[INFO] [stdout]     6       │-        type LeafFn = ();
[INFO] [stdout]     7       │-        #[allow(non_snake_case)]
[INFO] [stdout]     8       │-        fn extract(
[INFO] [stdout]     9       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    10       │-            source: &[u8],
[INFO] [stdout]    11       │-            last_idx: usize,
[INFO] [stdout]    12       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    13       │-        ) -> Self {
[INFO] [stdout]    14       │-            let node = node.unwrap();
[INFO] [stdout]    15       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    16       │-                Language {
[INFO] [stdout]    17       │-                    v: {
[INFO] [stdout]    18       │-                        ::rust_sitter::__private::extract_field::<
[INFO] [stdout]    19       │-                            Option<rust_sitter::WithLeaf<i32>>,
[INFO] [stdout]    20       │-                            _,
[INFO] [stdout]    21       │-                        >(
[INFO] [stdout]    22       │-                            cursor, source, last_idx, "v", Some(&|v| v.parse().unwrap())
[INFO] [stdout]    23       │-                        )
[INFO] [stdout]    24       │-                    },
[INFO] [stdout]    25       │-                    t: {
[INFO] [stdout]    26       │-                        ::rust_sitter::__private::extract_field::<Option<Number>, _>(
[INFO] [stdout]    27       │-                            cursor, source, last_idx, "t", None,
[INFO] [stdout]    28       │-                        )
[INFO] [stdout]    29       │-                    },
[INFO] [stdout]    30       │-                }
[INFO] [stdout]    31       │-            })
[INFO] [stdout]    32       │-        }
[INFO] [stdout]    33       │-    }
[INFO] [stdout]    34       │-    pub struct Number {
[INFO] [stdout]    35       │-        v: i32,
[INFO] [stdout]    36       │-    }
[INFO] [stdout]    37       │-    impl ::rust_sitter::Extract<Number> for Number {
[INFO] [stdout]    38       │-        type LeafFn = ();
[INFO] [stdout]    39       │-        #[allow(non_snake_case)]
[INFO] [stdout]    40       │-        fn extract(
[INFO] [stdout]    41       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    42       │-            source: &[u8],
[INFO] [stdout]    43       │-            last_idx: usize,
[INFO] [stdout]    44       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    45       │-        ) -> Self {
[INFO] [stdout]    46       │-            let node = node.unwrap();
[INFO] [stdout]    47       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    48       │-                Number {
[INFO] [stdout]    49       │-                    v: {
[INFO] [stdout]    50       │-                        ::rust_sitter::__private::extract_field::<rust_sitter::WithLeaf<i32>, _>(
[INFO] [stdout]    51       │-                            cursor,
[INFO] [stdout]    52       │-                            source,
[INFO] [stdout]    53       │-                            last_idx,
[INFO] [stdout]    54       │-                            "v",
[INFO] [stdout]    55       │-                            Some(&|v| v.parse().unwrap()),
[INFO] [stdout]    56       │-                        )
[INFO] [stdout]    57       │-                    },
[INFO] [stdout]    58       │-                }
[INFO] [stdout]    59       │-            })
[INFO] [stdout]    60       │-        }
[INFO] [stdout]    61       │-    }
[INFO] [stdout]    62       │-    extern "C" {
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] [stdout]    63       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    64       │-    }
[INFO] [stdout]    65       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    66       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    67       │-    }
[INFO] [stdout]    68       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    69       │-    #[doc = "[`Language`]"]
[INFO] [stdout]    70       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    71       │-    pub fn parse(
[INFO] [stdout]    72       │-        input: &str,
[INFO] [stdout]    73       │-    ) -> core::result::Result<Language, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    74       │-        ::rust_sitter::__private::parse::<Language>(input, language)
[INFO] [stdout]    75       │-    }
[INFO] [stdout]    76       │-}
[INFO] [stdout]           0 │+mod grammar { pub struct Language { v : Option < i32 > , t : Option < Number > , } impl :: rust_sitter :: Extract < Language > for Language { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Language { v : { :: rust_sitter :: __private :: extract_field :: < Option < rust_sitter :: WithLeaf < i32 > > , _ > (cursor , source , last_idx , "v" , Some (& | v | v . parse () . unwrap ())) } , t : { :: rust_sitter :: __private :: extract_field :: < Option < Number > , _ > (cursor , source , last_idx , "t" , None) } }) } } pub struct Number { v : i32 } impl :: rust_sitter :: Extract < Number > for Number { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Number { v : { :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "v" , Some (& | v | v . parse () . unwrap ())) } }) } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Language`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Language , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Language > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::struct_optional' panicked at src/lib.rs:424:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7fadbe75462c - std::backtrace_rs::backtrace::libunwind::trace::ha637c64ce894333a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
[INFO] [stdout]    1:     0x7fadbe75462c - std::backtrace_rs::backtrace::trace_unsynchronized::h47f62dea28e0c88d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7fadbe75462c - std::sys_common::backtrace::_print_fmt::h9eef0abe20ede486
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7fadbe75462c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hed7f999df88cc644
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7fadbe7a7630 - core::fmt::rt::Argument::fmt::h1539a9308b8d058d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/rt.rs:142:9
[INFO] [stdout]    5:     0x7fadbe7a7630 - core::fmt::write::h3a39390d8560d9c9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/mod.rs:1120:17
[INFO] [stdout]    6:     0x7fadbe7484bf - std::io::Write::write_fmt::h040b369f3a0f9cbc
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/io/mod.rs:1762:15
[INFO] [stdout]    7:     0x7fadbe754414 - std::sys_common::backtrace::_print::h894006fb5c6f3d45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7fadbe754414 - std::sys_common::backtrace::print::h23a2d212c6fff936
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7fadbe7570a7 - std::panicking::default_hook::{{closure}}::h8a1d2ee00185001a
[INFO] [stdout]   10:     0x7fadbe756d93 - std::panicking::default_hook::h6038f2eba384e475
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7fadbe822d07 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0ad024c9bdc6d768
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7fadbe822d07 - test::test_main::{{closure}}::h7500b54257359db6
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:138:21
[INFO] [stdout]   13:     0x7fadbe7577e8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1f8f335eaa9cfaee
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7fadbe7577e8 - std::panicking::rust_panic_with_hook::h2b5517d590cab22e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13
[INFO] [stdout]   15:     0x7fadbe75753e - std::panicking::begin_panic_handler::{{closure}}::h233112c06e0ef43e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13
[INFO] [stdout]   16:     0x7fadbe754af6 - std::sys_common::backtrace::__rust_end_short_backtrace::h6e893f24d7ebbff8
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7fadbe7572a2 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
[INFO] [stdout]   18:     0x7fadbe7a3d15 - core::panicking::panic_fmt::hbf0e066aabfa482c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7fadbe7a4403 - core::result::unwrap_failed::hddb4fea594200c52
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1653:5
[INFO] [stdout]   20:     0x55e6bca4ee6c - core::result::Result<T,E>::unwrap::h5cd7bab1cc5d5f9a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1077:23
[INFO] [stdout]   21:     0x55e6bca4316d - rust_sitter_macro::tests::struct_optional::h126ccd01fbb382ae
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:424:9
[INFO] [stdout]   22:     0x55e6bca41c3d - rust_sitter_macro::tests::struct_optional::{{closure}}::h1dbd7467ec21bc6e
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:423:29
[INFO] [stdout]   23:     0x55e6bca4dcd6 - core::ops::function::FnOnce::call_once::h863d48e700fee659
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x7fadbe828c9f - core::ops::function::FnOnce::call_once::h2b5d431d5046312d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7fadbe828c9f - test::__rust_begin_short_backtrace::h7714669af176e207
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:628:18
[INFO] [stdout]   26:     0x7fadbe827cb5 - test::run_test_in_process::{{closure}}::h85218797dcbcec12
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:60
[INFO] [stdout]   27:     0x7fadbe827cb5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h76c106ea31c14d7b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   28:     0x7fadbe827cb5 - std::panicking::try::do_call::h3bd5d0f6620ee946
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   29:     0x7fadbe827cb5 - std::panicking::try::h232e535e4744fe31
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   30:     0x7fadbe827cb5 - std::panic::catch_unwind::h3ce3bd6ca8dbac68
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x7fadbe827cb5 - test::run_test_in_process::hc97b257c9621286a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:27
[INFO] [stdout]   32:     0x7fadbe827cb5 - test::run_test::{{closure}}::h2aa798823a438d38
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:574:43
[INFO] [stdout]   33:     0x7fadbe7eba26 - test::run_test::{{closure}}::h87d231c78fb59832
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:602:41
[INFO] [stdout]   34:     0x7fadbe7eba26 - std::sys_common::backtrace::__rust_begin_short_backtrace::he6df152596625789
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   35:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha94be15d1e0acf36
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x7fadbe7f0ad7 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h9dc6bd6372f16606
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   37:     0x7fadbe7f0ad7 - std::panicking::try::do_call::h9057517f80303cd4
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   38:     0x7fadbe7f0ad7 - std::panicking::try::he3a30b11ee45340c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   39:     0x7fadbe7f0ad7 - std::panic::catch_unwind::h410458cfd3528b8b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::h72ac3bdb567b737b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x7fadbe7f0ad7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h38f34da3654a8344
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc7eafaff61e32df9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   43:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6ba4a5de48dd2304
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7fadbe7616a5 - std::sys::unix::thread::Thread::new::thread_start::he469335aef763e45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7fadbe4d2ac3 - <unknown>
[INFO] [stdout]   46:     0x7fadbe563bf4 - __clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::struct_extra stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__struct_extra.snap
[INFO] [stdout] Snapshot: struct_extra
[INFO] [stdout] Source: src/lib.rs:341
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote! {
[INFO] [stdout]                                 #[rust_sitter :: grammar("test")] mod grammar
[INFO] [stdout]                                 {
[INFO] [stdout]                                     #[rust_sitter :: language] pub enum Expression
[INFO] [stdout]                                     {
[INFO] [stdout]                                         Number(#[rust_sitter ::
[INFO] [stdout]                                         leaf(pattern = r"\d+", transform = | v |
[INFO] [stdout]                                         v.parse().unwrap())] i32,),
[INFO] [stdout]                                     } #[rust_sitter :: extra] struct Whitespace
[INFO] [stdout]                                     {
[INFO] [stdout]                                         #[rust_sitter :: leaf(pattern = r"\s")] _whitespace : (),
[INFO] [stdout]                                     }
[INFO] [stdout]                                 }
[INFO] [stdout]                             })?.to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub enum Expression {
[INFO] [stdout]     2       │-        Number(i32),
[INFO] [stdout]     3       │-    }
[INFO] [stdout]     4       │-    impl ::rust_sitter::Extract<Expression> for Expression {
[INFO] [stdout]     5       │-        type LeafFn = ();
[INFO] [stdout]     6       │-        #[allow(non_snake_case)]
[INFO] [stdout]     7       │-        fn extract(
[INFO] [stdout]     8       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]     9       │-            source: &[u8],
[INFO] [stdout]    10       │-            _last_idx: usize,
[INFO] [stdout]    11       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    12       │-        ) -> Self {
[INFO] [stdout]    13       │-            let node = node.unwrap();
[INFO] [stdout]    14       │-            let mut cursor = node.walk();
[INFO] [stdout]    15       │-            assert!(
[INFO] [stdout]    16       │-                cursor.goto_first_child(),
[INFO] [stdout]    17       │-                "Could not find a child corresponding to any enum branch"
[INFO] [stdout]    18       │-            );
[INFO] [stdout]    19       │-            loop {
[INFO] [stdout]    20       │-                let node = cursor.node();
[INFO] [stdout]    21       │-                match node.kind() {
[INFO] [stdout]    22       │-                    "Expression_Number" => {
[INFO] [stdout]    23       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    24       │-                            node,
[INFO] [stdout]    25       │-                            move |cursor, last_idx| {
[INFO] [stdout]    26       │-                                Expression::Number({
[INFO] [stdout]    27       │-                                    ::rust_sitter::__private::extract_field::<
[INFO] [stdout]    28       │-                                        rust_sitter::WithLeaf<i32>,
[INFO] [stdout]    29       │-                                        _,
[INFO] [stdout]    30       │-                                    >(
[INFO] [stdout]    31       │-                                        cursor, source, last_idx, "0", Some(&|v| v.parse().unwrap())
[INFO] [stdout]    32       │-                                    )
[INFO] [stdout]    33       │-                                })
[INFO] [stdout]    34       │-                            },
[INFO] [stdout]    35       │-                        )
[INFO] [stdout]    36       │-                    }
[INFO] [stdout]    37       │-                    _ => {
[INFO] [stdout]    38       │-                        if !cursor.goto_next_sibling() {
[INFO] [stdout]    39       │-                            panic!("Could not find a child corresponding to any enum branch")
[INFO] [stdout]    40       │-                        }
[INFO] [stdout]    41       │-                    }
[INFO] [stdout]    42       │-                }
[INFO] [stdout]    43       │-            }
[INFO] [stdout]    44       │-        }
[INFO] [stdout]    45       │-    }
[INFO] [stdout]    46       │-    struct Whitespace {
[INFO] [stdout]    47       │-        _whitespace: (),
[INFO] [stdout]    48       │-    }
[INFO] [stdout]    49       │-    impl ::rust_sitter::Extract<Whitespace> for Whitespace {
[INFO] [stdout]    50       │-        type LeafFn = ();
[INFO] [stdout]    51       │-        #[allow(non_snake_case)]
[INFO] [stdout]    52       │-        fn extract(
[INFO] [stdout]    53       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    54       │-            source: &[u8],
[INFO] [stdout]    55       │-            last_idx: usize,
[INFO] [stdout]    56       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    57       │-        ) -> Self {
[INFO] [stdout]    58       │-            let node = node.unwrap();
[INFO] [stdout]    59       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    60       │-                Whitespace {
[INFO] [stdout]    61       │-                    _whitespace: {
[INFO] [stdout]    62       │-                        ::rust_sitter::__private::extract_field::<(), _>(
[INFO] [stdout]    63       │-                            cursor,
[INFO] [stdout]    64       │-                            source,
[INFO] [stdout]    65       │-                            last_idx,
[INFO] [stdout]    66       │-                            "_whitespace",
[INFO] [stdout]    67       │-                            None,
[INFO] [stdout]    68       │-                        )
[INFO] [stdout]    69       │-                    },
[INFO] [stdout]    70       │-                }
[INFO] [stdout]    71       │-            })
[INFO] [stdout]    72       │-        }
[INFO] [stdout]    73       │-    }
[INFO] [stdout]    74       │-    extern "C" {
[INFO] [stdout]    75       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    76       │-    }
[INFO] [stdout]    77       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    78       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    79       │-    }
[INFO] [stdout]    80       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    81       │-    #[doc = "[`Expression`]"]
[INFO] [stdout]    82       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    83       │-    pub fn parse(
[INFO] [stdout]    84       │-        input: &str,
[INFO] [stdout]    85       │-    ) -> core::result::Result<Expression, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    86       │-        ::rust_sitter::__private::parse::<Expression>(input, language)
[INFO] [stdout]    87       │-    }
[INFO] [stdout]    88       │-}
[INFO] [stdout]           0 │+mod grammar { pub enum Expression { Number (i32 ,) , } impl :: rust_sitter :: Extract < Expression > for Expression { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , _last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; let mut cursor = node . walk () ; assert ! (cursor . goto_first_child () , "Could not find a child corresponding to any enum branch") ; loop { let node = cursor . node () ; match node . kind () { "Expression_Number" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expression :: Number ({ :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "0" , Some (& | v | v . parse () . unwrap ())) })) , _ => if ! cursor . goto_next_sibling () { panic ! ("Could not find a child corresponding to any enum branch") } } } } } struct Whitespace { _whitespace : () , } impl :: rust_sitter :: Extract < Whitespace > for Whitespace { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Whitespace { _whitespace : { :: rust_sitter :: __private :: extract_field :: < () , _ > (cursor , source , last_idx , "_whitespace" , None) } }) } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Expression`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Expression , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Expression > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::struct_extra' panicked at src/lib.rs:341:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7fadbe75462c - std::backtrace_rs::backtrace::libunwind::trace::ha637c64ce894333a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
[INFO] [stdout]    1:     0x7fadbe75462c - std::backtrace_rs::backtrace::trace_unsynchronized::h47f62dea28e0c88d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7fadbe75462c - std::sys_common::backtrace::_print_fmt::h9eef0abe20ede486
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7fadbe75462c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hed7f999df88cc644
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7fadbe7a7630 - core::fmt::rt::Argument::fmt::h1539a9308b8d058d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/rt.rs:142:9
[INFO] [stdout]    5:     0x7fadbe7a7630 - core::fmt::write::h3a39390d8560d9c9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/mod.rs:1120:17
[INFO] [stdout]    6:     0x7fadbe7484bf - std::io::Write::write_fmt::h040b369f3a0f9cbc
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/io/mod.rs:1762:15
[INFO] [stdout]    7:     0x7fadbe754414 - std::sys_common::backtrace::_print::h894006fb5c6f3d45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7fadbe754414 - std::sys_common::backtrace::print::h23a2d212c6fff936
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7fadbe7570a7 - std::panicking::default_hook::{{closure}}::h8a1d2ee00185001a
[INFO] [stdout]   10:     0x7fadbe756d93 - std::panicking::default_hook::h6038f2eba384e475
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7fadbe822d07 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0ad024c9bdc6d768
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7fadbe822d07 - test::test_main::{{closure}}::h7500b54257359db6
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:138:21
[INFO] [stdout]   13:     0x7fadbe7577e8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1f8f335eaa9cfaee
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7fadbe7577e8 - std::panicking::rust_panic_with_hook::h2b5517d590cab22e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13
[INFO] [stdout]   15:     0x7fadbe75753e - std::panicking::begin_panic_handler::{{closure}}::h233112c06e0ef43e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13
[INFO] [stdout]   16:     0x7fadbe754af6 - std::sys_common::backtrace::__rust_end_short_backtrace::h6e893f24d7ebbff8
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7fadbe7572a2 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
[INFO] [stdout]   18:     0x7fadbe7a3d15 - core::panicking::panic_fmt::hbf0e066aabfa482c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7fadbe7a4403 - core::result::unwrap_failed::hddb4fea594200c52
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1653:5
[INFO] [stdout]   20:     0x55e6bca4ee6c - core::result::Result<T,E>::unwrap::h5cd7bab1cc5d5f9a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1077:23
[INFO] [stdout]   21:     0x55e6bca3f2be - rust_sitter_macro::tests::struct_extra::h62d4b9807229da3e
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:341:9
[INFO] [stdout]   22:     0x55e6bca3de7d - rust_sitter_macro::tests::struct_extra::{{closure}}::h2f883c35626db15a
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:340:26
[INFO] [stdout]   23:     0x55e6bca4dbb6 - core::ops::function::FnOnce::call_once::h6f69cd4c3b3d5e87
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x7fadbe828c9f - core::ops::function::FnOnce::call_once::h2b5d431d5046312d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7fadbe828c9f - test::__rust_begin_short_backtrace::h7714669af176e207
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:628:18
[INFO] [stdout]   26:     0x7fadbe827cb5 - test::run_test_in_process::{{closure}}::h85218797dcbcec12
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:60
[INFO] [stdout]   27:     0x7fadbe827cb5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h76c106ea31c14d7b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   28:     0x7fadbe827cb5 - std::panicking::try::do_call::h3bd5d0f6620ee946
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   29:     0x7fadbe827cb5 - std::panicking::try::h232e535e4744fe31
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   30:     0x7fadbe827cb5 - std::panic::catch_unwind::h3ce3bd6ca8dbac68
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x7fadbe827cb5 - test::run_test_in_process::hc97b257c9621286a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:27
[INFO] [stdout]   32:     0x7fadbe827cb5 - test::run_test::{{closure}}::h2aa798823a438d38
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:574:43
[INFO] [stdout]   33:     0x7fadbe7eba26 - test::run_test::{{closure}}::h87d231c78fb59832
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:602:41
[INFO] [stdout]   34:     0x7fadbe7eba26 - std::sys_common::backtrace::__rust_begin_short_backtrace::he6df152596625789
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   35:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha94be15d1e0acf36
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x7fadbe7f0ad7 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h9dc6bd6372f16606
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   37:     0x7fadbe7f0ad7 - std::panicking::try::do_call::h9057517f80303cd4
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   38:     0x7fadbe7f0ad7 - std::panicking::try::he3a30b11ee45340c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   39:     0x7fadbe7f0ad7 - std::panic::catch_unwind::h410458cfd3528b8b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::h72ac3bdb567b737b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x7fadbe7f0ad7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h38f34da3654a8344
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc7eafaff61e32df9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   43:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6ba4a5de48dd2304
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7fadbe7616a5 - std::sys::unix::thread::Thread::new::thread_start::he469335aef763e45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7fadbe4d2ac3 - <unknown>
[INFO] [stdout]   46:     0x7fadbe563bf4 - __clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::grammar_unboxed_field stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__grammar_unboxed_field.snap
[INFO] [stdout] Snapshot: grammar_unboxed_field
[INFO] [stdout] Source: src/lib.rs:368
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote! {
[INFO] [stdout]                                 #[rust_sitter :: grammar("test")] mod grammar
[INFO] [stdout]                                 {
[INFO] [stdout]                                     #[rust_sitter :: language] pub struct Language
[INFO] [stdout]                                     { e : Expression, } pub enum Expression
[INFO] [stdout]                                     {
[INFO] [stdout]                                         Number(#[rust_sitter ::
[INFO] [stdout]                                         leaf(pattern = r"\d+", transform = | v : & str | v.parse ::
[INFO] [stdout]                                         < i32 > ().unwrap())] i32),
[INFO] [stdout]                                     }
[INFO] [stdout]                                 }
[INFO] [stdout]                             })?.to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub struct Language {
[INFO] [stdout]     2       │-        e: Expression,
[INFO] [stdout]     3       │-    }
[INFO] [stdout]     4       │-    impl ::rust_sitter::Extract<Language> for Language {
[INFO] [stdout]     5       │-        type LeafFn = ();
[INFO] [stdout]     6       │-        #[allow(non_snake_case)]
[INFO] [stdout]     7       │-        fn extract(
[INFO] [stdout]     8       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]     9       │-            source: &[u8],
[INFO] [stdout]    10       │-            last_idx: usize,
[INFO] [stdout]    11       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    12       │-        ) -> Self {
[INFO] [stdout]    13       │-            let node = node.unwrap();
[INFO] [stdout]    14       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    15       │-                Language {
[INFO] [stdout]    16       │-                    e: {
[INFO] [stdout]    17       │-                        ::rust_sitter::__private::extract_field::<Expression, _>(
[INFO] [stdout]    18       │-                            cursor, source, last_idx, "e", None,
[INFO] [stdout]    19       │-                        )
[INFO] [stdout]    20       │-                    },
[INFO] [stdout]    21       │-                }
[INFO] [stdout]    22       │-            })
[INFO] [stdout]    23       │-        }
[INFO] [stdout]    24       │-    }
[INFO] [stdout]    25       │-    pub enum Expression {
[INFO] [stdout]    26       │-        Number(i32),
[INFO] [stdout]    27       │-    }
[INFO] [stdout]    28       │-    impl ::rust_sitter::Extract<Expression> for Expression {
[INFO] [stdout]    29       │-        type LeafFn = ();
[INFO] [stdout]    30       │-        #[allow(non_snake_case)]
[INFO] [stdout]    31       │-        fn extract(
[INFO] [stdout]    32       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    33       │-            source: &[u8],
[INFO] [stdout]    34       │-            _last_idx: usize,
[INFO] [stdout]    35       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    36       │-        ) -> Self {
[INFO] [stdout]    37       │-            let node = node.unwrap();
[INFO] [stdout]    38       │-            let mut cursor = node.walk();
[INFO] [stdout]    39       │-            assert!(
[INFO] [stdout]    40       │-                cursor.goto_first_child(),
[INFO] [stdout]    41       │-                "Could not find a child corresponding to any enum branch"
[INFO] [stdout]    42       │-            );
[INFO] [stdout]    43       │-            loop {
[INFO] [stdout]    44       │-                let node = cursor.node();
[INFO] [stdout]    45       │-                match node.kind() {
[INFO] [stdout]    46       │-                    "Expression_Number" => {
[INFO] [stdout]    47       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    48       │-                            node,
[INFO] [stdout]    49       │-                            move |cursor, last_idx| {
[INFO] [stdout]    50       │-                                Expression::Number({
[INFO] [stdout]    51       │-                                    ::rust_sitter::__private::extract_field::<
[INFO] [stdout]    52       │-                                        rust_sitter::WithLeaf<i32>,
[INFO] [stdout]    53       │-                                        _,
[INFO] [stdout]    54       │-                                    >(
[INFO] [stdout]    55       │-                                        cursor,
[INFO] [stdout]    56       │-                                        source,
[INFO] [stdout]    57       │-                                        last_idx,
[INFO] [stdout]    58       │-                                        "0",
[INFO] [stdout]    59       │-                                        Some(&|v: &str| v.parse::<i32>().unwrap()),
[INFO] [stdout]    60       │-                                    )
[INFO] [stdout]    61       │-                                })
[INFO] [stdout]    62       │-                            },
[INFO] [stdout]    63       │-                        )
[INFO] [stdout]    64       │-                    }
[INFO] [stdout]    65       │-                    _ => {
[INFO] [stdout]    66       │-                        if !cursor.goto_next_sibling() {
[INFO] [stdout]    67       │-                            panic!("Could not find a child corresponding to any enum branch")
[INFO] [stdout]    68       │-                        }
[INFO] [stdout]    69       │-                    }
[INFO] [stdout]    70       │-                }
[INFO] [stdout]    71       │-            }
[INFO] [stdout]    72       │-        }
[INFO] [stdout]    73       │-    }
[INFO] [stdout]    74       │-    extern "C" {
[INFO] [stdout]    75       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    76       │-    }
[INFO] [stdout]    77       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    78       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    79       │-    }
[INFO] [stdout]    80       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    81       │-    #[doc = "[`Language`]"]
[INFO] [stdout]    82       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    83       │-    pub fn parse(
[INFO] [stdout]    84       │-        input: &str,
[INFO] [stdout]    85       │-    ) -> core::result::Result<Language, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    86       │-        ::rust_sitter::__private::parse::<Language>(input, language)
[INFO] [stdout]    87       │-    }
[INFO] [stdout]    88       │-}
[INFO] [stdout]           0 │+mod grammar { pub struct Language { e : Expression , } impl :: rust_sitter :: Extract < Language > for Language { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Language { e : { :: rust_sitter :: __private :: extract_field :: < Expression , _ > (cursor , source , last_idx , "e" , None) } }) } } pub enum Expression { Number (i32) , } impl :: rust_sitter :: Extract < Expression > for Expression { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , _last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; let mut cursor = node . walk () ; assert ! (cursor . goto_first_child () , "Could not find a child corresponding to any enum branch") ; loop { let node = cursor . node () ; match node . kind () { "Expression_Number" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expression :: Number ({ :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "0" , Some (& | v : & str | v . parse :: < i32 > () . unwrap ())) })) , _ => if ! cursor . goto_next_sibling () { panic ! ("Could not find a child corresponding to any enum branch") } } } } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Language`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Language , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Language > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::grammar_unboxed_field' panicked at src/lib.rs:368:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7fadbe75462c - std::backtrace_rs::backtrace::libunwind::trace::ha637c64ce894333a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
[INFO] [stdout]    1:     0x7fadbe75462c - std::backtrace_rs::backtrace::trace_unsynchronized::h47f62dea28e0c88d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7fadbe75462c - std::sys_common::backtrace::_print_fmt::h9eef0abe20ede486
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7fadbe75462c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hed7f999df88cc644
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7fadbe7a7630 - core::fmt::rt::Argument::fmt::h1539a9308b8d058d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/rt.rs:142:9
[INFO] [stdout]    5:     0x7fadbe7a7630 - core::fmt::write::h3a39390d8560d9c9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/mod.rs:1120:17
[INFO] [stdout]    6:     0x7fadbe7484bf - std::io::Write::write_fmt::h040b369f3a0f9cbc
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/io/mod.rs:1762:15
[INFO] [stdout]    7:     0x7fadbe754414 - std::sys_common::backtrace::_print::h894006fb5c6f3d45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7fadbe754414 - std::sys_common::backtrace::print::h23a2d212c6fff936
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7fadbe7570a7 - std::panicking::default_hook::{{closure}}::h8a1d2ee00185001a
[INFO] [stdout]   10:     0x7fadbe756d93 - std::panicking::default_hook::h6038f2eba384e475
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7fadbe822d07 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0ad024c9bdc6d768
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7fadbe822d07 - test::test_main::{{closure}}::h7500b54257359db6
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:138:21
[INFO] [stdout]   13:     0x7fadbe7577e8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1f8f335eaa9cfaee
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7fadbe7577e8 - std::panicking::rust_panic_with_hook::h2b5517d590cab22e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13
[INFO] [stdout]   15:     0x7fadbe75753e - std::panicking::begin_panic_handler::{{closure}}::h233112c06e0ef43e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13
[INFO] [stdout]   16:     0x7fadbe754af6 - std::sys_common::backtrace::__rust_end_short_backtrace::h6e893f24d7ebbff8
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7fadbe7572a2 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
[INFO] [stdout]   18:     0x7fadbe7a3d15 - core::panicking::panic_fmt::hbf0e066aabfa482c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7fadbe7a4403 - core::result::unwrap_failed::hddb4fea594200c52
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1653:5
[INFO] [stdout]   20:     0x55e6bca4ee6c - core::result::Result<T,E>::unwrap::h5cd7bab1cc5d5f9a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1077:23
[INFO] [stdout]   21:     0x55e6bca40594 - rust_sitter_macro::tests::grammar_unboxed_field::hb53b68c636b2e6cd
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:368:9
[INFO] [stdout]   22:     0x55e6bca3f37d - rust_sitter_macro::tests::grammar_unboxed_field::{{closure}}::h496addf625ec4332
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:367:35
[INFO] [stdout]   23:     0x55e6bca4df06 - core::ops::function::FnOnce::call_once::he97fe3dbf8748e33
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x7fadbe828c9f - core::ops::function::FnOnce::call_once::h2b5d431d5046312d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7fadbe828c9f - test::__rust_begin_short_backtrace::h7714669af176e207
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:628:18
[INFO] [stdout]   26:     0x7fadbe827cb5 - test::run_test_in_process::{{closure}}::h85218797dcbcec12
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:60
[INFO] [stdout]   27:     0x7fadbe827cb5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h76c106ea31c14d7b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   28:     0x7fadbe827cb5 - std::panicking::try::do_call::h3bd5d0f6620ee946
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   29:     0x7fadbe827cb5 - std::panicking::try::h232e535e4744fe31
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   30:     0x7fadbe827cb5 - std::panic::catch_unwind::h3ce3bd6ca8dbac68
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x7fadbe827cb5 - test::run_test_in_process::hc97b257c9621286a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:27
[INFO] [stdout]   32:     0x7fadbe827cb5 - test::run_test::{{closure}}::h2aa798823a438d38
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:574:43
[INFO] [stdout]   33:     0x7fadbe7eba26 - test::run_test::{{closure}}::h87d231c78fb59832
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:602:41
[INFO] [stdout]   34:     0x7fadbe7eba26 - std::sys_common::backtrace::__rust_begin_short_backtrace::he6df152596625789
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   35:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha94be15d1e0acf36
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x7fadbe7f0ad7 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h9dc6bd6372f16606
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   37:     0x7fadbe7f0ad7 - std::panicking::try::do_call::h9057517f80303cd4
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   38:     0x7fadbe7f0ad7 - std::panicking::try::he3a30b11ee45340c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   39:     0x7fadbe7f0ad7 - std::panic::catch_unwind::h410458cfd3528b8b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::h72ac3bdb567b737b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x7fadbe7f0ad7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h38f34da3654a8344
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc7eafaff61e32df9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   43:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6ba4a5de48dd2304
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7fadbe7616a5 - std::sys::unix::thread::Thread::new::thread_start::he469335aef763e45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7fadbe4d2ac3 - <unknown>
[INFO] [stdout]   46:     0x7fadbe563bf4 - __clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::enum_recursive stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__enum_recursive.snap
[INFO] [stdout] Snapshot: enum_recursive
[INFO] [stdout] Source: src/lib.rs:285
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote! {
[INFO] [stdout]                                 #[rust_sitter :: grammar("test")] mod grammar
[INFO] [stdout]                                 {
[INFO] [stdout]                                     #[rust_sitter :: language] pub enum Expression
[INFO] [stdout]                                     {
[INFO] [stdout]                                         Number(#[rust_sitter ::
[INFO] [stdout]                                         leaf(pattern = r"\d+", transform = | v |
[INFO] [stdout]                                         v.parse().unwrap())] i32),
[INFO] [stdout]                                         Neg(#[rust_sitter :: leaf(text = "-")] (), Box < Expression
[INFO] [stdout]                                         >),
[INFO] [stdout]                                     }
[INFO] [stdout]                                 }
[INFO] [stdout]                             })?.to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub enum Expression {
[INFO] [stdout]     2       │-        Number(i32),
[INFO] [stdout]     3       │-        Neg((), Box<Expression>),
[INFO] [stdout]     4       │-    }
[INFO] [stdout]     5       │-    impl ::rust_sitter::Extract<Expression> for Expression {
[INFO] [stdout]     6       │-        type LeafFn = ();
[INFO] [stdout]     7       │-        #[allow(non_snake_case)]
[INFO] [stdout]     8       │-        fn extract(
[INFO] [stdout]     9       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    10       │-            source: &[u8],
[INFO] [stdout]    11       │-            _last_idx: usize,
[INFO] [stdout]    12       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    13       │-        ) -> Self {
[INFO] [stdout]    14       │-            let node = node.unwrap();
[INFO] [stdout]    15       │-            let mut cursor = node.walk();
[INFO] [stdout]    16       │-            assert!(
[INFO] [stdout]    17       │-                cursor.goto_first_child(),
[INFO] [stdout]    18       │-                "Could not find a child corresponding to any enum branch"
[INFO] [stdout]    19       │-            );
[INFO] [stdout]    20       │-            loop {
[INFO] [stdout]    21       │-                let node = cursor.node();
[INFO] [stdout]    22       │-                match node.kind() {
[INFO] [stdout]    23       │-                    "Expression_Number" => {
[INFO] [stdout]    24       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    25       │-                            node,
[INFO] [stdout]    26       │-                            move |cursor, last_idx| {
[INFO] [stdout]    27       │-                                Expression::Number({
[INFO] [stdout]    28       │-                                    ::rust_sitter::__private::extract_field::<
[INFO] [stdout]    29       │-                                        rust_sitter::WithLeaf<i32>,
[INFO] [stdout]    30       │-                                        _,
[INFO] [stdout]    31       │-                                    >(
[INFO] [stdout]    32       │-                                        cursor, source, last_idx, "0", Some(&|v| v.parse().unwrap())
[INFO] [stdout]    33       │-                                    )
[INFO] [stdout]    34       │-                                })
[INFO] [stdout]    35       │-                            },
[INFO] [stdout]    36       │-                        )
[INFO] [stdout]    37       │-                    }
[INFO] [stdout]    38       │-                    "Expression_Neg" => {
[INFO] [stdout]    39       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    40       │-                            node,
[INFO] [stdout]    41       │-                            move |cursor, last_idx| {
[INFO] [stdout]    42       │-                                Expression::Neg(
[INFO] [stdout]    43       │-                                    {
[INFO] [stdout]    44       │-                                        ::rust_sitter::__private::extract_field::<(), _>(
[INFO] [stdout]    45       │-                                            cursor, source, last_idx, "0", None,
[INFO] [stdout]    46       │-                                        )
[INFO] [stdout]    47       │-                                    },
[INFO] [stdout]    48       │-                                    {
[INFO] [stdout]    49       │-                                        ::rust_sitter::__private::extract_field::<Box<Expression>, _>(
[INFO] [stdout]    50       │-                                            cursor, source, last_idx, "1", None,
[INFO] [stdout]    51       │-                                        )
[INFO] [stdout]    52       │-                                    },
[INFO] [stdout]    53       │-                                )
[INFO] [stdout]    54       │-                            },
[INFO] [stdout]    55       │-                        )
[INFO] [stdout]    56       │-                    }
[INFO] [stdout]    57       │-                    _ => {
[INFO] [stdout]    58       │-                        if !cursor.goto_next_sibling() {
[INFO] [stdout]    59       │-                            panic!("Could not find a child corresponding to any enum branch")
[INFO] [stdout]    60       │-                        }
[INFO] [stdout]    61       │-                    }
[INFO] [stdout]    62       │-                }
[INFO] [stdout]    63       │-            }
[INFO] [stdout]    64       │-        }
[INFO] [stdout]    65       │-    }
[INFO] [stdout]    66       │-    extern "C" {
[INFO] [stdout]    67       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    68       │-    }
[INFO] [stdout]    69       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    70       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    71       │-    }
[INFO] [stdout]    72       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    73       │-    #[doc = "[`Expression`]"]
[INFO] [stdout]    74       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    75       │-    pub fn parse(
[INFO] [stdout]    76       │-        input: &str,
[INFO] [stdout]    77       │-    ) -> core::result::Result<Expression, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    78       │-        ::rust_sitter::__private::parse::<Expression>(input, language)
[INFO] [stdout]    79       │-    }
[INFO] [stdout]    80       │-}
[INFO] [stdout]           0 │+mod grammar { pub enum Expression { Number (i32) , Neg (() , Box < Expression >) , } impl :: rust_sitter :: Extract < Expression > for Expression { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , _last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; let mut cursor = node . walk () ; assert ! (cursor . goto_first_child () , "Could not find a child corresponding to any enum branch") ; loop { let node = cursor . node () ; match node . kind () { "Expression_Number" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expression :: Number ({ :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "0" , Some (& | v | v . parse () . unwrap ())) })) , "Expression_Neg" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expression :: Neg ({ :: rust_sitter :: __private :: extract_field :: < () , _ > (cursor , source , last_idx , "0" , None) } , { :: rust_sitter :: __private :: extract_field :: < Box < Expression > , _ > (cursor , source , last_idx , "1" , None) })) , _ => if ! cursor . goto_next_sibling () { panic ! ("Could not find a child corresponding to any enum branch") } } } } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Expression`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Expression , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Expression > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::enum_recursive' panicked at src/lib.rs:285:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7fadbe75462c - std::backtrace_rs::backtrace::libunwind::trace::ha637c64ce894333a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
[INFO] [stdout]    1:     0x7fadbe75462c - std::backtrace_rs::backtrace::trace_unsynchronized::h47f62dea28e0c88d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7fadbe75462c - std::sys_common::backtrace::_print_fmt::h9eef0abe20ede486
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7fadbe75462c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hed7f999df88cc644
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7fadbe7a7630 - core::fmt::rt::Argument::fmt::h1539a9308b8d058d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/rt.rs:142:9
[INFO] [stdout]    5:     0x7fadbe7a7630 - core::fmt::write::h3a39390d8560d9c9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/mod.rs:1120:17
[INFO] [stdout]    6:     0x7fadbe7484bf - std::io::Write::write_fmt::h040b369f3a0f9cbc
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/io/mod.rs:1762:15
[INFO] [stdout]    7:     0x7fadbe754414 - std::sys_common::backtrace::_print::h894006fb5c6f3d45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7fadbe754414 - std::sys_common::backtrace::print::h23a2d212c6fff936
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7fadbe7570a7 - std::panicking::default_hook::{{closure}}::h8a1d2ee00185001a
[INFO] [stdout]   10:     0x7fadbe756d93 - std::panicking::default_hook::h6038f2eba384e475
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7fadbe822d07 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0ad024c9bdc6d768
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7fadbe822d07 - test::test_main::{{closure}}::h7500b54257359db6
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:138:21
[INFO] [stdout]   13:     0x7fadbe7577e8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1f8f335eaa9cfaee
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7fadbe7577e8 - std::panicking::rust_panic_with_hook::h2b5517d590cab22e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13
[INFO] [stdout]   15:     0x7fadbe75753e - std::panicking::begin_panic_handler::{{closure}}::h233112c06e0ef43e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13
[INFO] [stdout]   16:     0x7fadbe754af6 - std::sys_common::backtrace::__rust_end_short_backtrace::h6e893f24d7ebbff8
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7fadbe7572a2 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
[INFO] [stdout]   18:     0x7fadbe7a3d15 - core::panicking::panic_fmt::hbf0e066aabfa482c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7fadbe7a4403 - core::result::unwrap_failed::hddb4fea594200c52
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1653:5
[INFO] [stdout]   20:     0x55e6bca4ee6c - core::result::Result<T,E>::unwrap::h5cd7bab1cc5d5f9a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1077:23
[INFO] [stdout]   21:     0x55e6bca3c793 - rust_sitter_macro::tests::enum_recursive::he360bf9436c234a8
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:285:9
[INFO] [stdout]   22:     0x55e6bca3b42d - rust_sitter_macro::tests::enum_recursive::{{closure}}::h0d729265d281f148
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:284:28
[INFO] [stdout]   23:     0x55e6bca4dbf6 - core::ops::function::FnOnce::call_once::h70f50316b5b9353e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x7fadbe828c9f - core::ops::function::FnOnce::call_once::h2b5d431d5046312d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7fadbe828c9f - test::__rust_begin_short_backtrace::h7714669af176e207
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:628:18
[INFO] [stdout]   26:     0x7fadbe827cb5 - test::run_test_in_process::{{closure}}::h85218797dcbcec12
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:60
[INFO] [stdout]   27:     0x7fadbe827cb5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h76c106ea31c14d7b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   28:     0x7fadbe827cb5 - std::panicking::try::do_call::h3bd5d0f6620ee946
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   29:     0x7fadbe827cb5 - std::panicking::try::h232e535e4744fe31
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   30:     0x7fadbe827cb5 - std::panic::catch_unwind::h3ce3bd6ca8dbac68
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x7fadbe827cb5 - test::run_test_in_process::hc97b257c9621286a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:27
[INFO] [stdout]   32:     0x7fadbe827cb5 - test::run_test::{{closure}}::h2aa798823a438d38
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:574:43
[INFO] [stdout]   33:     0x7fadbe7eba26 - test::run_test::{{closure}}::h87d231c78fb59832
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:602:41
[INFO] [stdout]   34:     0x7fadbe7eba26 - std::sys_common::backtrace::__rust_begin_short_backtrace::he6df152596625789
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   35:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha94be15d1e0acf36
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x7fadbe7f0ad7 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h9dc6bd6372f16606
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   37:     0x7fadbe7f0ad7 - std::panicking::try::do_call::h9057517f80303cd4
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   38:     0x7fadbe7f0ad7 - std::panicking::try::he3a30b11ee45340c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   39:     0x7fadbe7f0ad7 - std::panic::catch_unwind::h410458cfd3528b8b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x7fadbe7f0ad7 - std::thread::Builder::spawn_unchecked_::{{closure}}::h72ac3bdb567b737b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x7fadbe7f0ad7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h38f34da3654a8344
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc7eafaff61e32df9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   43:     0x7fadbe7616a5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6ba4a5de48dd2304
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7fadbe7616a5 - std::sys::unix::thread::Thread::new::thread_start::he469335aef763e45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7fadbe4d2ac3 - <unknown>
[INFO] [stdout]   46:     0x7fadbe563bf4 - __clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     tests::enum_prec_left
[INFO] [stdout]     tests::enum_recursive
[INFO] [stdout]     tests::enum_transformed_fields
[INFO] [stdout]     tests::enum_with_named_field
[INFO] [stdout]     tests::enum_with_unamed_vector
[INFO] [stdout]     tests::grammar_unboxed_field
[INFO] [stdout]     tests::spanned_in_vec
[INFO] [stdout]     tests::struct_extra
[INFO] [stdout]     tests::struct_optional
[INFO] [stdout]     tests::struct_repeat
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 10 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.10s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "478326e0f9c871aa57b77a784c75744e00ff21a6344400c40c6b31476cc417d1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "478326e0f9c871aa57b77a784c75744e00ff21a6344400c40c6b31476cc417d1", kill_on_drop: false }`
[INFO] [stdout] 478326e0f9c871aa57b77a784c75744e00ff21a6344400c40c6b31476cc417d1
